Skip to content

Commit 6e9e37a

Browse files
committed
fix: keeper Dockerfile ADD_BUILD_TAGS argument
The core-keeper Dockerfile wasn't accounting for the ADD_BUILD_TAGS argument that is set by the Makefile on `docker build` call. Not accouting for this argument when NATS is required cause the core-keeper service to not have NATS enabled, causing a bootstrap error. With this commit, the argument is not considered. Closes #5345 Signed-off-by: Bruno Meneguele <bmeneg@heredoc.io>
1 parent 57ffbae commit 6e9e37a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/core-keeper/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
ARG BUILDER_BASE=golang:1.25-alpine3.22
2020
FROM ${BUILDER_BASE} AS builder
2121

22+
ARG ADD_BUILD_TAGS=""
23+
2224
WORKDIR /edgex-go
2325

2426
# The main mirrors are giving us timeout issues on builds periodically.
@@ -32,7 +34,7 @@ COPY go.mod vendor* ./
3234
RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..."
3335

3436
COPY . .
35-
RUN make cmd/core-keeper/core-keeper
37+
RUN make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS cmd/core-keeper/core-keeper
3638

3739
#Next image - Copy built Go binary into new workspace
3840
FROM alpine:3.22

0 commit comments

Comments
 (0)