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

Fix non-root support

This commit is contained in:
Tianon Gravi 2016-02-04 14:55:28 -08:00
parent d902c7db3d
commit 9b1f77c11d
14 changed files with 126 additions and 140 deletions

View file

@ -40,18 +40,17 @@ RUN set -ex \
ENV BUNDLER_VERSION 1.11.2 ENV BUNDLER_VERSION 1.11.2
RUN gem install bundler --version "$BUNDLER_VERSION" \ RUN gem install bundler --version "$BUNDLER_VERSION"
&& bundle config --global path "$GEM_HOME" \
&& bundle config --global bin "$GEM_HOME/bin" \
&& bundle config --global silence_root_warning true
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH ENV BUNDLE_PATH="$GEM_HOME" \
RUN mkdir -p "$GEM_HOME" \ BUNDLE_BIN="$GEM_HOME/bin" \
&& chmod 777 "$GEM_HOME" BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# don't create ".bundle" in all our apps ENV PATH $BUNDLE_BIN:$PATH
ENV BUNDLE_APP_CONFIG $GEM_HOME RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
CMD [ "irb" ] CMD [ "irb" ]

View file

@ -62,18 +62,17 @@ RUN set -ex \
ENV BUNDLER_VERSION 1.11.2 ENV BUNDLER_VERSION 1.11.2
RUN gem install bundler --version "$BUNDLER_VERSION" \ RUN gem install bundler --version "$BUNDLER_VERSION"
&& bundle config --global path "$GEM_HOME" \
&& bundle config --global bin "$GEM_HOME/bin" \
&& bundle config --global silence_root_warning true
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH ENV BUNDLE_PATH="$GEM_HOME" \
RUN mkdir -p "$GEM_HOME" \ BUNDLE_BIN="$GEM_HOME/bin" \
&& chmod 777 "$GEM_HOME" BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# don't create ".bundle" in all our apps ENV PATH $BUNDLE_BIN:$PATH
ENV BUNDLE_APP_CONFIG $GEM_HOME RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
CMD [ "irb" ] CMD [ "irb" ]

View file

@ -40,18 +40,17 @@ RUN set -ex \
ENV BUNDLER_VERSION 1.11.2 ENV BUNDLER_VERSION 1.11.2
RUN gem install bundler --version "$BUNDLER_VERSION" \ RUN gem install bundler --version "$BUNDLER_VERSION"
&& bundle config --global path "$GEM_HOME" \
&& bundle config --global bin "$GEM_HOME/bin" \
&& bundle config --global silence_root_warning true
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH ENV BUNDLE_PATH="$GEM_HOME" \
RUN mkdir -p "$GEM_HOME" \ BUNDLE_BIN="$GEM_HOME/bin" \
&& chmod 777 "$GEM_HOME" BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# don't create ".bundle" in all our apps ENV PATH $BUNDLE_BIN:$PATH
ENV BUNDLE_APP_CONFIG $GEM_HOME RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
CMD [ "irb" ] CMD [ "irb" ]

View file

@ -75,18 +75,17 @@ RUN set -ex \
ENV BUNDLER_VERSION 1.11.2 ENV BUNDLER_VERSION 1.11.2
RUN gem install bundler --version "$BUNDLER_VERSION" \ RUN gem install bundler --version "$BUNDLER_VERSION"
&& bundle config --global path "$GEM_HOME" \
&& bundle config --global bin "$GEM_HOME/bin" \
&& bundle config --global silence_root_warning true
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH ENV BUNDLE_PATH="$GEM_HOME" \
RUN mkdir -p "$GEM_HOME" \ BUNDLE_BIN="$GEM_HOME/bin" \
&& chmod 777 "$GEM_HOME" BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# don't create ".bundle" in all our apps ENV PATH $BUNDLE_BIN:$PATH
ENV BUNDLE_APP_CONFIG $GEM_HOME RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
CMD [ "irb" ] CMD [ "irb" ]

View file

@ -62,18 +62,17 @@ RUN set -ex \
ENV BUNDLER_VERSION 1.11.2 ENV BUNDLER_VERSION 1.11.2
RUN gem install bundler --version "$BUNDLER_VERSION" \ RUN gem install bundler --version "$BUNDLER_VERSION"
&& bundle config --global path "$GEM_HOME" \
&& bundle config --global bin "$GEM_HOME/bin" \
&& bundle config --global silence_root_warning true
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH ENV BUNDLE_PATH="$GEM_HOME" \
RUN mkdir -p "$GEM_HOME" \ BUNDLE_BIN="$GEM_HOME/bin" \
&& chmod 777 "$GEM_HOME" BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# don't create ".bundle" in all our apps ENV PATH $BUNDLE_BIN:$PATH
ENV BUNDLE_APP_CONFIG $GEM_HOME RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
CMD [ "irb" ] CMD [ "irb" ]

