This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
RUN apt update | |
RUN apt install -y apache2 | |
COPY dist /var/www/html | |
CMD /usr/sbin/apache2ctl -D FOREGROUND | |
EXPOSE 80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<li *ngFor="let customer of customersList">{{customer.name}}</li> | |
</ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task<string> Post<T>(string path, T data) | |
{ | |
using (var client = new HttpClient()) | |
{ | |
client.Timeout = new TimeSpan(0, 0, 5); | |
client.DefaultRequestHeaders.Accept.Clear(); | |
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); | |
var json = JsonConvert.SerializeObject(data); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.4' | |
services: | |
esclienttest: | |
image: testclient | |
build: | |
context: . | |
dockerfile: Dockerfile | |
depends_on: | |
- eventstore1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mono:4.6.2.16 | |
ADD . /home/TestClusterConnection | |
CMD [ "mono", "home/TestClusterConnection/TestClusterConnection.exe" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace TestClusterConnection | |
{ | |
class Program | |
{ | |
private const string Stream = "MyTestStream"; | |
static void Main(string[] args) | |
{ | |
try | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################ | |
# Uncomment if you want the script to always use the scripts | |
# directory as the folder to look through | |
#REPOSITORIES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
REPOSITORIES=`pwd` | |
IFS=$'\n' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IntTcpPort: 2111 | |
ExtTcpPort: 2112 | |
IntHttpPort: 2113 | |
ExtHttpPort: 2114 | |
IntTcpHeartbeatInterval: 1500 | |
IntTcpHeartbeatTimeout: 3000 | |
ExtTcpHeartbeatInterval: 1500 | |
ExtTcpHeartbeatTimeout: 3000 | |
GossipIntervalMs: 2000 | |
GossipTimeoutMs: 4000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading; | |
using System.Timers; | |
using Nest; | |
using TaskZero.ReadModels.Elastic.Model; | |
using Timer = System.Timers.Timer; | |
namespace TaskZero.ReadModels.Elastic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 | |
COPY bin/Release/netcoreapp3.1 App/ | |
WORKDIR /App | |
ENTRYPOINT ["dotnet", "yourprogramname.dll"] |
OlderNewer