Skip to content

Commit 785c2a1

Browse files
Merge pull request #139 from rollandf/docker-again
fix: GPG error on DOCA repository
2 parents f0a2814 + e696ac4 commit 785c2a1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Dockerfile.sriov-network-config-daemon.nvidia

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ WORKDIR /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator
2525
COPY . .
2626
RUN make _build-sriov-network-config-daemon BIN_PATH=build/_output/cmd
2727

28-
FROM ${BASE_IMAGE_DOCA_BASE_RT_HOST:-nvcr.io/nvidia/doca/doca:3.1.0-base-rt-host}
28+
FROM ${BASE_IMAGE_DOCA_BASE_RT_HOST:-nvcr.io/nvidia/doca/doca:3.2.1-base-rt-host}
2929
# We have to ensure that pciutils is installed. These packages are needed for mstfwreset to succeed.
3030
# xref pkg/vendors/mellanox/mellanox.go#L150
31-
RUN apt-get update && apt-get install -y hwdata pciutils curl mstflint && apt-get clean && rm -rf /var/lib/apt/lists/*
31+
# DOCA repositories have a GPG issue, so we need to allow insecure repositories.
32+
# GPG error: https://linux.mellanox.com/public/repo/doca/3.2.1/ubuntu22.04/x86_64 ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A024F6F0E6D6A281
33+
RUN apt-get update -o Acquire::AllowInsecureRepositories=true && \
34+
apt-get install -y --allow-unauthenticated hwdata pciutils curl mstflint && \
35+
apt-get clean && rm -rf /var/lib/apt/lists/*
3236

3337
ARG TARGETARCH
3438
ENV MFT_VERSION=4.33.0-169
@@ -37,7 +41,7 @@ RUN case ${TARGETARCH} in \
3741
arm64) ARCH=arm64 ;; \
3842
*) echo "Unsupported architecture: ${TARGETARCH}" && exit 1 ;; \
3943
esac && \
40-
curl -fsSL https://www.mellanox.com/downloads/MFT/mft-${MFT_VERSION}-${ARCH}-deb.tgz | tar -xz -C /tmp && \
44+
curl -fsSL https://www.mellanox.com/downloads/MFT/mft-${MFT_VERSION}-${ARCH}-deb.tgz | tar -xz --no-same-owner -C /tmp && \
4145
cd /tmp/mft-${MFT_VERSION}-${ARCH}-deb && \
4246
./install.sh --without-kernel
4347

0 commit comments

Comments
 (0)