Skip to content

Commit c50ffed

Browse files
authored
Fix: Ruby version (#267)
2 parents 5d66f99 + cfcf4bd commit c50ffed

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

.devcontainer/Dockerfile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,21 @@ RUN useradd --create-home --shell /bin/bash $USER && \
1010
WORKDIR /home/$USER/site
1111

1212
RUN apt-get update
13-
RUN apt-get install -y ruby-full && gem install bundler
14-
RUN python -m pip install --upgrade pip
13+
14+
# Install rvm (https://rvm.io/rvm/install#install-gpg-keys)
15+
RUN gpg --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
16+
RUN curl -sSL https://get.rvm.io | bash -s stable
17+
RUN echo 'source /usr/local/rvm/scripts/rvm' >> /etc/bash.bashrc
18+
19+
# Install Ruby, Bundler, and dependencies
20+
COPY .ruby-version .ruby-version
1521
COPY Gemfile Gemfile
1622
COPY Gemfile.lock Gemfile.lock
17-
RUN bundle install
23+
RUN /bin/bash -l -c 'rvm install $(cat .ruby-version | tr -d "\n") && gem install bundler && bundle install'
1824

25+
# Install Python dependencies
1926
COPY .devcontainer/requirements.txt .devcontainer/requirements.txt
27+
RUN python -m pip install --upgrade pip
2028
RUN pip install --no-cache-dir -r .devcontainer/requirements.txt
2129

2230
USER $USER

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.4.5

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
source "https://rubygems.org"
22

3+
gem "bigdecimal", "~> 3.2.2"
34
gem "jekyll", "~> 4.4.1"
45
gem "jekyll-feed"
56
gem "jekyll-sass-converter", "2.2.0"

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@ GEM
44
addressable (2.8.7)
55
public_suffix (>= 2.0.2, < 7.0)
66
base64 (0.2.0)
7+
bigdecimal (3.2.2)
78
colorator (1.1.0)
89
concurrent-ruby (1.3.5)
910
csv (3.3.2)
1011
em-websocket (0.5.3)
1112
eventmachine (>= 0.12.9)
1213
http_parser.rb (~> 0)
1314
eventmachine (1.2.7)
14-
ffi (1.17.1-aarch64-linux-gnu)
15-
ffi (1.17.1-x86_64-linux-gnu)
16-
ffi (1.17.1-x86_64-linux-musl)
15+
ffi (1.17.1)
1716
forwardable-extended (2.6.0)
1817
http_parser.rb (0.8.0)
1918
i18n (1.14.7)
@@ -75,6 +74,7 @@ PLATFORMS
7574
x86_64-linux-musl
7675

7776
DEPENDENCIES
77+
bigdecimal (~> 3.2.2)
7878
jekyll (~> 4.4.1)
7979
jekyll-feed
8080
jekyll-sass-converter (= 2.2.0)

0 commit comments

Comments
 (0)