File tree Expand file tree Collapse file tree 20 files changed +84
-0
lines changed Expand file tree Collapse file tree 20 files changed +84
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,12 @@ RUN set -eux; \
110
110
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
111
111
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))' ; \
112
112
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
113
+ # verify we have no "ruby" packages installed
114
+ ! apk --no-network list --installed \
115
+ | grep -v '^[.]ruby-rundeps' \
116
+ | grep -i ruby \
117
+ ; \
118
+ [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
113
119
# rough smoke test
114
120
ruby --version; \
115
121
gem --version; \
Original file line number Diff line number Diff line change @@ -110,6 +110,12 @@ RUN set -eux; \
110
110
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
111
111
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))' ; \
112
112
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
113
+ # verify we have no "ruby" packages installed
114
+ ! apk --no-network list --installed \
115
+ | grep -v '^[.]ruby-rundeps' \
116
+ | grep -i ruby \
117
+ ; \
118
+ [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
113
119
# rough smoke test
114
120
ruby --version; \
115
121
gem --version; \
Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ RUN set -eux; \
72
72
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
73
73
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))' ; \
74
74
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
75
+ # verify we have no "ruby" packages installed
76
+ ! dpkg -l | grep -i ruby; \
77
+ [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
75
78
# rough smoke test
76
79
ruby --version; \
77
80
gem --version; \
Original file line number Diff line number Diff line change @@ -97,6 +97,9 @@ RUN set -eux; \
97
97
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
98
98
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))' ; \
99
99
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
100
+ # verify we have no "ruby" packages installed
101
+ ! dpkg -l | grep -i ruby; \
102
+ [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
100
103
# rough smoke test
101
104
ruby --version; \
102
105
gem --version; \
Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ RUN set -eux; \
72
72
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
73
73
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))' ; \
74
74
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
75
+ # verify we have no "ruby" packages installed
76
+ ! dpkg -l | grep -i ruby; \
77
+ [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
75
78
# rough smoke test
76
79
ruby --version; \
77
80
gem --version; \
Original file line number Diff line number Diff line change @@ -97,6 +97,9 @@ RUN set -eux; \
97
97
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
98
98
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))' ; \
99
99
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
100
+ # verify we have no "ruby" packages installed
101
+ ! dpkg -l | grep -i ruby; \
102
+ [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
100
103
# rough smoke test
101
104
ruby --version; \
102
105
gem --version; \
Original file line number Diff line number Diff line change @@ -110,6 +110,12 @@ RUN set -eux; \
110
110
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
111
111
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))' ; \
112
112
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
113
+ # verify we have no "ruby" packages installed
114
+ ! apk --no-network list --installed \
115
+ | grep -v '^[.]ruby-rundeps' \
116
+ | grep -i ruby \
117
+ ; \
118
+ [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
113
119
# rough smoke test
114
120
ruby --version; \
115
121
gem --version; \
Original file line number Diff line number Diff line change @@ -110,6 +110,12 @@ RUN set -eux; \
110
110
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
111
111
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))' ; \
112
112
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
113
+ # verify we have no "ruby" packages installed
114
+ ! apk --no-network list --installed \
115
+ | grep -v '^[.]ruby-rundeps' \
116
+ | grep -i ruby \
117
+ ; \
118
+ [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
113
119
# rough smoke test
114
120
ruby --version; \
115
121
gem --version; \
Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ RUN set -eux; \
72
72
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
73
73
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))' ; \
74
74
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
75
+ # verify we have no "ruby" packages installed
76
+ ! dpkg -l | grep -i ruby; \
77
+ [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
75
78
# rough smoke test
76
79
ruby --version; \
77
80
gem --version; \
Original file line number Diff line number Diff line change @@ -97,6 +97,9 @@ RUN set -eux; \
97
97
# make sure bundled "rubygems" is older than RUBYGEMS_VERSION (https://github.com/docker-library/ruby/issues/246)
98
98
ruby -e 'exit(Gem::Version.create(ENV["RUBYGEMS_VERSION"]) > Gem::Version.create(Gem::VERSION))' ; \
99
99
gem update --system "$RUBYGEMS_VERSION" && rm -r /root/.gem/; \
100
+ # verify we have no "ruby" packages installed
101
+ ! dpkg -l | grep -i ruby; \
102
+ [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
100
103
# rough smoke test
101
104
ruby --version; \
102
105
gem --version; \
You can’t perform that action at this time.
0 commit comments