diff --git a/Dockerfile.IntelNetSecVSP.rhel b/Dockerfile.IntelNetSecVSP.rhel index a05d46250..02e3d8eb6 100644 --- a/Dockerfile.IntelNetSecVSP.rhel +++ b/Dockerfile.IntelNetSecVSP.rhel @@ -13,7 +13,7 @@ COPY . . # Due to https://github.com/golang/go/issues/70329 cross-compilation hangs at times. # As a temporary workaround, we can try specifying GOMAXPROCS=2 to relieve this issue RUN mkdir -p /bin && \ - GOMAXPROCS=2 CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} make build-intel-netsec-vsp + GOMAXPROCS=2 CGO_ENABLED=1 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} make build-intel-netsec-vsp # Use distroless as minimal base image to package the Marvell VSP binary # Refer to https://github.com/GoogleContainerTools/distroless for more details diff --git a/Dockerfile.IntelVSP.rhel b/Dockerfile.IntelVSP.rhel index 3803b201c..cd6e8d203 100644 --- a/Dockerfile.IntelVSP.rhel +++ b/Dockerfile.IntelVSP.rhel @@ -7,7 +7,7 @@ COPY . . # Due to https://github.com/golang/go/issues/70329 cross-compilation hangs at times. # As a temporary workaround, we can try specifying GOMAXPROCS=2 to relieve this issue -RUN GOMAXPROCS=2 CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} make build-intel-vsp +RUN GOMAXPROCS=2 CGO_ENABLED=1 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} make build-intel-vsp FROM registry.ci.openshift.org/ocp/4.20:base-rhel9 ARG TARGETARCH diff --git a/Dockerfile.daemon.rhel b/Dockerfile.daemon.rhel index 685896f87..71614998f 100644 --- a/Dockerfile.daemon.rhel +++ b/Dockerfile.daemon.rhel @@ -14,7 +14,7 @@ COPY . . # Due to https://github.com/golang/go/issues/70329 cross-compilation hangs at times. # As a temporary workaround, we can try specifying GOMAXPROCS=2 to relieve this issue -RUN GOMAXPROCS=2 CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} make build-daemon +RUN GOMAXPROCS=2 CGO_ENABLED=1 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} make build-daemon # Use distroless as minimal base image to package the manager binary # Refer to https://github.com/GoogleContainerTools/distroless for more details diff --git a/Dockerfile.mrvlCPAgent.rhel b/Dockerfile.mrvlCPAgent.rhel index ceaa3c623..5d52e57b5 100644 --- a/Dockerfile.mrvlCPAgent.rhel +++ b/Dockerfile.mrvlCPAgent.rhel @@ -54,7 +54,7 @@ RUN \ # As a temporary workaround, we can try specifying GOMAXPROCS=2 to relieve this issue WORKDIR /workspace -RUN GOMAXPROCS=2 CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -o /cpagent-bin/cp-agent-run internal/daemon/vendor-specific-plugins/marvell/cp-agent/cp-agent-run.go +RUN GOMAXPROCS=2 CGO_ENABLED=1 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -o /cpagent-bin/cp-agent-run internal/daemon/vendor-specific-plugins/marvell/cp-agent/cp-agent-run.go # Use distroless as minimal base image to package the Marvell CP agent binary # Refer to https://github.com/GoogleContainerTools/distroless for more details diff --git a/Dockerfile.mrvlVSP.rhel b/Dockerfile.mrvlVSP.rhel index d67c135d3..40cc87999 100644 --- a/Dockerfile.mrvlVSP.rhel +++ b/Dockerfile.mrvlVSP.rhel @@ -13,7 +13,7 @@ COPY . . # Due to https://github.com/golang/go/issues/70329 cross-compilation hangs at times. # As a temporary workaround, we can try specifying GOMAXPROCS=2 to relieve this issue RUN mkdir -p /bin && \ - GOMAXPROCS=2 CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} make build-marvell-vsp + GOMAXPROCS=2 CGO_ENABLED=1 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} make build-marvell-vsp # Use distroless as minimal base image to package the Marvell VSP binary # Refer to https://github.com/GoogleContainerTools/distroless for more details diff --git a/Dockerfile.networkResourcesInjector.rhel b/Dockerfile.networkResourcesInjector.rhel index 6fa1156f0..198e41a73 100644 --- a/Dockerfile.networkResourcesInjector.rhel +++ b/Dockerfile.networkResourcesInjector.rhel @@ -3,7 +3,7 @@ ARG TARGETOS ARG TARGETARCH WORKDIR /workspace COPY . . -RUN GOMAXPROCS=2 CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} make build-network-resources-injector +RUN GOMAXPROCS=2 CGO_ENABLED=1 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} make build-network-resources-injector FROM registry.ci.openshift.org/ocp/4.20:base-rhel9 ARG TARGETARCH diff --git a/Dockerfile.rhel b/Dockerfile.rhel index bf2f87b10..cc6cdc707 100644 --- a/Dockerfile.rhel +++ b/Dockerfile.rhel @@ -14,7 +14,7 @@ COPY . . # Due to https://github.com/golang/go/issues/70329 cross-compilation hangs at times. # As a temporary workaround, we can try specifying GOMAXPROCS=2 to relieve this issue -RUN GOMAXPROCS=2 CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} make build-manager +RUN GOMAXPROCS=2 CGO_ENABLED=1 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} make build-manager # Use distroless as minimal base image to package the manager binary # Refer to https://github.com/GoogleContainerTools/distroless for more details