Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update "ruby-gems" test to check the required "ruby_version" of each gem and auto-skip gems we can't satisfy the latest release of on our current RUBY_VERSION #3720

Merged
merged 1 commit into from
Nov 16, 2017

Conversation

tianon
Copy link
Member

@tianon tianon commented Nov 15, 2017

Refs #3717

…gem and auto-skip gems we can't satisfy the latest release of on our current RUBY_VERSION
@tianon
Copy link
Member Author

tianon commented Nov 16, 2017

Build test of #3720; d08cbeb; amd64 (ruby, jruby):

$ bashbrew build ruby:2.5.0-preview1-stretch
Building bashbrew/cache:278968b4777a095fe6cae443eb720e177602687f31c463c53c4bdf3351e60815 (ruby:2.5.0-preview1-stretch)
Tagging ruby:2.5.0-preview1-stretch
Tagging ruby:2.5-rc-stretch
Tagging ruby:rc-stretch
Tagging ruby:2.5.0-preview1
Tagging ruby:2.5-rc
Tagging ruby:rc

$ test/run.sh ruby:2.5.0-preview1-stretch
testing ruby:2.5.0-preview1-stretch
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'ruby-hello-world' [5/9]...passed
	'ruby-standard-libs' [6/9]...passed
	'ruby-gems' [7/9]...passed
	'ruby-bundler' [8/9]...passed
	'ruby-nonroot' [9/9]...passed


$ bashbrew build ruby:2.5.0-preview1-slim-stretch
Building bashbrew/cache:aba90e695ad4858d1afce26327a557450397c35292cc2f68b4a04b5720690978 (ruby:2.5.0-preview1-slim-stretch)
Tagging ruby:2.5.0-preview1-slim-stretch
Tagging ruby:2.5-rc-slim-stretch
Tagging ruby:rc-slim-stretch
Tagging ruby:2.5.0-preview1-slim
Tagging ruby:2.5-rc-slim
Tagging ruby:rc-slim

$ test/run.sh ruby:2.5.0-preview1-slim-stretch
testing ruby:2.5.0-preview1-slim-stretch
	'utc' [1/7]...passed
	'cve-2014--shellshock' [2/7]...passed
	'no-hard-coded-passwords' [3/7]...passed
	'override-cmd' [4/7]...passed
	'ruby-hello-world' [5/7]...passed
	'ruby-standard-libs' [6/7]...passed
	'ruby-nonroot' [7/7]...passed


$ bashbrew build ruby:2.5.0-preview1-alpine3.6
Building bashbrew/cache:0297c3b62fdfae0872746570e689f8daea95d211479bc32230024aab14c0136d (ruby:2.5.0-preview1-alpine3.6)
Tagging ruby:2.5.0-preview1-alpine3.6
Tagging ruby:2.5-rc-alpine3.6
Tagging ruby:rc-alpine3.6
Tagging ruby:2.5.0-preview1-alpine
Tagging ruby:2.5-rc-alpine
Tagging ruby:rc-alpine

$ test/run.sh ruby:2.5.0-preview1-alpine3.6
testing ruby:2.5.0-preview1-alpine3.6
	'utc' [1/7]...passed
	'cve-2014--shellshock' [2/7]...passed
	'no-hard-coded-passwords' [3/7]...passed
	'override-cmd' [4/7]...passed
	'ruby-hello-world' [5/7]...passed
	'ruby-standard-libs' [6/7]...passed
	'ruby-nonroot' [7/7]...passed


$ bashbrew build ruby:2.4.2-stretch
Building bashbrew/cache:1f67be1f196010f5c372092754e27b982a26510e542ebeb8a13589e963ae2252 (ruby:2.4.2-stretch)
Tagging ruby:2.4.2-stretch
Tagging ruby:2.4-stretch
Tagging ruby:2-stretch
Tagging ruby:stretch

$ test/run.sh ruby:2.4.2-stretch
testing ruby:2.4.2-stretch
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'ruby-hello-world' [5/9]...passed
	'ruby-standard-libs' [6/9]...passed
	'ruby-gems' [7/9]...passed
	'ruby-bundler' [8/9]...passed
	'ruby-nonroot' [9/9]...passed


$ bashbrew build ruby:2.4.2-slim-stretch
Building bashbrew/cache:3b9649b541574124db8f2382f93e054dc20b3478deaa0f0c4255e911f52531ac (ruby:2.4.2-slim-stretch)
Tagging ruby:2.4.2-slim-stretch
Tagging ruby:2.4-slim-stretch
Tagging ruby:2-slim-stretch
Tagging ruby:slim-stretch

