-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add new dockerfile to build the image with -race
Generate 2 images instead of one, push them into container registry. Update local deployment of minikube to run always with race detector
- Loading branch information
Showing
4 changed files
with
63 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
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Build container | ||
FROM golang:1.23.3-alpine3.20 AS buildContainer | ||
RUN apk add -U --no-cache bash make curl | ||
RUN apk add --no-cache --update gcc g++ | ||
WORKDIR /app | ||
|
||
COPY Makefile Makefile | ||
COPY scripts scripts | ||
RUN make tools | ||
|
||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
RUN go mod download | ||
|
||
COPY . . | ||
RUN make build-stream-service-race | ||
|
||
# Production container | ||
FROM alpine:3.20 | ||
RUN apk add -U --no-cache ca-certificates git | ||
|
||
COPY --from=buildContainer /app/target/stream/service /app/service | ||
WORKDIR /app | ||
|
||
# Storage writer ingress - UDP port | ||
EXPOSE 6000 | ||
|
||
# HTTP source | ||
EXPOSE 7000 | ||
|
||
# API | ||
EXPOSE 8000 | ||
|
||
# Prometheus metrics | ||
EXPOSE 9000 |
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