Skip to content

Commit cd98a1d

Browse files
authored
CRW-8333 Fix Cachi2 build (#741)
Signed-off-by: sdawley <[email protected]>
1 parent 6feae01 commit cd98a1d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

devspaces-dashboard/build/dockerfiles/brew.Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ RUN ln -s "$REMOTE_SOURCES_DIR"/devspaces-images-dashboard/app/devspaces-dashboa
3030

3131
# cachito:yarn step 3: configure yarn & install deps
3232
# see https://source.redhat.com/groups/public/container-build-system/container_build_system_wiki/containers_from_source_multistage_builds_in_osbs#jive_content_id_Cachito_Integration_for_yarn
33-
RUN yarn config set nodedir /usr; yarn config set unsafe-perm true && yarn install
33+
RUN source "$REMOTE_SOURCES_DIR"/devspaces-images-dashboard/cachito.env && \
34+
yarn install --mode=skip-build
3435

36+
# CRW-8333 Lerna step no longer required in Cachi2
3537
# cachito:yarn step 4: lerna installed to $REMOTE_SOURCES_DIR/devspaces-images-dashboard/app/devspaces-dashboard/node_modules/.bin/lerna - add to path
36-
RUN ln -s "$REMOTE_SOURCES_DIR"/devspaces-images-dashboard/app/devspaces-dashboard/node_modules/.bin/lerna /usr/local/bin/lerna
38+
# RUN ln -s "$REMOTE_SOURCES_DIR"/devspaces-images-dashboard/app/devspaces-dashboard/node_modules/.bin/lerna /usr/local/bin/lerna
3739

3840
# cachito:yarn step 5: the actual build!
3941
# hadolint ignore=DL3059

0 commit comments

Comments
 (0)