You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change is aligned with the work already done for other operators,
and the goal is to build a FIPS compatible glance-operator image.
For this reason, the BASE_IMAGE has been moved to ubi-minimal and the
toolchain uses go-toolset.
Both CGO and GO111MODULE are enabled and passed as extra args to go
build.
Signed-off-by: Francesco Pantano <[email protected]>
# cache deps before building and copying source so that we don't need to re-download as much
23
27
# and so that source changes don't invalidate our downloaded layer
24
28
RUN if [ ! -f $CACHITO_ENV_FILE ]; then go mod download ; fi
25
29
26
30
# Build manager
27
-
RUN if [ -f $CACHITO_ENV_FILE ] ; then source $CACHITO_ENV_FILE ; fi ; CGO_ENABLED=0 GO111MODULE=on go build ${GO_BUILD_EXTRA_ARGS} -a -o ${DEST_ROOT}/manager main.go
31
+
RUN if [ -f $CACHITO_ENV_FILE ] ; then source $CACHITO_ENV_FILE ; fi ; env ${GO_BUILD_EXTRA_ENV_ARGS} go build ${GO_BUILD_EXTRA_ARGS} -a -o ${DEST_ROOT}/manager main.go
0 commit comments