Skip to content

Commit 7074f14

Browse files
authored
Merge pull request #100 from merbla/docker-update
Update Docker Images - Splunk & .Net Core
2 parents a0b64a5 + 64109d2 commit 7074f14

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,6 @@ _Pvt_Extensions
237237

238238
.vscode/
239239

240-
sample/Sample/out/
240+
sample/Sample/out/
241+
242+
.DS_Store

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM microsoft/dotnet:2.0-sdk AS build
1+
FROM microsoft/dotnet:2.1-sdk AS build
22
ADD . /
33
WORKDIR /sample/Sample
44
RUN dotnet restore
55
RUN dotnet publish -c Release -o out -f netcoreapp2.0
66

7-
FROM microsoft/dotnet:2.0-runtime AS runtime
7+
FROM microsoft/dotnet:2.1-runtime AS runtime
88
WORKDIR /sample/Sample
99
COPY --from=build /sample/Sample/out ./
1010
ENTRYPOINT ["dotnet", "Sample.dll"]

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
- 8088:8088
99
- 8089:8089
1010
environment:
11-
SPLUNK_START_ARGS: "--accept-license --answer-yes"
11+
SPLUNK_START_ARGS: "--accept-license --answer-yes --seed-passwd changeme"
1212
SPLUNK_USER: "root"
1313
sampleconsoleapp:
1414
depends_on:

run_sample.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
#!/bin/bash
2-
sh build.sh
3-
4-
cd sample/Sample
5-
dotnet run 15 -f netcoreapp2.0
6-
cd ..
2+
docker-compose up --build

sample/splunk/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
FROM splunk/splunk:6.5.3
1+
FROM splunk/splunk:7.1.0
22
ADD etc ${SPLUNK_HOME}/etc

0 commit comments

Comments
 (0)