$ test/run.sh ruby:2.4.2-slim-stretch
testing ruby:2.4.2-slim-stretch
	'utc' [1/7]...passed
	'cve-2014--shellshock' [2/7]...passed
	'no-hard-coded-passwords' [3/7]...passed
	'override-cmd' [4/7]...passed
	'ruby-hello-world' [5/7]...passed
	'ruby-standard-libs' [6/7]...passed
	'ruby-nonroot' [7/7]...passed


$ bashbrew build ruby:2.4.2-jessie
Building bashbrew/cache:e44372b1500b6ebe654c4affe60a29dce5533ca08c6228d098e2ba4c5521363a (ruby:2.4.2-jessie)
Tagging ruby:2.4.2-jessie
Tagging ruby:2.4-jessie
Tagging ruby:2-jessie
Tagging ruby:jessie
Tagging ruby:2.4.2
Tagging ruby:2.4
Tagging ruby:2
Tagging ruby:latest

$ test/run.sh ruby:2.4.2-jessie
testing ruby:2.4.2-jessie
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'ruby-hello-world' [5/9]...passed
	'ruby-standard-libs' [6/9]...passed
	'ruby-gems' [7/9]...passed
	'ruby-bundler' [8/9]...passed
	'ruby-nonroot' [9/9]...passed


$ bashbrew build ruby:2.4.2-slim-jessie
Building bashbrew/cache:8d2b8327eabb240a199b0ad4afdce89e903bfd9b9a91fabe7ac50cfcbe36ada4 (ruby:2.4.2-slim-jessie)
Tagging ruby:2.4.2-slim-jessie
Tagging ruby:2.4-slim-jessie
Tagging ruby:2-slim-jessie
Tagging ruby:slim-jessie
Tagging ruby:2.4.2-slim
Tagging ruby:2.4-slim
Tagging ruby:2-slim
Tagging ruby:slim

$ test/run.sh ruby:2.4.2-slim-jessie
testing ruby:2.4.2-slim-jessie
	'utc' [1/7]...passed
	'cve-2014--shellshock' [2/7]...passed
	'no-hard-coded-passwords' [3/7]...passed
	'override-cmd' [4/7]...passed
	'ruby-hello-world' [5/7]...passed
	'ruby-standard-libs' [6/7]...passed
	'ruby-nonroot' [7/7]...passed


$ bashbrew build ruby:2.4.2-onbuild
Building bashbrew/cache:20df7043a236e4378160b1f3fa6f1cab246c2ac653e51c2e24451bb856657092 (ruby:2.4.2-onbuild)
Tagging ruby:2.4.2-onbuild
Tagging ruby:2.4-onbuild
Tagging ruby:2-onbuild
Tagging ruby:onbuild

$ test/run.sh ruby:2.4.2-onbuild
testing ruby:2.4.2-onbuild
	'override-cmd' [1/1]...passed


$ bashbrew build ruby:2.4.2-alpine3.6
Building bashbrew/cache:fe4f5ea6c00ed681f59cebac48cd9c8f3beae1f1929d03cb21388bddc4a0b660 (ruby:2.4.2-alpine3.6)
Tagging ruby:2.4.2-alpine3.6
Tagging ruby:2.4-alpine3.6
Tagging ruby:2-alpine3.6
Tagging ruby:alpine3.6

$ test/run.sh ruby:2.4.2-alpine3.6
testing ruby:2.4.2-alpine3.6
	'utc' [1/7]...passed
	'cve-2014--shellshock' [2/7]...passed
	'no-hard-coded-passwords' [3/7]...passed
	'override-cmd' [4/7]...passed
	'ruby-hello-world' [5/7]...passed
	'ruby-standard-libs' [6/7]...passed
	'ruby-nonroot' [7/7]...passed


$ bashbrew build ruby:2.4.2-alpine3.4
Building bashbrew/cache:877011f1b3352f7db673802d19c2e32bb91700f8861b541e37e2803ccdc62fb4 (ruby:2.4.2-alpine3.4)
Tagging ruby:2.4.2-alpine3.4
Tagging ruby:2.4-alpine3.4
Tagging ruby:2-alpine3.4
Tagging ruby:alpine3.4
Tagging ruby:2.4.2-alpine
Tagging ruby:2.4-alpine
Tagging ruby:2-alpine
Tagging ruby:alpine

