Commit 74294a5
Add Ruby 2.7 Dockerfile for Rails 5.1-6.0 compatibility
Add Dockerfile.ruby2.7 to support older Rails versions that are not
compatible with Ruby 3.2. Based on CI matrix compatibility:
Ruby 2.7 supports:
- Rails 5.1.7 ✅
- Rails 5.2.8.1 ✅
- Rails 6.0.6 ✅
- Rails 6.1.7.10 (also works with Ruby 3.2)
- Rails 7.0.10 (also works with Ruby 3.2)
Ruby 3.2 (existing Dockerfile):
- Rails 6.1.7.10 ✅
- Rails 7.0.10 ✅
- Rails 7.1.6 ✅
- Rails 7.2.3 ✅
- Rails 8.0.4 ✅
- Rails 8.1.2 ✅
Changes:
- Add Dockerfile.ruby2.7 with Ruby 2.7 base image
- Update docker-compose.yml to use Ruby 2.7 for Rails 5.1, 5.2, 6.0
- Add bundle-cache-ruby27 volume for separate gem caching
- Keep Ruby 3.2 for Rails 6.1-8.1
This ensures all Rails versions in the CI matrix can be tested locally
with the appropriate Ruby version.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 5ff7f95 commit 74294a5
2 files changed
Lines changed: 39 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
14 | 26 | | |
15 | 27 | | |
16 | | - | |
| 28 | + | |
17 | 29 | | |
18 | 30 | | |
19 | 31 | | |
20 | 32 | | |
21 | 33 | | |
22 | 34 | | |
23 | 35 | | |
24 | | - | |
| 36 | + | |
25 | 37 | | |
26 | 38 | | |
27 | 39 | | |
28 | 40 | | |
29 | 41 | | |
30 | 42 | | |
31 | 43 | | |
32 | | - | |
| 44 | + | |
33 | 45 | | |
34 | 46 | | |
35 | 47 | | |
| |||
93 | 105 | | |
94 | 106 | | |
95 | 107 | | |
| 108 | + | |
0 commit comments