Skip to content

Commit

Permalink
Update Gitpod setup (#1708)
Browse files Browse the repository at this point in the history
* Update gitpod.Dockerfile

 - Move to Ruby 3.3.4
 - add graphviz as a package to install as it is missing on db migration

* Update .gitpod.yml

Make rails init code work seamlessly with gitpod
  • Loading branch information
PeterMonsson authored Oct 17, 2024
1 parent 7f106ea commit c18770f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ tasks:
init: |
gp sync-await redis-started
bundle install &&
bin/setup &&
corepack enable &&
yes | bin/setup &&
rails db:setup &&
gp sync-done bundle # 'bundle' is an arbitrary name
command: bin/dev
Expand Down
4 changes: 2 additions & 2 deletions gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM gitpod/workspace-postgres
USER gitpod

RUN _ruby_version=ruby-3.3.1 \
RUN _ruby_version=ruby-3.3.4 \
&& printf "rvm_gems_path=/home/gitpod/.rvm\n" > ~/.rvmrc \
&& bash -lc "rvm reinstall ruby-${_ruby_version} && rvm use ruby-${_ruby_version} --default && gem install rails" \
&& printf "rvm_gems_path=/workspace/.rvm" > ~/.rvmrc \
Expand All @@ -11,5 +11,5 @@ RUN _ruby_version=ruby-3.3.1 \
RUN curl https://packages.redis.io/gpg | sudo apt-key add - \
&& echo "deb https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list \
&& sudo apt-get update \
&& sudo apt-get install -y redis libvips \
&& sudo apt-get install -y redis libvips graphviz \
&& sudo rm -rf /var/lib/apt/lists/*

0 comments on commit c18770f

Please sign in to comment.