Files
canvas-lms/Dockerfile.jenkins.ruby-runner
Aaron Ogata e9e5d71842 support pinning GH gems by ref
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>
2025-02-11 21:31:00 +00:00

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