$ test/run.sh ruby:2.4.2-alpine3.4
testing ruby:2.4.2-alpine3.4
	'utc' [1/7]...passed
	'cve-2014--shellshock' [2/7]...passed
	'no-hard-coded-passwords' [3/7]...passed
	'override-cmd' [4/7]...passed
	'ruby-hello-world' [5/7]...passed
	'ruby-standard-libs' [6/7]...passed
	'ruby-nonroot' [7/7]...passed


$ bashbrew build ruby:2.3.5-jessie
Building bashbrew/cache:3d27b242afe84cd8a252a187d2eadc3f8cc6ac86e6e62d582fe96edfce0534a3 (ruby:2.3.5-jessie)
Tagging ruby:2.3.5-jessie
Tagging ruby:2.3-jessie
Tagging ruby:2.3.5
Tagging ruby:2.3

$ test/run.sh ruby:2.3.5-jessie
testing ruby:2.3.5-jessie
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'ruby-hello-world' [5/9]...passed
	'ruby-standard-libs' [6/9]...passed
	'ruby-gems' [7/9]...passed
	'ruby-bundler' [8/9]...passed
	'ruby-nonroot' [9/9]...passed


$ bashbrew build ruby:2.3.5-slim-jessie
Building bashbrew/cache:67902dbfe1e36e76c4e5749bded1e0bdee7996b37f375372939b04946b4e5a0f (ruby:2.3.5-slim-jessie)
Tagging ruby:2.3.5-slim-jessie
Tagging ruby:2.3-slim-jessie
Tagging ruby:2.3.5-slim
Tagging ruby:2.3-slim

$ test/run.sh ruby:2.3.5-slim-jessie
testing ruby:2.3.5-slim-jessie
	'utc' [1/7]...passed
	'cve-2014--shellshock' [2/7]...passed
	'no-hard-coded-passwords' [3/7]...passed
	'override-cmd' [4/7]...passed
	'ruby-hello-world' [5/7]...passed
	'ruby-standard-libs' [6/7]...passed
	'ruby-nonroot' [7/7]...passed


$ bashbrew build ruby:2.3.5-onbuild
Building bashbrew/cache:7fe86d9fa4417cbf864ad51b12e4337e25e67de59fa100b74de1c069a780b28c (ruby:2.3.5-onbuild)
Tagging ruby:2.3.5-onbuild
Tagging ruby:2.3-onbuild

$ test/run.sh ruby:2.3.5-onbuild
testing ruby:2.3.5-onbuild
	'override-cmd' [1/1]...passed


$ bashbrew build ruby:2.3.5-alpine3.4
Building bashbrew/cache:cb587bd8e07da7094648d02c91f0de87d3f14d80aea5c85f973f54346e6aa416 (ruby:2.3.5-alpine3.4)
Tagging ruby:2.3.5-alpine3.4
Tagging ruby:2.3-alpine3.4
Tagging ruby:2.3.5-alpine
Tagging ruby:2.3-alpine

$ test/run.sh ruby:2.3.5-alpine3.4
testing ruby:2.3.5-alpine3.4
	'utc' [1/7]...passed
	'cve-2014--shellshock' [2/7]...passed
	'no-hard-coded-passwords' [3/7]...passed
	'override-cmd' [4/7]...passed
	'ruby-hello-world' [5/7]...passed
	'ruby-standard-libs' [6/7]...passed
	'ruby-nonroot' [7/7]...passed


$ bashbrew build ruby:2.2.8-jessie
Building bashbrew/cache:b581ccb3606fc6748ff29d0776ed0c388740c344e74268280a20f8ac267c4144 (ruby:2.2.8-jessie)
Tagging ruby:2.2.8-jessie
Tagging ruby:2.2-jessie
Tagging ruby:2.2.8
Tagging ruby:2.2

$ test/run.sh ruby:2.2.8-jessie
testing ruby:2.2.8-jessie
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'ruby-hello-world' [5/9]...passed
	'ruby-standard-libs' [6/9]...passed
	'ruby-gems' [7/9]...passed
	'ruby-bundler' [8/9]...passed
	'ruby-nonroot' [9/9]...passed


