mirror of
https://github.com/instructure/canvas-lms.git
synced 2026-03-09 21:47:48 +08:00
refs AE-1682 [build-registry-path=jenkins/canvas-lms/ae-1682] [change-merged] [pin-commit-switchman=4d53b98564348f1d928371e510ba2bfee9af169b] [pin-github-gems=instructure/switchman-inst-jobs:AE-1682] Change-Id: I6fc63e86cb66ee70c7fbd6acf9d27323adfe1bdd Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/369874 Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> Reviewed-by: Isaac Moore <isaac.moore@instructure.com> QA-Review: Aaron Ogata <aogata@instructure.com> Product-Review: Aaron Ogata <aogata@instructure.com> Build-Review: Aaron Ogata <aogata@instructure.com>
20 lines
662 B
Docker
20 lines
662 B
Docker
FROM local/base-runner
|
|
|
|
ARG CANVAS_PINNED_GITHUB_GEMS
|
|
ENV CANVAS_PINNED_GITHUB_GEMS=${CANVAS_PINNED_GITHUB_GEMS}
|
|
|
|
RUN --mount=type=bind,from=local/cache-helper,source=/tmp/dst,target=/cache-helper \
|
|
tar --no-same-owner -xf /cache-helper/ruby-runner.tar -C ${APP_HOME}
|
|
|
|
RUN set -eux; \
|
|
\
|
|
# set up bundle config options \
|
|
bundle config --global build.nokogiri --use-system-libraries \
|
|
&& bundle config --global build.ffi --enable-system-libffi \
|
|
&& mkdir -p \
|
|
/home/docker/.bundle \
|
|
# TODO: --without development \
|
|
&& { bundle install --jobs $(nproc) || bundle install; } \
|
|
&& bundle config --global frozen true \
|
|
&& rm -rf $GEM_HOME/cache
|