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:
authorRussell Dickenson <rdickenson@gitlab.com>2021-10-21 07:19:23 +0300
committerRussell Dickenson <rdickenson@gitlab.com>2021-10-21 07:19:23 +0300
commitc14ffd34643e4461f6490156b0ea2d848ad665f1 (patch)
tree5745c554f07956a53dea0d43acd23452ee200307
parentaae3990944248672ef7888589a8c54bf6ae5026f (diff)
parentf1bc7726b29107169214e64bb51c24883e77e06d (diff)
Merge branch 'eread/install-ruby-2_7_4-for-gitpod' into 'main'fneill-update-codeowners-for-workspace
Install Ruby 2.7.4 when using Gitpod See merge request gitlab-org/gitlab-docs!2203
-rw-r--r--.gitpod.Dockerfile10
-rw-r--r--.gitpod.yml3
2 files changed, 13 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
diff --git a/.gitpod.yml b/.gitpod.yml
index d0b6ff35..9aabfe2e 100644
--- a/.gitpod.yml
+++ b/.gitpod.yml
@@ -1,3 +1,6 @@
+image:
+ file: .gitpod.Dockerfile
+
ports:
- port: 3004
onOpen: open-browser