Skip to content

Commit

Permalink
CRW-1956 break bootstrap.Dockerfile after the WORKDIR line (#62)
Browse files Browse the repository at this point in the history
Signed-off-by: nickboldt <nboldt@redhat.com>
  • Loading branch information
nickboldt authored Jul 19, 2021
1 parent d74df8b commit 62eaf75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion codeready-workspaces-operator/get-sources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ if [[ ${pullAssets} -eq 1 ]]; then
-e 's#DEV_WORKSPACE_CHE_OPERATOR_VERSION="([^"]+)"#DEV_WORKSPACE_CHE_OPERATOR_VERSION="'${DEV_WORKSPACE_CHE_OPERATOR_VERSION}'"#' \
`# CRW-1956 get vendor sources for restic; then stop builder stage steps as we have all we need` \
-e 's@(go mod vendor)@\1 \&\& exit@' \
`# remove all lines starting with WORKDIR` \
-e '/WORKDIR.+/,$d' \
> ${DOCKERFILELOCAL}; # cat ${DOCKERFILELOCAL} | grep "vendor"; exit
tag=$(pwd);tag=${tag##*/}
${BUILDER} build . -f ${DOCKERFILELOCAL} --target builder -t ${tag}:bootstrap
${BUILDER} build . -f ${DOCKERFILELOCAL} --target builder -t ${tag}:bootstrap --no-cache
# rm -f ${DOCKERFILELOCAL}

# step two - extract restic sources AND nested vendor folder to tarball
Expand Down

0 comments on commit 62eaf75

Please sign in to comment.