forked from Shopify/schmooze
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
121 lines (112 loc) · 3.13 KB
/
docker-compose.yml
File metadata and controls
121 lines (112 loc) · 3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# Docker Compose for testing schmooze with multiple Ruby versions
#
# Usage:
# # Run tests for a specific Ruby version
# docker compose run --rm ruby-3.3
#
# # Run tests for all Ruby versions
# docker compose up
#
# # Build images
# docker compose build
#
# # Interactive shell
# docker compose run --rm ruby-3.3 bash
services:
# Ruby 2.6 (minimum supported version)
ruby-2.6:
build:
context: .
args:
RUBY_VERSION: "2.6"
volumes:
- .:/app
- bundle-cache-ruby26:/usr/local/bundle
working_dir: /app
command: bash -c "rm -f Gemfile.lock && bundle install && cd test/fixtures/coffee && npm install && cd /app && bundle exec rake test"
# Ruby 2.7
ruby-2.7:
build:
context: .
args:
RUBY_VERSION: "2.7"
volumes:
- .:/app
- bundle-cache-ruby27:/usr/local/bundle
working_dir: /app
command: bash -c "rm -f Gemfile.lock && bundle install && cd test/fixtures/coffee && npm install && cd /app && bundle exec rake test"
# Ruby 3.0
ruby-3.0:
build:
context: .
args:
RUBY_VERSION: "3.0"
volumes:
- .:/app
- bundle-cache-ruby30:/usr/local/bundle
working_dir: /app
command: bash -c "rm -f Gemfile.lock && bundle install && cd test/fixtures/coffee && npm install && cd /app && bundle exec rake test"
# Ruby 3.1
ruby-3.1:
build:
context: .
args:
RUBY_VERSION: "3.1"
volumes:
- .:/app
- bundle-cache-ruby31:/usr/local/bundle
working_dir: /app
command: bash -c "rm -f Gemfile.lock && bundle install && cd test/fixtures/coffee && npm install && cd /app && bundle exec rake test"
# Ruby 3.2
ruby-3.2:
build:
context: .
args:
RUBY_VERSION: "3.2"
volumes:
- .:/app
- bundle-cache-ruby32:/usr/local/bundle
working_dir: /app
command: bash -c "rm -f Gemfile.lock && bundle install && cd test/fixtures/coffee && npm install && cd /app && bundle exec rake test"
# Ruby 3.3
ruby-3.3:
build:
context: .
args:
RUBY_VERSION: "3.3"
volumes:
- .:/app
- bundle-cache-ruby33:/usr/local/bundle
working_dir: /app
command: bash -c "rm -f Gemfile.lock && bundle install && cd test/fixtures/coffee && npm install && cd /app && bundle exec rake test"
# Ruby 3.4
ruby-3.4:
build:
context: .
args:
RUBY_VERSION: "3.4"
volumes:
- .:/app
- bundle-cache-ruby34:/usr/local/bundle
working_dir: /app
command: bash -c "rm -f Gemfile.lock && bundle install && cd test/fixtures/coffee && npm install && cd /app && bundle exec rake test"
# Ruby 4.0 (future version)
ruby-4.0:
build:
context: .
args:
RUBY_VERSION: "4.0"
volumes:
- .:/app
- bundle-cache-ruby40:/usr/local/bundle
working_dir: /app
command: bash -c "rm -f Gemfile.lock && bundle install && cd test/fixtures/coffee && npm install && cd /app && bundle exec rake test"
volumes:
bundle-cache-ruby26:
bundle-cache-ruby27:
bundle-cache-ruby30:
bundle-cache-ruby31:
bundle-cache-ruby32:
bundle-cache-ruby33:
bundle-cache-ruby34:
bundle-cache-ruby40: