Skip to content

Commit

Permalink
Update GitPod config to use proper Ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcwhite committed Aug 16, 2022
1 parent ff64dfd commit 9e6c6d4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
12 changes: 12 additions & 0 deletions .gitpod.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM gitpod/workspace-full
USER gitpod

# Define Ruby version
ENV RUBY_VERSION=2.7.2
ENV RUBY_WEBSITE_VERSION=3.0.3

# Install the required Ruby version and set it as default
RUN echo "rvm_gems_path=/home/gitpod/.rvm" > ~/.rvmrc
RUN bash -lc "rvm install ruby-$RUBY_WEBSITE_VERSION"
RUN bash -lc "rvm install ruby-$RUBY_VERSION && rvm use ruby-$RUBY_VERSION --default"
RUN echo "rvm_gems_path=/workspace/.rvm" > ~/.rvmrc
6 changes: 2 additions & 4 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
# and commit this file to your remote git repository to share the goodness with others.

image:
file: .gitpod.dockerfile
tasks:
- init: bundle install

Expand Down

0 comments on commit 9e6c6d4

Please sign in to comment.