Skip to content

Commit 0d43251

Browse files
authored
Merge pull request #812 from travisim/c2445e8
Bump Ruby from 3.0.0 to Ruby 3.3.1 and added specific platforms for images in docker compose file
2 parents cc05ce6 + 509c99c commit 0d43251

File tree

9 files changed

+20427
-2919
lines changed

9 files changed

+20427
-2919
lines changed

.github/workflows/backend_test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@v2
2828
- uses: ruby/setup-ruby@v1
2929
with:
30-
ruby-version: 3.0.0
30+
ruby-version: 3.3.1
3131
bundler-cache: true
3232
working-directory: ./backend
3333
- name: Migration

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**Here is an example application with the following modern web technology stacks. With this boilerplate, you can easily start to build your own app.**
66

7-
- [Ruby](https://www.ruby-lang.org/en/) 3.0.0
7+
- [Ruby](https://www.ruby-lang.org/en/) 3.3.1
88
- [Rails](https://rubyonrails.org/) 6.1.4
99
- [React.js](https://reactjs.org/) 17.0.1
1010
- [TypeScript](https://www.typescriptlang.org/) 4.3.5

backend/.ruby-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.0
1+
3.3.1

backend/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:3.0.0
1+
FROM --platform=linux/amd64 ruby:3.3.1
22
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
33
RUN mkdir -p /myapp/backend
44
WORKDIR /myapp/backend

backend/Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source 'https://rubygems.org'
22
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33

4-
ruby '3.0.0'
4+
ruby '3.3.1'
55

66
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
77
gem 'rails', '~> 6.1.6'

backend/Gemfile.lock

+131-109
Original file line numberDiff line numberDiff line change
@@ -1,193 +1,215 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actioncable (6.1.6)
5-
actionpack (= 6.1.6)
6-
activesupport (= 6.1.6)
4+
actioncable (6.1.7.7)
5+
actionpack (= 6.1.7.7)
6+
activesupport (= 6.1.7.7)
77
nio4r (~> 2.0)
88
websocket-driver (>= 0.6.1)
9-
actionmailbox (6.1.6)
10-
actionpack (= 6.1.6)
11-
activejob (= 6.1.6)
12-
activerecord (= 6.1.6)
13-
activestorage (= 6.1.6)
14-
activesupport (= 6.1.6)
9+
actionmailbox (6.1.7.7)
10+
actionpack (= 6.1.7.7)
11+
activejob (= 6.1.7.7)
12+
activerecord (= 6.1.7.7)
13+
activestorage (= 6.1.7.7)
14+
activesupport (= 6.1.7.7)
1515
mail (>= 2.7.1)
16-
actionmailer (6.1.6)
17-
actionpack (= 6.1.6)
18-
actionview (= 6.1.6)
19-
activejob (= 6.1.6)
20-
activesupport (= 6.1.6)
16+
actionmailer (6.1.7.7)
17+
actionpack (= 6.1.7.7)
18+
actionview (= 6.1.7.7)
19+
activejob (= 6.1.7.7)
20+
activesupport (= 6.1.7.7)
2121
mail (~> 2.5, >= 2.5.4)
2222
rails-dom-testing (~> 2.0)
23-
actionpack (6.1.6)
24-
actionview (= 6.1.6)
25-
activesupport (= 6.1.6)
23+
actionpack (6.1.7.7)
24+
actionview (= 6.1.7.7)
25+
activesupport (= 6.1.7.7)
2626
rack (~> 2.0, >= 2.0.9)
2727
rack-test (>= 0.6.3)
2828
rails-dom-testing (~> 2.0)
2929
rails-html-sanitizer (~> 1.0, >= 1.2.0)
30-
actiontext (6.1.6)
31-
actionpack (= 6.1.6)
32-
activerecord (= 6.1.6)
33-
activestorage (= 6.1.6)
34-
activesupport (= 6.1.6)
30+
actiontext (6.1.7.7)
31+
actionpack (= 6.1.7.7)
32+
activerecord (= 6.1.7.7)
33+
activestorage (= 6.1.7.7)
34+
activesupport (= 6.1.7.7)
3535
nokogiri (>= 1.8.5)
36-
actionview (6.1.6)
37-
activesupport (= 6.1.6)
36+
actionview (6.1.7.7)
37+
activesupport (= 6.1.7.7)
3838
builder (~> 3.1)
3939
erubi (~> 1.4)
4040
rails-dom-testing (~> 2.0)
4141
rails-html-sanitizer (~> 1.1, >= 1.2.0)
42-
activejob (6.1.6)
43-
activesupport (= 6.1.6)
42+
activejob (6.1.7.7)
43+
activesupport (= 6.1.7.7)
4444
globalid (>= 0.3.6)
45-
activemodel (6.1.6)
46-
activesupport (= 6.1.6)
47-
activerecord (6.1.6)
48-
activemodel (= 6.1.6)
49-
activesupport (= 6.1.6)
50-
activestorage (6.1.6)
51-
actionpack (= 6.1.6)
52-
activejob (= 6.1.6)
53-
activerecord (= 6.1.6)
54-
activesupport (= 6.1.6)
45+
activemodel (6.1.7.7)
46+
activesupport (= 6.1.7.7)
47+
activerecord (6.1.7.7)
48+
activemodel (= 6.1.7.7)
49+
activesupport (= 6.1.7.7)
50+
activestorage (6.1.7.7)
51+
actionpack (= 6.1.7.7)
52+
activejob (= 6.1.7.7)
53+
activerecord (= 6.1.7.7)
54+
activesupport (= 6.1.7.7)
5555
marcel (~> 1.0)
5656
mini_mime (>= 1.1.0)
57-
activesupport (6.1.6)
57+
activesupport (6.1.7.7)
5858
concurrent-ruby (~> 1.0, >= 1.0.2)
5959
i18n (>= 1.6, < 2)
6060
minitest (>= 5.1)
6161
tzinfo (~> 2.0)
6262
zeitwerk (~> 2.3)
63-
addressable (2.8.0)
64-
public_suffix (>= 2.0.2, < 5.0)
63+
addressable (2.8.6)
64+
public_suffix (>= 2.0.2, < 6.0)
65+
base64 (0.2.0)
6566
bindex (0.8.1)
66-
bootsnap (1.11.1)
67+
bootsnap (1.18.3)
6768
msgpack (~> 1.2)
6869
builder (3.2.4)
6970
byebug (11.1.3)
70-
capybara (3.37.1)
71+
capybara (3.40.0)
7172
addressable
7273
matrix
7374
mini_mime (>= 0.1.3)
74-
nokogiri (~> 1.8)
75+
nokogiri (~> 1.11)
7576
rack (>= 1.6.0)
7677
rack-test (>= 0.6.3)
7778
regexp_parser (>= 1.5, < 3.0)
7879
xpath (~> 3.2)
79-
childprocess (4.1.0)
80-
concurrent-ruby (1.1.10)
80+
concurrent-ruby (1.2.3)
8181
crass (1.0.6)
82-
erubi (1.10.0)
83-
ffi (1.15.5)
84-
globalid (1.0.0)
85-
activesupport (>= 5.0)
86-
i18n (1.10.0)
82+
date (3.3.4)
83+
erubi (1.12.0)
84+
ffi (1.16.3)
85+
globalid (1.2.1)
86+
activesupport (>= 6.1)
87+
i18n (1.14.5)
8788
concurrent-ruby (~> 1.0)
88-
jbuilder (2.11.5)
89+
jbuilder (2.12.0)
8990
actionview (>= 5.0.0)
9091
activesupport (>= 5.0.0)
91-
listen (3.7.1)
92+
listen (3.9.0)
9293
rb-fsevent (~> 0.10, >= 0.10.3)
9394
rb-inotify (~> 0.9, >= 0.9.10)
94-
loofah (2.17.0)
95+
loofah (2.22.0)
9596
crass (~> 1.0.2)
96-
nokogiri (>= 1.5.9)
97-
mail (2.7.1)
97+
nokogiri (>= 1.12.0)
98+
mail (2.8.1)
9899
mini_mime (>= 0.1.1)
99-
marcel (1.0.2)
100+
net-imap
101+
net-pop
102+
net-smtp
103+
marcel (1.0.4)
100104
matrix (0.4.2)
101-
method_source (1.0.0)
102-
mini_mime (1.1.2)
103-
mini_portile2 (2.8.0)
104-
minitest (5.15.0)
105-
msgpack (1.4.5)
106-
nio4r (2.5.8)
107-
nokogiri (1.13.6)
108-
mini_portile2 (~> 2.8.0)
105+
method_source (1.1.0)
106+
mini_mime (1.1.5)
107+
mini_portile2 (2.8.6)
108+
minitest (5.23.1)
109+
msgpack (1.7.2)
110+
net-imap (0.4.11)
111+
date
112+
net-protocol
113+
net-pop (0.1.2)
114+
net-protocol
115+
net-protocol (0.2.2)
116+
timeout
117+
net-smtp (0.5.0)
118+
net-protocol
119+
nio4r (2.7.3)
120+
nokogiri (1.16.5)
121+
mini_portile2 (~> 2.8.2)
109122
racc (~> 1.4)
110-
pg (1.3.5)
111-
public_suffix (4.0.7)
112-
puma (5.6.4)
123+
pg (1.5.6)
124+
public_suffix (5.0.5)
125+
puma (5.6.8)
113126
nio4r (~> 2.0)
114-
racc (1.6.0)
115-
rack (2.2.3)
116-
rack-cors (1.1.1)
127+
racc (1.8.0)
128+
rack (2.2.9)
129+
rack-cors (2.0.2)
117130
rack (>= 2.0.0)
118-
rack-mini-profiler (3.0.0)
131+
rack-mini-profiler (3.3.1)
119132
rack (>= 1.2.0)
120-
rack-test (1.1.0)
121-
rack (>= 1.0, < 3)
122-
rails (6.1.6)
123-
actioncable (= 6.1.6)
124-
actionmailbox (= 6.1.6)
125-
actionmailer (= 6.1.6)
126-
actionpack (= 6.1.6)
127-
actiontext (= 6.1.6)
128-
actionview (= 6.1.6)
129-
activejob (= 6.1.6)
130-
activemodel (= 6.1.6)
131-
activerecord (= 6.1.6)
132-
activestorage (= 6.1.6)
133-
activesupport (= 6.1.6)
133+
rack-test (2.1.0)
134+
rack (>= 1.3)
135+
rails (6.1.7.7)
136+
actioncable (= 6.1.7.7)
137+
actionmailbox (= 6.1.7.7)
138+
actionmailer (= 6.1.7.7)
139+
actionpack (= 6.1.7.7)
140+
actiontext (= 6.1.7.7)
141+
actionview (= 6.1.7.7)
142+
activejob (= 6.1.7.7)
143+
activemodel (= 6.1.7.7)
144+
activerecord (= 6.1.7.7)
145+
activestorage (= 6.1.7.7)
146+
activesupport (= 6.1.7.7)
134147
bundler (>= 1.15.0)
135-
railties (= 6.1.6)
148+
railties (= 6.1.7.7)
136149
sprockets-rails (>= 2.0.0)
137-
rails-dom-testing (2.0.3)
138-
activesupport (>= 4.2.0)
150+
rails-dom-testing (2.2.0)
151+
activesupport (>= 5.0.0)
152+
minitest
139153
nokogiri (>= 1.6)
140-
rails-html-sanitizer (1.4.2)
141-
loofah (~> 2.3)
142-
railties (6.1.6)
143-
actionpack (= 6.1.6)
144-
activesupport (= 6.1.6)
154+
rails-html-sanitizer (1.6.0)
155+
loofah (~> 2.21)
156+
nokogiri (~> 1.14)
157+
railties (6.1.7.7)
158+
actionpack (= 6.1.7.7)
159+
activesupport (= 6.1.7.7)
145160
method_source
146161
rake (>= 12.2)
147162
thor (~> 1.0)
148-
rake (13.0.6)
149-
rb-fsevent (0.11.1)
150-
rb-inotify (0.10.1)
163+
rake (13.2.1)
164+
rb-fsevent (0.11.2)
165+
rb-inotify (0.11.1)
151166
ffi (~> 1.0)
152-
regexp-examples (1.5.1)
153-
regexp_parser (2.4.0)
154-
rexml (3.2.5)
167+
regexp-examples (1.6.0)
168+
regexp_property_values (~> 1.5)
169+
regexp_parser (2.9.2)
170+
regexp_property_values (1.5.2)
171+
rexml (3.2.8)
172+
strscan (>= 3.0.9)
155173
route_mechanic (0.2.1)
156174
actionpack (>= 4.2, < 6.2)
157175
regexp-examples (>= 1.5, < 2)
158176
rubyzip (2.3.2)
159-
selenium-webdriver (4.1.0)
160-
childprocess (>= 0.5, < 5.0)
177+
selenium-webdriver (4.21.1)
178+
base64 (~> 0.2)
161179
rexml (~> 3.2, >= 3.2.5)
162-
rubyzip (>= 1.2.2)
180+
rubyzip (>= 1.2.2, < 3.0)
181+
websocket (~> 1.0)
163182
spring (2.1.1)
164183
spring-watcher-listen (2.0.1)
165184
listen (>= 2.7, < 4.0)
166185
spring (>= 1.2, < 3.0)
167-
sprockets (4.0.3)
186+
sprockets (4.2.1)
168187
concurrent-ruby (~> 1.0)
169-
rack (> 1, < 3)
188+
rack (>= 2.2.4, < 4)
170189
sprockets-rails (3.4.2)
171190
actionpack (>= 5.2)
172191
activesupport (>= 5.2)
173192
sprockets (>= 3.0.0)
174-
thor (1.2.1)
193+
strscan (3.1.0)
194+
thor (1.3.1)
195+
timeout (0.4.1)
175196
turbolinks (5.2.1)
176197
turbolinks-source (~> 5.2)
177198
turbolinks-source (5.2.0)
178-
tzinfo (2.0.4)
199+
tzinfo (2.0.6)
179200
concurrent-ruby (~> 1.0)
180-
web-console (4.2.0)
201+
web-console (4.2.1)
181202
actionview (>= 6.0.0)
182203
activemodel (>= 6.0.0)
183204
bindex (>= 0.4.0)
184205
railties (>= 6.0.0)
185-
websocket-driver (0.7.5)
206+
websocket (1.2.10)
207+
websocket-driver (0.7.6)
186208
websocket-extensions (>= 0.1.0)
187209
websocket-extensions (0.1.5)
188210
xpath (3.2.0)
189211
nokogiri (~> 1.8)
190-
zeitwerk (2.5.4)
212+
zeitwerk (2.6.14)
191213

192214
PLATFORMS
193215
ruby
@@ -212,7 +234,7 @@ DEPENDENCIES
212234
web-console (>= 4.1.0)
213235

214236
RUBY VERSION
215-
ruby 3.0.0p0
237+
ruby 3.3.1
216238

217239
BUNDLED WITH
218240
2.2.3

docker-compose.yml

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ services:
99
POSTGRES_HOST_AUTH_METHOD: trust
1010
backend:
1111
container_name: backend
12+
platform: linux/amd64
1213
build: ./backend
1314
command: bundle exec rails s -p 3000 -b '0.0.0.0'
1415
volumes:
@@ -17,6 +18,7 @@ services:
1718
- db
1819
frontend:
1920
container_name: frontend
21+
platform: linux/amd64
2022
image: "node:14-alpine"
2123
user: "node"
2224
working_dir: /myapp/frontend
@@ -27,8 +29,10 @@ services:
2729
- backend
2830
yaichi:
2931
container_name: yaichi
32+
platform: linux/amd64
3033
image: mtsmfm/yaichi:1.5.0
3134
ports:
3235
- 80:3000
3336
volumes:
3437
- /var/run/docker.sock:/var/run/docker.sock
38+

0 commit comments

Comments
 (0)