Skip to content

Commit 265702f

Browse files
author
Phileas Lebada
committed
Fix verification no system-ruby deps installed
1 parent d6b03c9 commit 265702f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Dockerfile-alpine.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ RUN apk add --no-cache --virtual .ruby-builddeps \
114114
gem update --system "$RUBYGEMS_VERSION"; \
115115
rm -fr /root/.gem/; \
116116
# verify we have no "ruby" packages installed
117-
! apk --no-network list --installed \
117+
if apk --no-network list --installed \
118118
| grep -v '^[.]ruby-rundeps' \
119119
| grep -i ruby \
120-
; \
120+
; then false; fi; \
121121
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
122122
# rough smoke test
123123
ruby --version; \

Dockerfile-debian.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ RUN savedAptMark="$(apt-mark showmanual)"; \
7575
gem update --system "$RUBYGEMS_VERSION"; \
7676
rm -fr /root/.gem/; \
7777
# verify we have no "ruby" packages installed
78-
! dpkg -l | grep -i ruby; \
78+
if dpkg -l | grep -i 'ruby'; then false; fi; \
7979
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
8080
# rough smoke test
8181
ruby --version; \

Dockerfile-slim.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ RUN savedAptMark="$(apt-mark showmanual)"; \
100100
gem update --system "$RUBYGEMS_VERSION"; \
101101
rm -r /root/.gem/; \
102102
# verify we have no "ruby" packages installed
103-
! dpkg -l | grep -i ruby; \
103+
if dpkg -l | grep -i 'ruby'; then false; fi; \
104104
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
105105
# rough smoke test
106106
ruby --version; \

0 commit comments

Comments
 (0)