mirror of
https://github.com/docker-library/ruby.git
synced 2022-11-09 11:41:34 -05:00
Merge pull request #306 from deivid-rodriguez/add_path_scoped_to_ruby_version_to_path_and_gem_path
Stop setting `BUNDLE_PATH`
This commit is contained in:
commit
e30082fa0d
25 changed files with 75 additions and 175 deletions
|
@ -121,16 +121,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -121,16 +121,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -80,16 +80,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -106,16 +106,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -80,16 +80,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -105,16 +105,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -121,16 +121,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -121,16 +121,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -80,16 +80,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -106,16 +106,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -80,16 +80,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -105,16 +105,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -117,16 +117,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -117,16 +117,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -76,16 +76,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -102,16 +102,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -76,16 +76,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -101,16 +101,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -117,16 +117,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -117,16 +117,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -76,16 +76,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -102,16 +102,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -121,16 +121,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -80,16 +80,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
|
@ -106,16 +106,12 @@ RUN set -eux; \
|
|||
gem --version; \
|
||||
bundle --version
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
# don't create ".bundle" in all our apps
|
||||
ENV GEM_HOME /usr/local/bundle
|
||||
ENV BUNDLE_PATH="$GEM_HOME" \
|
||||
BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
|
||||
BUNDLE_APP_CONFIG="$GEM_HOME"
|
||||
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
|
||||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
|
||||
ENV PATH $GEM_HOME/bin:$PATH
|
||||
# adjust permissions of a few directories for running "gem install" as an arbitrary user
|
||||
RUN mkdir -p "$GEM_HOME" && chmod 777 "$GEM_HOME"
|
||||
# (BUNDLE_PATH = GEM_HOME, no need to mkdir/chown both)
|
||||
|
||||
CMD [ "irb" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue