1
0
Fork 0
mirror of https://github.com/docker-library/ruby.git synced 2022-11-09 11:41:34 -05:00

Add paths scoped to ruby version to PATH and GEM_PATH

Newer bundler versions install gems to `$GEM_HOME/ruby/<ruby_version>`,
instead of directly to `$GEM_HOME`.

So we need to add the proper paths to `GEM_PATH` and `PATH` so that gems
and their executables are properly found.
This commit is contained in:
David Rodríguez 2020-01-03 14:43:33 +01:00
parent 8f3650c2ea
commit 7df74adde3
No known key found for this signature in database
GPG key ID: 1008A258BB37309C
25 changed files with 50 additions and 25 deletions

View file

@ -124,10 +124,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -124,10 +124,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -83,10 +83,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -109,10 +109,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -83,10 +83,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -108,10 +108,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -124,10 +124,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -124,10 +124,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -83,10 +83,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -109,10 +109,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -83,10 +83,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -108,10 +108,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -120,10 +120,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -120,10 +120,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -79,10 +79,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -105,10 +105,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -79,10 +79,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -104,10 +104,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -120,10 +120,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -120,10 +120,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -79,10 +79,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -105,10 +105,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -124,10 +124,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -83,10 +83,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)

View file

@ -109,10 +109,11 @@ RUN set -eux; \
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps # and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH
ENV BUNDLE_PATH="$GEM_HOME" \ ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME" BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $GEM_HOME/bin:$PATH ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user # adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME" RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both) # (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)