File tree Expand file tree Collapse file tree 5 files changed +14
-5
lines changed Expand file tree Collapse file tree 5 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Installs Ruby 3.2.2. When human-essentials moves to a newer version of ruby,
2
2
# it will be more efficient to change the image.
3
3
# 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
5
5
RUN export DEBIAN_FRONTEND=noninteractive
6
6
RUN apt-get update && apt-get -y install vim curl gpg postgresql postgresql-contrib
7
7
RUN cd /tmp
8
8
RUN 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 1
1
RUBY_VERSION=" $( cat .ruby-version | tr -d ' \n' ) "
2
2
3
3
# copy the file only if it doesn't already exist
4
+ echo " *** Creating initial .env and vscode settings, if needed"
4
5
cp -n .devcontainer/.env.codespaces .env
5
6
mkdir -p .vscode && cp -n .devcontainer/launch.json.codespaces .vscode/launch.json
6
7
7
8
# If the project's required ruby version changes from 3.2.2, this command
8
9
# will download and compile the correct version, but it will take a long time.
9
10
if [ " $RUBY_VERSION " != " 3.2.2" ]; then
11
+ echo " *** Installing Ruby $RUBY_VERSION (this may take a while)"
10
12
rvm install $RUBY_VERSION
11
13
rvm use $RUBY_VERSION
12
14
echo " Ruby $RUBY_VERSION installed"
13
15
fi
14
16
17
+ echo " *** Setting up node"
15
18
nvm install node
19
+
20
+ echo " *** Setting up ruby environment"
16
21
rbenv init bash
17
22
rbenv init zsh
18
23
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"
19
28
bin/setup
Original file line number Diff line number Diff line change @@ -826,4 +826,4 @@ DEPENDENCIES
826
826
webmock (~> 3.24 )
827
827
828
828
BUNDLED 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
40
40
#
41
41
# Validate that the ruby version requirement is met.
42
42
#
43
- expected_ruby_version = `cat .ruby-version` . chomp
43
+ expected_ruby_version = `cat .ruby-version` . chomp . gsub ( / \. \d + \z / , "" )
44
44
current_ruby_version = `ruby -v` . chomp
45
45
unless current_ruby_version . include? ( expected_ruby_version )
46
46
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 10
10
#
11
11
# It's strongly recommended that you check this file into your version control system.
12
12
13
- ActiveRecord ::Schema [ 7.2 ] . define ( version : 2025_02_21_143640 ) do
13
+ ActiveRecord ::Schema [ 7.2 ] . define ( version : 2025_03_02_154355 ) do
14
14
# These are extensions that must be enabled in order to support this database
15
15
enable_extension "plpgsql"
16
16
You can’t perform that action at this time.
0 commit comments