Skip to content

Commit 89b4960

Browse files
committed
Force rubocop to Ruby 3.3
1 parent 84ff36d commit 89b4960

3 files changed

Lines changed: 91 additions & 36 deletions

File tree

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
# Try to place any new Cops under their relevant section and in alphabetical order
2525

2626
AllCops:
27+
TargetRubyVersion: 3.3
2728
# Show the name of the cops being voilated in the feedback
2829
DisplayCopNames: true
2930
DisplayStyleGuide: true

Dockerfile

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
FROM ruby:3.3
2+
3+
ARG INSTALL_PATH=/usr/src/app
4+
ENV INSTALL_PATH=$INSTALL_PATH
5+
6+
# Define bundle paths for both build-time and runtime
7+
ENV GEM_HOME=/bundle
8+
ENV BUNDLE_PATH=/bundle
9+
ENV BUNDLE_BIN=/bundle/bin
10+
ENV PATH="${BUNDLE_BIN}:${PATH}"
11+
12+
# Install base dependencies
13+
RUN apt-get update -qq && \
14+
apt-get install -y \
15+
build-essential \
16+
git \
17+
libgmp3-dev \
18+
libpq-dev \
19+
postgresql-client \
20+
gettext \
21+
certbot \
22+
curl \
23+
vim \
24+
ack \
25+
ca-certificates
26+
27+
# Install Node.js v22 LTS and Yarn
28+
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
29+
apt-get update -qq && \
30+
apt-get install -y nodejs && \
31+
corepack enable yarn && \
32+
corepack prepare yarn@stable --activate && \
33+
rm -rf /var/lib/apt/lists/*
34+
35+
WORKDIR $INSTALL_PATH
36+
37+
# Copy Gemfile and Gemfile.lock, install Ruby gems
38+
COPY ./Gemfile ./Gemfile.lock ./
39+
40+
RUN gem install bundler && \
41+
bundle config set without 'mysql thin' && \
42+
bundle install --jobs=4 --retry=3 --clean
43+
44+
# Copy the rest of the application and install JS dependencies
45+
COPY . .
46+
RUN yarn install
47+
48+
RUN rails assets:clobber
49+
RUN rails assets:precompile
50+
51+
52+
EXPOSE 3000
53+
54+
CMD ["bundle", "exec", "puma", "-C", "config/puma.rb"]

Gemfile.lock

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,60 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actioncable (6.1.7)
5-
actionpack (= 6.1.7)
6-
activesupport (= 6.1.7)
4+
actioncable (6.1.7.10)
5+
actionpack (= 6.1.7.10)
6+
activesupport (= 6.1.7.10)
77
nio4r (~> 2.0)
88
websocket-driver (>= 0.6.1)
9-
actionmailbox (6.1.7)
10-
actionpack (= 6.1.7)
11-
activejob (= 6.1.7)
12-
activerecord (= 6.1.7)
13-
activestorage (= 6.1.7)
14-
activesupport (= 6.1.7)
9+
actionmailbox (6.1.7.10)
10+
actionpack (= 6.1.7.10)
11+
activejob (= 6.1.7.10)
12+
activerecord (= 6.1.7.10)
13+
activestorage (= 6.1.7.10)
14+
activesupport (= 6.1.7.10)
1515
mail (>= 2.7.1)
16-
actionmailer (6.1.7)
17-
actionpack (= 6.1.7)
18-
actionview (= 6.1.7)
19-
activejob (= 6.1.7)
20-
activesupport (= 6.1.7)
16+
actionmailer (6.1.7.10)
17+
actionpack (= 6.1.7.10)
18+
actionview (= 6.1.7.10)
19+
activejob (= 6.1.7.10)
20+
activesupport (= 6.1.7.10)
2121
mail (~> 2.5, >= 2.5.4)
2222
rails-dom-testing (~> 2.0)
23-
actionpack (6.1.7)
24-
actionview (= 6.1.7)
25-
activesupport (= 6.1.7)
23+
actionpack (6.1.7.10)
24+
actionview (= 6.1.7.10)
25+
activesupport (= 6.1.7.10)
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.7)
31-
actionpack (= 6.1.7)
32-
activerecord (= 6.1.7)
33-
activestorage (= 6.1.7)
34-
activesupport (= 6.1.7)
30+
actiontext (6.1.7.10)
31+
actionpack (= 6.1.7.10)
32+
activerecord (= 6.1.7.10)
33+
activestorage (= 6.1.7.10)
34+
activesupport (= 6.1.7.10)
3535
nokogiri (>= 1.8.5)
36-
actionview (6.1.7)
37-
activesupport (= 6.1.7)
36+
actionview (6.1.7.10)
37+
activesupport (= 6.1.7.10)
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.7)
43-
activesupport (= 6.1.7)
42+
activejob (6.1.7.10)
43+
activesupport (= 6.1.7.10)
4444
globalid (>= 0.3.6)
45-
activemodel (6.1.7)
46-
activesupport (= 6.1.7)
47-
activerecord (6.1.7)
48-
activemodel (= 6.1.7)
49-
activesupport (= 6.1.7)
45+
activemodel (6.1.7.10)
46+
activesupport (= 6.1.7.10)
47+
activerecord (6.1.7.10)
48+
activemodel (= 6.1.7.10)
49+
activesupport (= 6.1.7.10)
5050
activerecord_json_validator (3.1.0)
5151
activerecord (>= 4.2.0, < 9)
5252
json_schemer (~> 2.2)
53-
activestorage (6.1.7)
54-
actionpack (= 6.1.7)
55-
activejob (= 6.1.7)
56-
activerecord (= 6.1.7)
57-
activesupport (= 6.1.7)
53+
activestorage (6.1.7.10)
54+
actionpack (= 6.1.7.10)
55+
activejob (= 6.1.7.10)
56+
activerecord (= 6.1.7.10)
57+
activesupport (= 6.1.7.10)
5858
marcel (~> 1.0)
5959
mini_mime (>= 1.1.0)
6060
activesupport (6.1.7.10)

0 commit comments

Comments
 (0)