Skip to content

Commit cbaa867

Browse files
committed
fix: GPG error on DOCA repository
Signed-off-by: Fred Rolland <frolland@nvidia.com>
1 parent 17247a9 commit cbaa867

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile.sriov-network-config-daemon.nvidia

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ RUN make _build-sriov-network-config-daemon BIN_PATH=build/_output/cmd
2828
FROM ${BASE_IMAGE_DOCA_BASE_RT_HOST:-nvcr.io/nvidia/doca/doca:3.1.0-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+
RUN apt-get update -o Acquire::AllowInsecureRepositories=true || true && \
32+
apt-get install -y --allow-unauthenticated hwdata pciutils curl mstflint && \
33+
apt-get clean && rm -rf /var/lib/apt/lists/*
3234

3335
ARG TARGETARCH
3436
ENV MFT_VERSION=4.33.0-169
@@ -37,7 +39,7 @@ RUN case ${TARGETARCH} in \
3739
arm64) ARCH=arm64 ;; \
3840
*) echo "Unsupported architecture: ${TARGETARCH}" && exit 1 ;; \
3941
esac && \
40-
curl -fsSL https://www.mellanox.com/downloads/MFT/mft-${MFT_VERSION}-${ARCH}-deb.tgz | tar -xz -C /tmp && \
42+
curl -fsSL https://www.mellanox.com/downloads/MFT/mft-${MFT_VERSION}-${ARCH}-deb.tgz | tar -xz --no-same-owner -C /tmp && \
4143
cd /tmp/mft-${MFT_VERSION}-${ARCH}-deb && \
4244
./install.sh --without-kernel
4345

0 commit comments

Comments
 (0)