$ bashbrew build ruby:2.2.8-slim-jessie
Building bashbrew/cache:080bb527811df1a0937bfa132ba520a394397fa6024e32d6c505798cc954125b (ruby:2.2.8-slim-jessie)
Tagging ruby:2.2.8-slim-jessie
Tagging ruby:2.2-slim-jessie
Tagging ruby:2.2.8-slim
Tagging ruby:2.2-slim

$ test/run.sh ruby:2.2.8-slim-jessie
testing ruby:2.2.8-slim-jessie
	'utc' [1/7]...passed
	'cve-2014--shellshock' [2/7]...passed
	'no-hard-coded-passwords' [3/7]...passed
	'override-cmd' [4/7]...passed
	'ruby-hello-world' [5/7]...passed
	'ruby-standard-libs' [6/7]...passed
	'ruby-nonroot' [7/7]...passed


$ bashbrew build ruby:2.2.8-onbuild
Building bashbrew/cache:e8d1d204a9f0710ac4f6362ab66d6b45c080c4cd3ad974b826478f34f3e25efd (ruby:2.2.8-onbuild)
Tagging ruby:2.2.8-onbuild
Tagging ruby:2.2-onbuild

$ test/run.sh ruby:2.2.8-onbuild
testing ruby:2.2.8-onbuild
	'override-cmd' [1/1]...passed


$ bashbrew build ruby:2.2.8-alpine3.4
Building bashbrew/cache:01daab56294aaf6c740c2bd929742187a5db141dd3799d65521cff41775b67d8 (ruby:2.2.8-alpine3.4)
Tagging ruby:2.2.8-alpine3.4
Tagging ruby:2.2-alpine3.4
Tagging ruby:2.2.8-alpine
Tagging ruby:2.2-alpine

$ test/run.sh ruby:2.2.8-alpine3.4
testing ruby:2.2.8-alpine3.4
	'utc' [1/7]...passed
	'cve-2014--shellshock' [2/7]...passed
	'no-hard-coded-passwords' [3/7]...passed
	'override-cmd' [4/7]...passed
	'ruby-hello-world' [5/7]...passed
	'ruby-standard-libs' [6/7]...passed
	'ruby-nonroot' [7/7]...passed
$ bashbrew build jruby:latest
Building bashbrew/cache:8dee88770bad8d9ef5a4557d0899eb79936f73983c3792b98844b2fae5281fe6 (jruby:latest)
Tagging jruby:latest
Tagging jruby:9
Tagging jruby:9.1
Tagging jruby:9.1-jre
Tagging jruby:9.1.13
Tagging jruby:9.1.13-jre
Tagging jruby:9.1.13.0
Tagging jruby:9.1.13.0-jre

$ test/run.sh jruby:latest
testing jruby:latest
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'ruby-hello-world' [5/9]...passed
	'ruby-standard-libs' [6/9]...passed
	'ruby-gems' [7/9]...passed
	'ruby-bundler' [8/9]...passed
	'ruby-nonroot' [9/9]...passed


$ bashbrew build jruby:9-alpine
Using bashbrew/cache:1441cf262a4aa2cca0a2a4b1861858fa13de7828cc45e10871a7c47f499cc62b (jruby:9-alpine)
Tagging jruby:9-alpine
Tagging jruby:9.1-alpine
Tagging jruby:9.1-jre-alpine
Tagging jruby:9.1.13-alpine
Tagging jruby:9.1.13-jre-alpine
Tagging jruby:9.1.13.0-alpine
Tagging jruby:9.1.13.0-jre-alpine

$ test/run.sh jruby:9-alpine
testing jruby:9-alpine
	'utc' [1/7]...passed
	'cve-2014--shellshock' [2/7]...passed
	'no-hard-coded-passwords' [3/7]...passed
	'override-cmd' [4/7]...passed
	'ruby-hello-world' [5/7]...passed
	'ruby-standard-libs' [6/7]...passed
	'ruby-nonroot' [7/7]...passed


$ bashbrew build jruby:9.1-jdk
Using bashbrew/cache:a7a45c5a73bb5aa8e860ed0a623a57ebd2c44069a3f9e866046dba5eb3ddeacb (jruby:9.1-jdk)
Tagging jruby:9.1-jdk
Tagging jruby:9.1.13-jdk
Tagging jruby:9.1.13.0-jdk

$ test/run.sh jruby:9.1-jdk
testing jruby:9.1-jdk
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'ruby-hello-world' [5/9]...passed
	'ruby-standard-libs' [6/9]...passed
	'ruby-gems' [7/9]...passed
	'ruby-bundler' [8/9]...passed
	'ruby-nonroot' [9/9]...passed


