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:
authorEvan Read <eread@gitlab.com>2021-10-21 07:19:22 +0300
committerRussell Dickenson <rdickenson@gitlab.com>2021-10-21 07:19:22 +0300
commitf1bc7726b29107169214e64bb51c24883e77e06d (patch)
tree9a56a9cea05a7b60df182686a56072a1abb72ca5 /.gitpod.Dockerfile
parent04bcfb6147943d7bed6572709ac8ad616442f97c (diff)
Install Ruby 2.7.4 when using Gitpod
Diffstat (limited to '.gitpod.Dockerfile')
-rw-r--r--.gitpod.Dockerfile10
1 files changed, 10 insertions, 0 deletions
diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile
new file mode 100644
index 00000000..2861e663
--- /dev/null
+++ b/.gitpod.Dockerfile
@@ -0,0 +1,10 @@
+FROM gitpod/workspace-full
+USER gitpod
+
+# Install Ruby version 2.7.4 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
+RUN bash -lc "rvm install ruby-2.7.4 && rvm use ruby-2.7.4 --default"
+RUN echo "rvm_gems_path=/workspace/.rvm" > ~/.rvmrc