File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1414#
1515# SPDX-License-Identifier: Apache-2.0
1616
17+ ARG BASE_IMAGE_DOCA_BASE_RT_HOST
18+
1719FROM golang:1.23 AS builder
1820
1921ARG GOPROXY
@@ -24,7 +26,7 @@ COPY . .
2426RUN make _build-manager BIN_PATH=build/_output/cmd
2527RUN make _build-sriov-network-operator-config-cleanup BIN_PATH=build/_output/cmd
2628
27- FROM nvcr.io/nvidia/doca/doca:3.1.0-base-rt-host
29+ FROM ${BASE_IMAGE_DOCA_BASE_RT_HOST:- nvcr.io/nvidia/doca/doca:3.1.0-base-rt-host}
2830USER 65532:65532
2931COPY --from=builder /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/build/_output/cmd/manager /usr/bin/sriov-network-operator
3032COPY --from=builder /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/build/_output/cmd/sriov-network-operator-config-cleanup /usr/bin/sriov-network-operator-config-cleanup
Original file line number Diff line number Diff line change 1414#
1515# SPDX-License-Identifier: Apache-2.0
1616
17+ ARG BASE_IMAGE_DOCA_BASE_RT_HOST
18+
1719FROM golang:1.23 AS builder
1820
1921ARG GOPROXY
@@ -23,7 +25,7 @@ WORKDIR /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator
2325COPY . .
2426RUN make _build-sriov-network-config-daemon BIN_PATH=build/_output/cmd
2527
26- FROM 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.1.0-base-rt-host}
2729ARG MSTFLINT=mstflint
2830# We have to ensure that pciutils is installed. This package is needed for mstfwreset to succeed.
2931# xref pkg/vendors/mellanox/mellanox.go#L150
Original file line number Diff line number Diff line change 1414#
1515# SPDX-License-Identifier: Apache-2.0
1616
17+ ARG BASE_IMAGE_DOCA_BASE_RT_HOST
18+
1719FROM golang:1.23 AS builder
1820
1921ARG GOPROXY
@@ -23,7 +25,7 @@ WORKDIR /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator
2325COPY . .
2426RUN make _build-webhook BIN_PATH=build/_output/cmd
2527
26- FROM 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.1.0-base-rt-host}
2729USER 65532:65532
2830LABEL io.k8s.display-name="sriov-network-webhook" \
2931 io.k8s.description="This is an admission controller webhook that mutates and validates customer resources of sriov network operator."
You can’t perform that action at this time.
0 commit comments