Skip to content

Commit 993203a

Browse files
Merge pull request #116 from almaslennikov/downgrade-doca-version
chore: downgrade doca to 2.9.2 to enable arm build + copy sources
2 parents 9dc56e2 + 7592f41 commit 993203a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ COPY ./ ./
3939
#RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager cmd/maintenance-manager/main.go
4040
RUN --mount=type=cache,target=/go/pkg/mod/ GO_GCFLAGS=${GCFLAGS} make build-manager
4141

42-
FROM nvcr.io/nvidia/doca/doca:2.10.0-full-rt-host
42+
FROM nvcr.io/nvidia/doca/doca:2.9.2-full-rt-host
4343

4444
ARG TARGETARCH
4545
ENV MFT_VERSION=4.29.0-131
@@ -57,6 +57,9 @@ WORKDIR /
5757
COPY --from=builder /workspace/build/manager .
5858
USER 65532:65532
5959

60+
# Copy sources to the container
61+
ADD . /workspace
62+
6063
ENTRYPOINT ["/manager"]
6164

6265
LABEL org.opencontainers.image.source=https://nvcr.io/nvidia/cloud-native/nic-configuration-operator

Dockerfile.nic-configuration-daemon

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ COPY ./ ./
2222
# by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.
2323
RUN --mount=type=cache,target=/go/pkg/mod/ GO_GCFLAGS=${GCFLAGS} make build-daemon
2424

25-
FROM nvcr.io/nvidia/doca/doca:2.10.0-full-rt-host
25+
FROM nvcr.io/nvidia/doca/doca:2.9.2-full-rt-host
2626

2727
ARG TARGETARCH
2828
ENV MFT_VERSION=4.29.0-131
@@ -48,6 +48,9 @@ RUN case ${TARGETARCH} in \
4848
WORKDIR /
4949
COPY --from=builder /workspace/build/nic-configuration-daemon .
5050

51+
# Copy sources to the container
52+
ADD . /workspace
53+
5154
ENTRYPOINT ["/nic-configuration-daemon"]
5255

5356
LABEL org.opencontainers.image.source=https://nvcr.io/nvidia/cloud-native/nic-configuration-daemon

0 commit comments

Comments
 (0)