Skip to content

Conversation

@yosifkit
Copy link
Member

@yosifkit yosifkit commented Nov 17, 2025

The --deployment flag is a breaking option in bundler 4.0.0.dev (included in ruby 4.0.0-preview2) and has a deprecation warning in all versions of ruby we have. So, we can just move to the environment variable version.

Fixes some of the failures on 4.0.0: docker-library/ruby#517 (comment)

$ ./test/run.sh -t ruby-bundler -t ruby-nonroot ruby:4.0.0-preview2
testing ruby:4.0.0-preview2
        'ruby-bundler' [1/2]...passed
        'ruby-nonroot' [2/2]...passed

Ref: ruby/rubygems#8958

@yosifkit yosifkit requested a review from a team as a code owner November 17, 2025 23:47
@yosifkit
Copy link
Member Author

Ruby test:
+ ./oi/test/run.sh -t ruby-bundler -t ruby-nonroot ruby:3.5.0-preview1-trixie ruby:3.5.0-preview1-slim-trixie ruby:3.5.0-preview1-bookworm ruby:3.5.0-preview1-slim-bookworm ruby:3.5.0-preview1-alpine3.22 ruby:3.5.0-preview1-alpine3.21 ruby:3.4.7-trixie ruby:3.4.7-slim-trixie ruby:3.4.7-bookworm ruby:3.4.7-slim-bookworm ruby:3.4.7-alpine3.22 ruby:3.4.7-alpine3.21 ruby:3.3.10-trixie ruby:3.3.10-slim-trixie ruby:3.3.10-bookworm ruby:3.3.10-slim-bookworm ruby:3.3.10-alpine3.22 ruby:3.3.10-alpine3.21 ruby:3.2.9-trixie ruby:3.2.9-slim-trixie ruby:3.2.9-bookworm ruby:3.2.9-slim-bookworm ruby:3.2.9-alpine3.22 ruby:3.2.9-alpine3.21
testing ruby:3.5.0-preview1-trixie
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing ruby:3.5.0-preview1-slim-trixie
	'ruby-nonroot' [1/1]...passed
testing ruby:3.5.0-preview1-bookworm
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing ruby:3.5.0-preview1-slim-bookworm
	'ruby-nonroot' [1/1]...passed
testing ruby:3.5.0-preview1-alpine3.22
	'ruby-nonroot' [1/1]...passed
testing ruby:3.5.0-preview1-alpine3.21
	'ruby-nonroot' [1/1]...passed
testing ruby:3.4.7-trixie
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing ruby:3.4.7-slim-trixie
	'ruby-nonroot' [1/1]...passed
testing ruby:3.4.7-bookworm
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing ruby:3.4.7-slim-bookworm
	'ruby-nonroot' [1/1]...passed
testing ruby:3.4.7-alpine3.22
	'ruby-nonroot' [1/1]...passed
testing ruby:3.4.7-alpine3.21
	'ruby-nonroot' [1/1]...passed
testing ruby:3.3.10-trixie
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing ruby:3.3.10-slim-trixie
	'ruby-nonroot' [1/1]...passed
testing ruby:3.3.10-bookworm
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing ruby:3.3.10-slim-bookworm
	'ruby-nonroot' [1/1]...passed
testing ruby:3.3.10-alpine3.22
	'ruby-nonroot' [1/1]...passed
testing ruby:3.3.10-alpine3.21
	'ruby-nonroot' [1/1]...passed
testing ruby:3.2.9-trixie
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing ruby:3.2.9-slim-trixie
	'ruby-nonroot' [1/1]...passed
testing ruby:3.2.9-bookworm
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing ruby:3.2.9-slim-bookworm
	'ruby-nonroot' [1/1]...passed
testing ruby:3.2.9-alpine3.22
	'ruby-nonroot' [1/1]...passed
testing ruby:3.2.9-alpine3.21
	'ruby-nonroot' [1/1]...passed
Jruby test:
+ ./oi/test/run.sh -t ruby-bundler -t ruby-nonroot jruby:latest jruby:10-jdk jruby:10.0-jre25 jruby:10.0-jdk25 jruby:9 jruby:9-jdk jruby:9.4-jre11 jruby:9.4-jdk11 jruby:9.4-jdk17 jruby:9.4-jre17 jruby:9.4-jdk21 jruby:9.4-jre21 jruby:9.4-jdk25 jruby:9.4-jre25 jruby:9.3 jruby:9.3-jdk jruby:9.3-jre11 jruby:9.3-jdk11 jruby:9.3-jdk17 jruby:9.3-jre17 jruby:9.3-jdk21 jruby:9.3-jre21 jruby:10.0-dev-jre21 jruby:10.0-dev-jdk21 jruby:10.0-dev-jre25 jruby:10.0-dev-jdk25 jruby:9.4-dev-jre8 jruby:9.4-dev-jdk8 jruby:9.4-dev-jre11 jruby:9.4-dev-jdk11 jruby:9.4-dev-jdk17 jruby:9.4-dev-jre17 jruby:9.4-dev-jdk21 jruby:9.4-dev-jre21 jruby:9.4-dev-jdk25 jruby:9.4-dev-jre25
testing jruby:latest
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:10-jdk
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:10.0-jre25
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:10.0-jdk25
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:9
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing jruby:9-jdk
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing jruby:9.4-jre11
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing jruby:9.4-jdk11
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing jruby:9.4-jdk17
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:9.4-jre17
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:9.4-jdk21
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:9.4-jre21
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:9.4-jdk25
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:9.4-jre25
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:9.3
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing jruby:9.3-jdk
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing jruby:9.3-jre11
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing jruby:9.3-jdk11
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing jruby:9.3-jdk17
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing jruby:9.3-jre17
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing jruby:9.3-jdk21
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing jruby:9.3-jre21
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing jruby:10.0-dev-jre21
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:10.0-dev-jdk21
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:10.0-dev-jre25
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:10.0-dev-jdk25
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:9.4-dev-jre8
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing jruby:9.4-dev-jdk8
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing jruby:9.4-dev-jre11
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing jruby:9.4-dev-jdk11
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...passed
testing jruby:9.4-dev-jdk17
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:9.4-dev-jre17
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:9.4-dev-jdk21
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:9.4-dev-jre21
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:9.4-dev-jdk25
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed
testing jruby:9.4-dev-jre25
	'ruby-bundler' [1/2]...passed
	'ruby-nonroot' [2/2]...Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
passed

Copy link
Member

@tianon tianon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upside down melting smiley face

@tianon tianon merged commit 5cb0b5c into docker-library:master Nov 18, 2025
6 checks passed
@tianon tianon deleted the bundler-test branch November 18, 2025 00:43
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