diff options
author | Russell Dickenson <rdickenson@gitlab.com> | 2021-10-21 07:19:23 +0300 |
---|---|---|
committer | Russell Dickenson <rdickenson@gitlab.com> | 2021-10-21 07:19:23 +0300 |
commit | c14ffd34643e4461f6490156b0ea2d848ad665f1 (patch) | |
tree | 5745c554f07956a53dea0d43acd23452ee200307 | |
parent | aae3990944248672ef7888589a8c54bf6ae5026f (diff) | |
parent | f1bc7726b29107169214e64bb51c24883e77e06d (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.Dockerfile | 10 | ||||
-rw-r--r-- | .gitpod.yml | 3 |
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 |