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
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
> docker build -t yourprogramname-image -f Dockerfile . | |
> docker create --name yourprogramname-container yourprogramname-image | |
> docker start yourprogramname-container | |
> docker logs yourprogramname-container |
OlderNewer