This file contains 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
> docker build -t yourprogramname-image -f Dockerfile . | |
> docker create --name yourprogramname-container yourprogramname-image | |
> docker start yourprogramname-container | |
> docker logs yourprogramname-container |
This file contains 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"] |
This file contains 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
# packages are from https://packagecloud.io/EventStore/EventStore-OSS | |
# register the repository | |
curl -s https://packagecloud.io/install/repositories/EventStore/EventStore-OSS/script.deb.sh | sudo bash | |
# install EventStore (change with latest version if needed) | |
sudo apt-get install eventstore-oss=5.0.11-1 | |
# sudo nano /etc/systemd/system/eventstore.service | |
# add `RestartSec=5` to section [Service] | |
# sudo nano /etc/eventstore/eventstore.conf with the following |
This file contains 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 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 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 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 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 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 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
input { | |
file { | |
path => ["C:/inbound/*/*.csv"] | |
start_position => "beginning" | |
} | |
} | |
filter { | |
fingerprint { | |
source => "message" | |
target => "[@metadata][fingerprint]" |
NewerOlder