Skip to content

Commit 09eb144

Browse files
Initial version
1 parent 99230c5 commit 09eb144

3 files changed

Lines changed: 62 additions & 0 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
################################################################################
2+
# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
3+
################################################################################
4+
5+
/.vs
6+
/_ReSharper.Caches/ReSharperPlatformVs16201_a88a91cb.00

Dockerfile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# escape=`
2+
FROM mcr.microsoft.com/windows/servercore:1903 AS downloader
3+
4+
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
5+
6+
ENV ES_VERSION="20.6.0" `
7+
ES_HOME="C:\eventstore"
8+
9+
# ENV chocolateyUseWindowsCompression false
10+
11+
# RUN powershell -Command `
12+
# iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')); `
13+
# choco feature disable --name showDownloadProgress
14+
15+
# RUN choco install eventstore-oss
16+
17+
RUN Invoke-WebRequest "https://eventstore.org/downloads/win/EventStore-OSS-Windows-2019-v$($env:ES_VERSION).zip" -OutFile 'eventstore.zip' -UseBasicParsing; `
18+
Expand-Archive eventstore.zip -DestinationPath $env:ES_HOME ;
19+
20+
FROM mcr.microsoft.com/windows/servercore:1903
21+
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
22+
23+
ENV ES_VERSION="20.6.0" `
24+
ES_HOME="C:\eventstore" `
25+
DOTNET_RUNNING_IN_CONTAINER=true
26+
27+
EXPOSE 1113 2113
28+
29+
VOLUME C:\Data
30+
VOLUME C:\Logs
31+
32+
RUN New-Item -Path Config -ItemType Directory | Out-Null
33+
34+
WORKDIR $ES_HOME
35+
COPY --from=downloader C:\eventstore\EventStore-OSS-Windows-2019-v20.6.0 .
36+
COPY eventstore.conf .\Config\
37+
38+
# Run Service
39+
SHELL ["cmd", "/S", "/C"]
40+
CMD "C:\eventstore\EventStore.ClusterNode.exe --db /Data --log /Logs --config=C:\eventstore\Config\eventstore.conf"

eventstore.conf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
RunProjections: All
3+
ClusterSize: 1
4+
SkipDbVerify: true
5+
StatsPeriodSec: -1
6+
OptimizeIndexMerge: true
7+
SkipIndexVerify: true
8+
TrustedRootCertificatesPath: C:\eventstore\dev-ca\
9+
CertificatePrivateKeyFile: C:\eventstore\dev-ca\server1.key
10+
CertificateFile: C:\eventstore\dev-ca\server1.pem
11+
CertificatePassword:
12+
EnableAtomPubOverHttp: true
13+
EnableExternalTcp: true
14+
DisableExternalTcpTls: true
15+
Dev: true
16+
ExtIp: 0.0.0.0

0 commit comments

Comments
 (0)