Browse Source

Update alpine and ruby versions (#2951)

* Update ruby and alpine

* install libpq-dev

* Run bundle install
pull/2940/head^2
kosiakkatrina 1 week ago committed by GitHub
parent
commit
a57d79fd1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      .ruby-version
  2. 4
      Dockerfile
  3. 2
      Gemfile
  4. 2
      Gemfile.lock
  5. 4
      docs/setup.md

2
.ruby-version

@ -1 +1 @@
3.1.4
3.1.6

4
Dockerfile

@ -1,4 +1,4 @@
FROM ruby:3.1.4-alpine3.18 as base
FROM ruby:3.1.6-alpine3.20 as base
WORKDIR /app
@ -10,7 +10,7 @@ RUN apk add --update --no-cache tzdata && \
# build-base: compilation tools for bundle
# yarn: node package manager
# postgresql-dev: postgres driver and libraries
RUN apk add --no-cache build-base=0.5-r3 busybox=1.36.1-r7 nodejs-current=20.8.1-r0 yarn=1.22.19-r0 postgresql13-dev=13.18-r0 bash=5.2.15-r5
RUN apk add --no-cache build-base=0.5-r3 busybox=1.36.1-r29 nodejs=20.15.1-r0 yarn=1.22.22-r0 bash=5.2.26-r0 libpq-dev
# Bundler version should be the same version as what the Gemfile.lock was bundled with
RUN gem install bundler:2.6.4 --no-document

2
Gemfile

@ -3,7 +3,7 @@
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby "3.1.4"
ruby "3.1.6"
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
gem "rails", "~> 7.2.2"

2
Gemfile.lock

@ -606,7 +606,7 @@ DEPENDENCIES
webmock
RUBY VERSION
ruby 3.1.4p223
ruby 3.1.6p260
BUNDLED WITH
2.6.4

4
docs/setup.md

@ -66,8 +66,8 @@ We recommend using [nvm](https://github.com/nvm-sh/nvm) to manage NodeJS version
4. Install Ruby and Bundler
```bash
rbenv install 3.1.4
rbenv global 3.1.4
rbenv install 3.1.6
rbenv global 3.1.6
source ~/.bashrc
gem install bundler
```

Loading…
Cancel
Save