$ bashbrew build jruby:9.1-jdk-alpine
Using bashbrew/cache:117fcee8558b61025d5106af3ae9397ec83e3141c9f2cf9da7d41f9f07e74459 (jruby:9.1-jdk-alpine)
Tagging jruby:9.1-jdk-alpine
Tagging jruby:9.1.13-jdk-alpine
Tagging jruby:9.1.13.0-jdk-alpine

$ test/run.sh jruby:9.1-jdk-alpine
testing jruby:9.1-jdk-alpine
	'utc' [1/7]...passed
	'cve-2014--shellshock' [2/7]...passed
	'no-hard-coded-passwords' [3/7]...passed
	'override-cmd' [4/7]...passed
	'ruby-hello-world' [5/7]...passed
	'ruby-standard-libs' [6/7]...passed
	'ruby-nonroot' [7/7]...passed


$ bashbrew build jruby:9-onbuild
Using bashbrew/cache:adacba2cf09cf2dfef66efe7da8d7792e84ded097e274e745e9972297665bb3a (jruby:9-onbuild)
Tagging jruby:9-onbuild
Tagging jruby:9.1-onbuild
Tagging jruby:9.1.13-onbuild
Tagging jruby:9.1.13.0-onbuild

$ test/run.sh jruby:9-onbuild
testing jruby:9-onbuild
	'override-cmd' [1/1]...passed


$ bashbrew build jruby:1.7
Building bashbrew/cache:48b8ac6760de0300fdbd176038b418e3fb29f066a6608ec65ba6da75aca92730 (jruby:1.7)
Tagging jruby:1.7
Tagging jruby:1.7.27
Tagging jruby:1.7-jre
Tagging jruby:1.7.27-jre

$ test/run.sh jruby:1.7
testing jruby:1.7
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'ruby-hello-world' [5/9]...passed
	'ruby-standard-libs' [6/9]...passed
	'ruby-gems' [7/9]...skipping rake due to required Ruby version: >= 2.0.0 (vs 1.9.3)
skipping rack due to required Ruby version: >= 2.2.2 (vs 1.9.3)
skipping mime-types due to required Ruby version: >= 2.0 (vs 1.9.3)
skipping activesupport due to required Ruby version: >= 2.2.2 (vs 1.9.3)
passed
	'ruby-bundler' [8/9]...passed
	'ruby-nonroot' [9/9]...passed


$ bashbrew build jruby:1.7-jdk
Using bashbrew/cache:88adcee0080ba690e5f4760f66944e7156298de53336aa56582794929a634419 (jruby:1.7-jdk)
Tagging jruby:1.7-jdk
Tagging jruby:1.7.27-jdk

$ test/run.sh jruby:1.7-jdk
testing jruby:1.7-jdk
	'utc' [1/9]...passed
	'cve-2014--shellshock' [2/9]...passed
	'no-hard-coded-passwords' [3/9]...passed
	'override-cmd' [4/9]...passed
	'ruby-hello-world' [5/9]...passed
	'ruby-standard-libs' [6/9]...passed
	'ruby-gems' [7/9]...skipping rake due to required Ruby version: >= 2.0.0 (vs 1.9.3)
skipping rack due to required Ruby version: >= 2.2.2 (vs 1.9.3)
skipping mime-types due to required Ruby version: >= 2.0 (vs 1.9.3)
skipping activesupport due to required Ruby version: >= 2.2.2 (vs 1.9.3)
passed
	'ruby-bundler' [8/9]...passed
	'ruby-nonroot' [9/9]...passed


$ bashbrew build jruby:1.7-onbuild
Using bashbrew/cache:9340006e8966eeb7ffc22b91260d27c6b0d541cb5f8245e09464d1bd8b2f28a0 (jruby:1.7-onbuild)
Tagging jruby:1.7-onbuild
Tagging jruby:1.7.27-onbuild

$ test/run.sh jruby:1.7-onbuild
testing jruby:1.7-onbuild
	'override-cmd' [1/1]...passed

@yosifkit yosifkit merged commit 54a10e7 into docker-library:master Nov 16, 2017
@yosifkit yosifkit deleted the ruby-gems-ruby-versions branch November 16, 2017 17:37
@tianon tianon mentioned this pull request Nov 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants