Skip to content

Commit

Permalink
Remove BUNDLE_BIN and add GEM_HOME/bin back to PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed May 21, 2018
1 parent 395cce4 commit 14b15b2
Show file tree
Hide file tree
Showing 24 changed files with 96 additions and 96 deletions.
8 changes: 4 additions & 4 deletions 2.2/alpine3.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.2/jessie/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.2/jessie/slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.3/alpine3.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.3/jessie/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.3/jessie/slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.3/stretch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.3/stretch/slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.4/alpine3.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.4/alpine3.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.4/alpine3.7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.4/jessie/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.4/jessie/slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.4/stretch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.4/stretch/slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.5/alpine3.7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.5/stretch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.5/stretch/slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.6-rc/alpine3.7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.6-rc/stretch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions 2.6-rc/stretch/slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions Dockerfile-alpine.template
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
8 changes: 4 additions & 4 deletions Dockerfile-debian.template
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ RUN set -ex \
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# path recommendation: https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
ENV PATH $BUNDLE_PATH/gems/bin:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH
# adjust permissions of a few directories for running "gem install" as an arbitrary user
RUN mkdir -p "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin" \
&& chmod 777 "$GEM_HOME" "$GEM_HOME/bin" "$BUNDLE_PATH/gems/bin"

CMD [ "irb" ]
Loading

0 comments on commit 14b15b2

Please sign in to comment.