-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from jlamande/docker-build
Add Docker build
- Loading branch information
Showing
6 changed files
with
94 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Standard stuff | ||
Dockerfile* | ||
**/*Dockerfile* | ||
docker-compose* | ||
.dockerignore | ||
.git | ||
.gitignore | ||
readme.md | ||
**/readme.md | ||
**/LICENSE | ||
.vscode/ | ||
|
||
# Outputs, binaries etc | ||
**/bin/ | ||
**/obj/ | ||
**/dist/ | ||
|
||
# Project specific folders | ||
*.json | ||
*.html | ||
*.csv | ||
reports/* |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.json | ||
*.html | ||
bin/ | ||
bin/* | ||
*.csv | ||
reports/* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# ========================================= | ||
# === Stage 1: Build Golang k6-reporter === | ||
# ========================================= | ||
FROM golang:1.16 as builder | ||
ARG VERSION="0.0.0" | ||
ARG BUILD_INFO="Not set" | ||
|
||
ENV CGO_ENABLED=0 | ||
RUN go version | ||
WORKDIR /app | ||
COPY . . | ||
RUN make build | ||
|
||
# ========================================== | ||
# === Stage 2: Use exe in runtime image ==== | ||
# ========================================== | ||
FROM scratch | ||
WORKDIR /app | ||
COPY --from=builder /app/bin/k6-reporter . | ||
ENTRYPOINT ["./k6-reporter"] |
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
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