From 7e104567d5f7f94a4b3ff9bb89db495dd0c96189 Mon Sep 17 00:00:00 2001 From: Peter Monsson Date: Wed, 9 Oct 2024 16:24:09 +0200 Subject: [PATCH 1/2] Update gitpod.Dockerfile - Move to Ruby 3.3.4 - add graphviz as a package to install as it is missing on db migration --- gitpod.Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitpod.Dockerfile b/gitpod.Dockerfile index 3341eb400..0da2e90d4 100644 --- a/gitpod.Dockerfile +++ b/gitpod.Dockerfile @@ -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 \ @@ -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/* From b825f3373b5e2c155081b39213c53a781d543a0a Mon Sep 17 00:00:00 2001 From: Peter Monsson Date: Wed, 9 Oct 2024 16:27:59 +0200 Subject: [PATCH 2/2] Update .gitpod.yml Make rails init code work seamlessly with gitpod --- .gitpod.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index b55238956..498faa7d3 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -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