File tree Expand file tree Collapse file tree 6 files changed +42
-35
lines changed Expand file tree Collapse file tree 6 files changed +42
-35
lines changed Original file line number Diff line number Diff line change 1818 - sqlite3
1919 - activestorage
2020 - postgres-client
21+ - ruby
2122 baseImage :
2223 - debian:latest
2324 - ubuntu:latest
4041 features :
4142 - activestorage
4243 - postgres-client
44+ - ruby
4345 steps :
4446 - uses : actions/checkout@v4
4547
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 44USERNAME=" ${USERNAME:- " ${_REMOTE_USER:- " automatic" } " } "
55
66apt-get update -y
7- apt-get -y install --no-install-recommends libssl-dev libreadline-dev zlib1g-dev autoconf bison build-essential \
7+ apt-get -y install --no-install-recommends git curl ca-certificates libssl-dev libreadline-dev zlib1g-dev autoconf bison build-essential \
88 libyaml-dev libncurses5-dev libffi-dev libgdbm-dev libxml2-dev rustc
99
1010git clone https://github.com/rbenv/rbenv.git /usr/local/share/rbenv
@@ -27,7 +27,7 @@ if [ "${USERNAME}" != "root" ]; then
2727 fi
2828fi
2929
30- su ${USERNAME} -c " rbenv install $VERSION "
31- su ${USERNAME} -c " rbenv global $VERSION "
30+ su ${USERNAME} -c " /usr/local/share/rbenv/bin/ rbenv install $VERSION "
31+ su ${USERNAME} -c " /usr/local/share/rbenv/bin/ rbenv global $VERSION "
3232
3333rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change 1+ {
2+ "version_3_3_0" : {
3+ "image" : " mcr.microsoft.com/devcontainers/base:1-bookworm" ,
4+ "features" : {
5+ "ruby" : {
6+ "version" : " 3.3.0"
7+ }
8+ }
9+ }
10+ }
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+
4+ source dev-container-features-test-lib
5+
6+ check " PATH contains rbenv" bash -c " echo $PATH | grep rbenv"
7+ check " rbenv is installed" bash -c " rbenv --version"
8+ check " ruby-build is installed" bash -c " ls -l /root/.rbenv/plugins/ruby-build | grep '\-> /usr/local/share/ruby-build'"
9+ eval " $( rbenv init -) "
10+ check " Ruby is installed with YJIT" bash -c " RUBY_YJIT_ENABLE=1 ruby -v | grep +YJIT"
11+ check " Ruby version is set to 3.4.4" bash -c " rbenv global | grep 3.4.4"
12+
13+ reportResults
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+
4+ source dev-container-features-test-lib
5+
6+ check " PATH contains rbenv" bash -c " echo $PATH | grep rbenv"
7+ check " rbenv is installed" bash -c " rbenv --version"
8+ check " ruby-build is installed" bash -c " ls -l $HOME /.rbenv/plugins/ruby-build | grep '\-> /usr/local/share/ruby-build'"
9+ check " rbenv init is sourced in the bashrc" bash -c " grep 'eval \"\$ (rbenv init -)\" ' $HOME /.bashrc"
10+ check " rbenv init is sourced in the zshrc" bash -c " grep 'eval \"\$ (rbenv init -)\" ' $HOME /.zshrc"
11+ check " Ruby is installed with YJIT" bash -c " RUBY_YJIT_ENABLE=1 ruby -v | grep +YJIT"
12+ check " Ruby version is set to 3.3.0" bash -c " rbenv global | grep 3.3.0"
13+
14+ reportResults
You can’t perform that action at this time.
0 commit comments