From 82eecb7596c3cb466dd87d4b0350d189a330b925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 3 Jan 2020 16:49:48 +0100 Subject: [PATCH] Alternative fix Stop setting `BUNDLE_PATH`. All default bundler versions shipped with all supported rubies install gems to `GEM_HOME` by default, so this shouldn't be a breaking change and it's a less surprising behavior because it does not deviate from how bundler is configured by default. Future versions will probably install locally by default, but that hasn't happened yet. I think leaving bundler "unconfigured" also matches the direction of the recent change where the images no longer explicitly install `bundler` but simply leave whatever version comes with ruby. Similarly, it makes sense to me to leave whatever configuration comes by default with `bundler` in place. --- 2.4/alpine3.10/Dockerfile | 10 +++------- 2.4/alpine3.11/Dockerfile | 10 +++------- 2.4/buster/Dockerfile | 10 +++------- 2.4/buster/slim/Dockerfile | 10 +++------- 2.4/stretch/Dockerfile | 10 +++------- 2.4/stretch/slim/Dockerfile | 10 +++------- 2.5/alpine3.10/Dockerfile | 10 +++------- 2.5/alpine3.11/Dockerfile | 10 +++------- 2.5/buster/Dockerfile | 10 +++------- 2.5/buster/slim/Dockerfile | 10 +++------- 2.5/stretch/Dockerfile | 10 +++------- 2.5/stretch/slim/Dockerfile | 10 +++------- 2.6/alpine3.10/Dockerfile | 10 +++------- 2.6/alpine3.11/Dockerfile | 10 +++------- 2.6/buster/Dockerfile | 10 +++------- 2.6/buster/slim/Dockerfile | 10 +++------- 2.6/stretch/Dockerfile | 10 +++------- 2.6/stretch/slim/Dockerfile | 10 +++------- 2.7/alpine3.10/Dockerfile | 10 +++------- 2.7/alpine3.11/Dockerfile | 10 +++------- 2.7/buster/Dockerfile | 10 +++------- 2.7/buster/slim/Dockerfile | 10 +++------- Dockerfile-alpine.template | 10 +++------- Dockerfile-debian.template | 10 +++------- Dockerfile-slim.template | 10 +++------- 25 files changed, 75 insertions(+), 175 deletions(-) diff --git a/2.4/alpine3.10/Dockerfile b/2.4/alpine3.10/Dockerfile index 3251bb268..0d8ad7728 100644 --- a/2.4/alpine3.10/Dockerfile +++ b/2.4/alpine3.10/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.4/alpine3.11/Dockerfile b/2.4/alpine3.11/Dockerfile index 65508ec3d..063754cd2 100644 --- a/2.4/alpine3.11/Dockerfile +++ b/2.4/alpine3.11/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.4/buster/Dockerfile b/2.4/buster/Dockerfile index 7cb34416d..1ecd8300d 100644 --- a/2.4/buster/Dockerfile +++ b/2.4/buster/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.4/buster/slim/Dockerfile b/2.4/buster/slim/Dockerfile index 0cc5b7af3..fbe217322 100644 --- a/2.4/buster/slim/Dockerfile +++ b/2.4/buster/slim/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.4/stretch/Dockerfile b/2.4/stretch/Dockerfile index 7321ea9b0..61eeb47f1 100644 --- a/2.4/stretch/Dockerfile +++ b/2.4/stretch/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.4/stretch/slim/Dockerfile b/2.4/stretch/slim/Dockerfile index aabd30346..cda7d3db9 100644 --- a/2.4/stretch/slim/Dockerfile +++ b/2.4/stretch/slim/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.5/alpine3.10/Dockerfile b/2.5/alpine3.10/Dockerfile index 5175e0a32..58839f007 100644 --- a/2.5/alpine3.10/Dockerfile +++ b/2.5/alpine3.10/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.5/alpine3.11/Dockerfile b/2.5/alpine3.11/Dockerfile index b52762cac..5f6221819 100644 --- a/2.5/alpine3.11/Dockerfile +++ b/2.5/alpine3.11/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.5/buster/Dockerfile b/2.5/buster/Dockerfile index 7e2b1ba01..d6f4a4995 100644 --- a/2.5/buster/Dockerfile +++ b/2.5/buster/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.5/buster/slim/Dockerfile b/2.5/buster/slim/Dockerfile index b88a44721..600f0879e 100644 --- a/2.5/buster/slim/Dockerfile +++ b/2.5/buster/slim/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.5/stretch/Dockerfile b/2.5/stretch/Dockerfile index 53d033686..acc9c6071 100644 --- a/2.5/stretch/Dockerfile +++ b/2.5/stretch/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.5/stretch/slim/Dockerfile b/2.5/stretch/slim/Dockerfile index cc662a43f..cf6a31990 100644 --- a/2.5/stretch/slim/Dockerfile +++ b/2.5/stretch/slim/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.6/alpine3.10/Dockerfile b/2.6/alpine3.10/Dockerfile index ad381731f..002cdac27 100644 --- a/2.6/alpine3.10/Dockerfile +++ b/2.6/alpine3.10/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.6/alpine3.11/Dockerfile b/2.6/alpine3.11/Dockerfile index 80a4896ca..a1705f409 100644 --- a/2.6/alpine3.11/Dockerfile +++ b/2.6/alpine3.11/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.6/buster/Dockerfile b/2.6/buster/Dockerfile index d51ee8641..c933cbd4f 100644 --- a/2.6/buster/Dockerfile +++ b/2.6/buster/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.6/buster/slim/Dockerfile b/2.6/buster/slim/Dockerfile index 94c9740bd..c22da5c66 100644 --- a/2.6/buster/slim/Dockerfile +++ b/2.6/buster/slim/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.6/stretch/Dockerfile b/2.6/stretch/Dockerfile index 15b3049bd..7e1988b4c 100644 --- a/2.6/stretch/Dockerfile +++ b/2.6/stretch/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.6/stretch/slim/Dockerfile b/2.6/stretch/slim/Dockerfile index 6e9bd98cc..524cb9fd2 100644 --- a/2.6/stretch/slim/Dockerfile +++ b/2.6/stretch/slim/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.7/alpine3.10/Dockerfile b/2.7/alpine3.10/Dockerfile index 9fea344b0..26a0394a6 100644 --- a/2.7/alpine3.10/Dockerfile +++ b/2.7/alpine3.10/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.7/alpine3.11/Dockerfile b/2.7/alpine3.11/Dockerfile index 34197588b..31f09e31a 100644 --- a/2.7/alpine3.11/Dockerfile +++ b/2.7/alpine3.11/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.7/buster/Dockerfile b/2.7/buster/Dockerfile index 53d79a952..fbe54e26d 100644 --- a/2.7/buster/Dockerfile +++ b/2.7/buster/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/2.7/buster/slim/Dockerfile b/2.7/buster/slim/Dockerfile index c7622cabc..470a521e1 100644 --- a/2.7/buster/slim/Dockerfile +++ b/2.7/buster/slim/Dockerfile @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index e3c1aea53..8b46d6afc 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index 7321e22dc..33314a135 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ] diff --git a/Dockerfile-slim.template b/Dockerfile-slim.template index 95ff01a24..e286ccc34 100644 --- a/Dockerfile-slim.template +++ b/Dockerfile-slim.template @@ -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 GEM_PATH $GEM_HOME/ruby/$RUBY_MAJOR.0:$GEM_PATH -ENV BUNDLE_PATH="$GEM_HOME" \ - BUNDLE_SILENCE_ROOT_WARNING=1 \ +ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ BUNDLE_APP_CONFIG="$GEM_HOME" -ENV PATH $GEM_HOME/bin:$GEM_HOME/ruby/$RUBY_MAJOR.0/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" ]