yarn install ENOENT fallback

Change-Id: I16ee71af83dc3efac7b5bfec03e28de13725c3a9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/231987
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Benjamin Christian Nelson <bcnelson@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
This commit is contained in:
Derek Bender 2020-03-27 16:20:47 -05:00
parent 99c0692502
commit 15db56551d
2 changed files with 6 additions and 2 deletions

View File

@ -63,8 +63,10 @@ COPY --chown=docker:docker yarn.lock ${APP_HOME}
COPY --chown=docker:docker babel.config.js ${APP_HOME}
USER docker
# if yarn hits a snag try one more time with concurrency set to 1
# https://github.com/yarnpkg/yarn/issues/2629
RUN bundle install --jobs 8 \
&& yarn install --pure-lockfile
&& (yarn install --pure-lockfile || yarn install --pure-lockfile --network-concurrency 1)
COPY --chown=docker:docker . $APP_HOME
RUN mkdir -p .yardoc \
app/stylesheets/brandable_css_brands \

View File

@ -119,8 +119,10 @@ COPY --chown=docker:docker yarn.lock ${APP_HOME}
COPY --chown=docker:docker babel.config.js ${APP_HOME}
USER docker
# if yarn hits a snag try one more time with concurrency set to 1
# https://github.com/yarnpkg/yarn/issues/2629
RUN bundle install --jobs 8 \
&& yarn install --pure-lockfile
&& (yarn install --pure-lockfile || yarn install --pure-lockfile --network-concurrency 1)
COPY --chown=docker:docker . $APP_HOME
RUN mkdir -p <%= docker_compose_volume_paths.join(" \\\n ") %>