File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Installs Ruby 3.2.2. When human-essentials moves to a newer version of ruby,
22# it will be more efficient to change the image.
33# See https://github.com/devcontainers/images/blob/main/src/ruby/history/
4- FROM mcr.microsoft.com/devcontainers/ruby:dev-3.2-buster
4+ FROM mcr.microsoft.com/devcontainers/ruby:dev-3.2
55RUN export DEBIAN_FRONTEND=noninteractive
66RUN apt-get update && apt-get -y install vim curl gpg postgresql postgresql-contrib
77RUN cd /tmp
88RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
9- && apt-get -y install ./google-chrome-stable_current_amd64.deb
9+ && apt-get -y install ./google-chrome-stable_current_amd64.deb
Original file line number Diff line number Diff line change 11RUBY_VERSION=" $( cat .ruby-version | tr -d ' \n' ) "
22
33# copy the file only if it doesn't already exist
4+ echo " *** Creating initial .env and vscode settings, if needed"
45cp -n .devcontainer/.env.codespaces .env
56mkdir -p .vscode && cp -n .devcontainer/launch.json.codespaces .vscode/launch.json
67
78# If the project's required ruby version changes from 3.2.2, this command
89# will download and compile the correct version, but it will take a long time.
910if [ " $RUBY_VERSION " != " 3.2.2" ]; then
11+ echo " *** Installing Ruby $RUBY_VERSION (this may take a while)"
1012 rvm install $RUBY_VERSION
1113 rvm use $RUBY_VERSION
1214 echo " Ruby $RUBY_VERSION installed"
1315fi
1416
17+ echo " *** Setting up node"
1518nvm install node
19+
20+ echo " *** Setting up ruby environment"
1621rbenv init bash
1722rbenv init zsh
1823
24+ # echo "*** Forcing platform version of nokogiri"
25+ # gem install nokogiri -v 1.18.1 --platform=ruby -- --use-system-libraries
26+
27+ echo " *** Running project bin/setup"
1928bin/setup
Original file line number Diff line number Diff line change @@ -826,4 +826,4 @@ DEPENDENCIES
826826 webmock (~> 3.24 )
827827
828828BUNDLED WITH
829- 2.6.2
829+ 2.6.5
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ FileUtils.chdir APP_ROOT do
4040 #
4141 # Validate that the ruby version requirement is met.
4242 #
43- expected_ruby_version = `cat .ruby-version` . chomp
43+ expected_ruby_version = `cat .ruby-version` . chomp . gsub ( / \. \d + \z / , "" )
4444 current_ruby_version = `ruby -v` . chomp
4545 unless current_ruby_version . include? ( expected_ruby_version )
4646 log "Ruby version must be #{ expected_ruby_version } . You are on #{ current_ruby_version } " , color : :red
Original file line number Diff line number Diff line change 1010#
1111# It's strongly recommended that you check this file into your version control system.
1212
13- ActiveRecord ::Schema [ 7.2 ] . define ( version : 2025_02_21_143640 ) do
13+ ActiveRecord ::Schema [ 7.2 ] . define ( version : 2025_03_02_154355 ) do
1414 # These are extensions that must be enabled in order to support this database
1515 enable_extension "plpgsql"
1616
You can’t perform that action at this time.
0 commit comments