Add Docker support for multi-version Rails testing #1481
Closed
+98
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds Docker support for testing across multiple Rails versions, making it easy to test the gem with different Rails versions in isolated environments.
Features
Usage
Docker Services
rails-6.1- Rails 6.1.7.10rails-7.0- Rails 7.0.10rails-7.1- Rails 7.1.6rails-7.2- Rails 7.2.3rails-8.0- Rails 8.0.4rails-8.1- Rails 8.1.2shell- Interactive shell (default: Rails 6.1)Files Added
Dockerfile- Container image with Ruby 3.2 and dependenciesdocker-compose.yml- Service definitions for each Rails version.dockerignore- Optimized build contextDependencies
This PR depends on #1480 (Rails 7.1+ support) and should be merged after it.
🤖 Generated with Claude Code