Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatoli Babenia <anatoli@rainforce.org>2022-10-04 18:23:31 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2022-10-04 18:23:31 +0300
commitb48dd4d9bf3e8688cfe4f22d98985a6e0c8b8eb1 (patch)
tree6e84876970ab0c9e1e68ec9a29f96df21b741a8e /.gitpod.Dockerfile
parent8793d49f6ecfefa9b66e63602cb19325d42dec95 (diff)
Use newer Gitpod base image. Fixes #1232
Diffstat (limited to '.gitpod.Dockerfile')
-rw-r--r--.gitpod.Dockerfile11
1 files changed, 7 insertions, 4 deletions
diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile
index 4a39ec38..9caedc1b 100644
--- a/.gitpod.Dockerfile
+++ b/.gitpod.Dockerfile
@@ -1,10 +1,13 @@
-FROM gitpod/workspace-full:2022-05-08-14-31-53
+FROM gitpod/workspace-full:2022-10-02-19-08-52
USER gitpod
# Install Ruby version 2.7.6 and set it as default.
# Required when the base Gitpod Docker image doesn't provide the version of Ruby we want.
# For more information, see: https://www.gitpod.io/docs/languages/ruby.
-RUN echo "rvm_gems_path=/home/gitpod/.rvm" > ~/.rvmrc \
- && bash -lc "rvm install ruby-2.7.6 && rvm use ruby-2.7.6 --default" \
- && echo "rvm_gems_path=/workspace/.rvm" > ~/.rvmrc
+RUN _ruby_version=ruby-2.7.6 \
+ && printf "rvm_gems_path=/home/gitpod/.rvm\n" > ~/.rvmrc \
+ && bash -lc "rvm reinstall ${_ruby_version} && \
+ rvm use ${_ruby_version} --default" \
+ && printf "rvm_gems_path=/workspace/.rvm" > ~/.rvmrc \
+ && printf "{ rvm use \$(rvm current); } >/dev/null 2>&1\n" >> "$HOME/.bashrc.d/70-ruby"