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:
parent
8f3650c2ea
commit
7df74adde3
25 changed files with 50 additions and 25 deletions
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue