From 0f0aae3858a907bf615811168a8a4d0e907e5616 Mon Sep 17 00:00:00 2001 From: Lukas Piwowarski Date: Wed, 24 Jan 2024 11:22:41 +0100 Subject: [PATCH] Fix job that builds the test operator The job that builds the operator is failing with this error: cp: cannot stat 'templates': No such file or directory error building at STEP "RUN cp -r templates ${DEST_ROOT}/templates": error while running runtime: exit status 1 The error is caused by missing templates folder in the test-operator. This patch comments out line in the Dockerfile that is reponsible for copying the templates folder. --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0cced132..67a5a77b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,10 @@ RUN if [ ! -f $CACHITO_ENV_FILE ]; then go mod download ; fi # Build manager 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 -RUN cp -r templates ${DEST_ROOT}/templates +# (lpiwowar): Let's comment this out as we do use the templates folder now +# It causes a failure of a job that is responsible for building +# the operator. +# RUN cp -r templates ${DEST_ROOT}/templates # Use distroless as minimal base image to package the manager binary # Refer to https://github.com/GoogleContainerTools/distroless for more details