View file

@ -40,18 +40,17 @@ RUN set -ex \
ENV BUNDLER_VERSION 1.11.2 ENV BUNDLER_VERSION 1.11.2
RUN gem install bundler --version "$BUNDLER_VERSION" \ RUN gem install bundler --version "$BUNDLER_VERSION"
&& bundle config --global path "$GEM_HOME" \
&& bundle config --global bin "$GEM_HOME/bin" \
&& bundle config --global silence_root_warning true
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH ENV BUNDLE_PATH="$GEM_HOME" \
RUN mkdir -p "$GEM_HOME" \ BUNDLE_BIN="$GEM_HOME/bin" \
&& chmod 777 "$GEM_HOME" BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# don't create ".bundle" in all our apps ENV PATH $BUNDLE_BIN:$PATH
ENV BUNDLE_APP_CONFIG $GEM_HOME RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
CMD [ "irb" ] CMD [ "irb" ]

View file

@ -75,18 +75,17 @@ RUN set -ex \
ENV BUNDLER_VERSION 1.11.2 ENV BUNDLER_VERSION 1.11.2
RUN gem install bundler --version "$BUNDLER_VERSION" \ RUN gem install bundler --version "$BUNDLER_VERSION"
&& bundle config --global path "$GEM_HOME" \
&& bundle config --global bin "$GEM_HOME/bin" \
&& bundle config --global silence_root_warning true
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH ENV BUNDLE_PATH="$GEM_HOME" \
RUN mkdir -p "$GEM_HOME" \ BUNDLE_BIN="$GEM_HOME/bin" \
&& chmod 777 "$GEM_HOME" BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# don't create ".bundle" in all our apps ENV PATH $BUNDLE_BIN:$PATH
ENV BUNDLE_APP_CONFIG $GEM_HOME RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
CMD [ "irb" ] CMD [ "irb" ]

View file

@ -62,18 +62,17 @@ RUN set -ex \
ENV BUNDLER_VERSION 1.11.2 ENV BUNDLER_VERSION 1.11.2
RUN gem install bundler --version "$BUNDLER_VERSION" \ RUN gem install bundler --version "$BUNDLER_VERSION"
&& bundle config --global path "$GEM_HOME" \
&& bundle config --global bin "$GEM_HOME/bin" \
&& bundle config --global silence_root_warning true
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH ENV BUNDLE_PATH="$GEM_HOME" \
RUN mkdir -p "$GEM_HOME" \ BUNDLE_BIN="$GEM_HOME/bin" \
&& chmod 777 "$GEM_HOME" BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# don't create ".bundle" in all our apps ENV PATH $BUNDLE_BIN:$PATH
ENV BUNDLE_APP_CONFIG $GEM_HOME RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
CMD [ "irb" ] CMD [ "irb" ]

View file

@ -40,18 +40,17 @@ RUN set -ex \
ENV BUNDLER_VERSION 1.11.2 ENV BUNDLER_VERSION 1.11.2
RUN gem install bundler --version "$BUNDLER_VERSION" \ RUN gem install bundler --version "$BUNDLER_VERSION"
&& bundle config --global path "$GEM_HOME" \
&& bundle config --global bin "$GEM_HOME/bin" \
&& bundle config --global silence_root_warning true
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH ENV BUNDLE_PATH="$GEM_HOME" \
RUN mkdir -p "$GEM_HOME" \ BUNDLE_BIN="$GEM_HOME/bin" \
&& chmod 777 "$GEM_HOME" BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# don't create ".bundle" in all our apps ENV PATH $BUNDLE_BIN:$PATH
ENV BUNDLE_APP_CONFIG $GEM_HOME RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
CMD [ "irb" ] CMD [ "irb" ]

View file

