mirror of
https://github.com/docker-library/ruby.git
synced 2022-11-09 11:41:34 -05:00
Add some verification that we have no "distro ruby" packages
This commit is contained in:
parent
2a6352e714
commit
aacff43981
20 changed files with 84 additions and 0 deletions
|
@ -110,6 +110,12 @@ RUN set -eux; \
|
|||
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
|
||||
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))'; \
|
||||
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! apk --no-network list --installed \
|
||||
| grep -v '^[.]ruby-rundeps' \
|
||||
| grep -i ruby \
|
||||
; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -110,6 +110,12 @@ RUN set -eux; \
|
|||
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
|
||||
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))'; \
|
||||
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! apk --no-network list --installed \
|
||||
| grep -v '^[.]ruby-rundeps' \
|
||||
| grep -i ruby \
|
||||
; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -72,6 +72,9 @@ RUN set -eux; \
|
|||
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
|
||||
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))'; \
|
||||
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! dpkg -l | grep -i ruby; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -97,6 +97,9 @@ RUN set -eux; \
|
|||
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
|
||||
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))'; \
|
||||
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! dpkg -l | grep -i ruby; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -72,6 +72,9 @@ RUN set -eux; \
|
|||
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
|
||||
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))'; \
|
||||
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! dpkg -l | grep -i ruby; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -97,6 +97,9 @@ RUN set -eux; \
|
|||
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
|
||||
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))'; \
|
||||
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! dpkg -l | grep -i ruby; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -110,6 +110,12 @@ RUN set -eux; \
|
|||
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
|
||||
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))'; \
|
||||
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! apk --no-network list --installed \
|
||||
| grep -v '^[.]ruby-rundeps' \
|
||||
| grep -i ruby \
|
||||
; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -110,6 +110,12 @@ RUN set -eux; \
|
|||
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
|
||||
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))'; \
|
||||
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! apk --no-network list --installed \
|
||||
| grep -v '^[.]ruby-rundeps' \
|
||||
| grep -i ruby \
|
||||
; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -72,6 +72,9 @@ RUN set -eux; \
|
|||
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
|
||||
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))'; \
|
||||
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! dpkg -l | grep -i ruby; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -97,6 +97,9 @@ RUN set -eux; \
|
|||
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
|
||||
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))'; \
|
||||
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! dpkg -l | grep -i ruby; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -106,6 +106,12 @@ RUN set -eux; \
|
|||
\
|
||||
cd /; \
|
||||
rm -r /usr/src/ruby; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! apk --no-network list --installed \
|
||||
| grep -v '^[.]ruby-rundeps' \
|
||||
| grep -i ruby \
|
||||
; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -106,6 +106,12 @@ RUN set -eux; \
|
|||
\
|
||||
cd /; \
|
||||
rm -r /usr/src/ruby; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! apk --no-network list --installed \
|
||||
| grep -v '^[.]ruby-rundeps' \
|
||||
| grep -i ruby \
|
||||
; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -68,6 +68,9 @@ RUN set -eux; \
|
|||
\
|
||||
cd /; \
|
||||
rm -r /usr/src/ruby; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! dpkg -l | grep -i ruby; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -93,6 +93,9 @@ RUN set -eux; \
|
|||
\
|
||||
cd /; \
|
||||
rm -r /usr/src/ruby; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! dpkg -l | grep -i ruby; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -106,6 +106,12 @@ RUN set -eux; \
|
|||
\
|
||||
cd /; \
|
||||
rm -r /usr/src/ruby; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! apk --no-network list --installed \
|
||||
| grep -v '^[.]ruby-rundeps' \
|
||||
| grep -i ruby \
|
||||
; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -68,6 +68,9 @@ RUN set -eux; \
|
|||
\
|
||||
cd /; \
|
||||
rm -r /usr/src/ruby; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! dpkg -l | grep -i ruby; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -94,6 +94,9 @@ RUN set -eux; \
|
|||
\
|
||||
cd /; \
|
||||
rm -r /usr/src/ruby; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! dpkg -l | grep -i ruby; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -110,6 +110,12 @@ RUN set -eux; \
|
|||
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
|
||||
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))'; \
|
||||
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! apk --no-network list --installed \
|
||||
| grep -v '^[.]ruby-rundeps' \
|
||||
| grep -i ruby \
|
||||
; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -72,6 +72,9 @@ RUN set -eux; \
|
|||
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
|
||||
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))'; \
|
||||
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! dpkg -l | grep -i ruby; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
|
@ -98,6 +98,9 @@ RUN set -eux; \
|
|||
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
|
||||
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))'; \
|
||||
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
|
||||
# verify we have no "ruby" packages installed
|
||||
! dpkg -l | grep -i ruby; \
|
||||
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
|
||||
# rough smoke test
|
||||
ruby --version; \
|
||||
gem --version; \
|
||||
|
|
Loading…
Reference in a new issue