diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index ad151ed2..e20d0a99 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -10,13 +10,21 @@ RUN useradd --create-home --shell /bin/bash $USER && \ WORKDIR /home/$USER/site RUN apt-get update -RUN apt-get install -y ruby-full && gem install bundler -RUN python -m pip install --upgrade pip + +# Install rvm (https://rvm.io/rvm/install#install-gpg-keys) +RUN gpg --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB +RUN curl -sSL https://get.rvm.io | bash -s stable +RUN echo 'source /usr/local/rvm/scripts/rvm' >> /etc/bash.bashrc + +# Install Ruby, Bundler, and dependencies +COPY .ruby-version .ruby-version COPY Gemfile Gemfile COPY Gemfile.lock Gemfile.lock -RUN bundle install +RUN /bin/bash -l -c 'rvm install $(cat .ruby-version | tr -d "\n") && gem install bundler && bundle install' +# Install Python dependencies COPY .devcontainer/requirements.txt .devcontainer/requirements.txt +RUN python -m pip install --upgrade pip RUN pip install --no-cache-dir -r .devcontainer/requirements.txt USER $USER diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 00000000..4f5e6973 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.4.5 diff --git a/Gemfile b/Gemfile index 8a6ef233..8a5c2723 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,6 @@ source "https://rubygems.org" +gem "bigdecimal", "~> 3.2.2" gem "jekyll", "~> 4.4.1" gem "jekyll-feed" gem "jekyll-sass-converter", "2.2.0" diff --git a/Gemfile.lock b/Gemfile.lock index b5cbda39..31f82619 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -4,6 +4,7 @@ GEM addressable (2.8.7) public_suffix (>= 2.0.2, < 7.0) base64 (0.2.0) + bigdecimal (3.2.2) colorator (1.1.0) concurrent-ruby (1.3.5) csv (3.3.2) @@ -11,9 +12,7 @@ GEM eventmachine (>= 0.12.9) http_parser.rb (~> 0) eventmachine (1.2.7) - ffi (1.17.1-aarch64-linux-gnu) - ffi (1.17.1-x86_64-linux-gnu) - ffi (1.17.1-x86_64-linux-musl) + ffi (1.17.1) forwardable-extended (2.6.0) http_parser.rb (0.8.0) i18n (1.14.7) @@ -75,6 +74,7 @@ PLATFORMS x86_64-linux-musl DEPENDENCIES + bigdecimal (~> 3.2.2) jekyll (~> 4.4.1) jekyll-feed jekyll-sass-converter (= 2.2.0)