@ -75,18 +75,17 @@ RUN set -ex \
ENV BUNDLER_VERSION 1.11.2 ENV BUNDLER_VERSION 1.11.2
RUN gem install bundler --version "$BUNDLER_VERSION" \ RUN gem install bundler --version "$BUNDLER_VERSION"
&& bundle config --global path "$GEM_HOME" \
&& bundle config --global bin "$GEM_HOME/bin" \
&& bundle config --global silence_root_warning true
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH ENV BUNDLE_PATH="$GEM_HOME" \
RUN mkdir -p "$GEM_HOME" \ BUNDLE_BIN="$GEM_HOME/bin" \
&& chmod 777 "$GEM_HOME" BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# don't create ".bundle" in all our apps ENV PATH $BUNDLE_BIN:$PATH
ENV BUNDLE_APP_CONFIG $GEM_HOME RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
CMD [ "irb" ] CMD [ "irb" ]

View file

@ -62,18 +62,17 @@ RUN set -ex \
ENV BUNDLER_VERSION 1.11.2 ENV BUNDLER_VERSION 1.11.2
RUN gem install bundler --version "$BUNDLER_VERSION" \ RUN gem install bundler --version "$BUNDLER_VERSION"
&& bundle config --global path "$GEM_HOME" \
&& bundle config --global bin "$GEM_HOME/bin" \
&& bundle config --global silence_root_warning true
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH ENV BUNDLE_PATH="$GEM_HOME" \
RUN mkdir -p "$GEM_HOME" \ BUNDLE_BIN="$GEM_HOME/bin" \
&& chmod 777 "$GEM_HOME" BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# don't create ".bundle" in all our apps ENV PATH $BUNDLE_BIN:$PATH
ENV BUNDLE_APP_CONFIG $GEM_HOME RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
CMD [ "irb" ] CMD [ "irb" ]

View file

@ -75,18 +75,17 @@ RUN set -ex \
ENV BUNDLER_VERSION %%BUNDLER%% ENV BUNDLER_VERSION %%BUNDLER%%
RUN gem install bundler --version "$BUNDLER_VERSION" \ RUN gem install bundler --version "$BUNDLER_VERSION"
&& bundle config --global path "$GEM_HOME" \
&& bundle config --global bin "$GEM_HOME/bin" \
&& bundle config --global silence_root_warning true
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH ENV BUNDLE_PATH="$GEM_HOME" \
RUN mkdir -p "$GEM_HOME" \ BUNDLE_BIN="$GEM_HOME/bin" \
&& chmod 777 "$GEM_HOME" BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# don't create ".bundle" in all our apps ENV PATH $BUNDLE_BIN:$PATH
ENV BUNDLE_APP_CONFIG $GEM_HOME RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
CMD [ "irb" ] CMD [ "irb" ]

View file

@ -62,18 +62,17 @@ RUN set -ex \
ENV BUNDLER_VERSION %%BUNDLER%% ENV BUNDLER_VERSION %%BUNDLER%%
RUN gem install bundler --version "$BUNDLER_VERSION" \ RUN gem install bundler --version "$BUNDLER_VERSION"
&& bundle config --global path "$GEM_HOME" \
&& bundle config --global bin "$GEM_HOME/bin" \
&& bundle config --global silence_root_warning true
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH ENV BUNDLE_PATH="$GEM_HOME" \
RUN mkdir -p "$GEM_HOME" \ BUNDLE_BIN="$GEM_HOME/bin" \
&& chmod 777 "$GEM_HOME" BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# don't create ".bundle" in all our apps ENV PATH $BUNDLE_BIN:$PATH
ENV BUNDLE_APP_CONFIG $GEM_HOME RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
CMD [ "irb" ] CMD [ "irb" ]

View file

@ -40,18 +40,17 @@ RUN set -ex \
ENV BUNDLER_VERSION %%BUNDLER%% ENV BUNDLER_VERSION %%BUNDLER%%
RUN gem install bundler --version "$BUNDLER_VERSION" \ RUN gem install bundler --version "$BUNDLER_VERSION"
&& bundle config --global path "$GEM_HOME" \
&& bundle config --global bin "$GEM_HOME/bin" \
&& bundle config --global silence_root_warning true
# install things globally, for great justice # install things globally, for great justice
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle ENV GEM_HOME /usr/local/bundle
ENV PATH $GEM_HOME/bin:$PATH ENV BUNDLE_PATH="$GEM_HOME" \
RUN mkdir -p "$GEM_HOME" \ BUNDLE_BIN="$GEM_HOME/bin" \
&& chmod 777 "$GEM_HOME" BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
# don't create ".bundle" in all our apps ENV PATH $BUNDLE_BIN:$PATH
ENV BUNDLE_APP_CONFIG $GEM_HOME RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
CMD [ "irb" ] CMD [ "irb" ]