Fix Gitpod (#19914)

This commit is contained in:
Mac Siri 2023-08-15 14:25:04 -04:00 committed by GitHub
parent 5717ab7396
commit d7b4c77937
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 7 deletions

View file

@ -1,15 +1,15 @@
FROM gitpod/workspace-postgres
# Install Ruby
ENV RUBY_VERSION=3.1.4
# Install the GitHub CLI
RUN brew install gh
# Taken from https://www.gitpod.io/docs/languages/ruby
RUN echo "rvm_gems_path=/home/gitpod/.rvm" > ~/.rvmrc
RUN bash -lc "rvm install ruby-$RUBY_VERSION && rvm use ruby-$RUBY_VERSION --default"
RUN echo "rvm_gems_path=/workspace/.rvm" > ~/.rvmrc
# Install Ruby
ENV RUBY_VERSION=3.1.4
RUN printf "rvm_gems_path=/home/gitpod/.rvm\n" > ~/.rvmrc \
&& bash -lc "rvm reinstall $RUBY_VERSION && \
rvm use $RUBY_VERSION --default" \
&& printf "rvm_gems_path=/workspace/.rvm" > ~/.rvmrc \
&& printf "{ rvm use \$(rvm current); } >/dev/null 2>&1\n" >> "$HOME/.bashrc.d/70-ruby"
# Install Node and Yarn
ENV NODE_VERSION=16.13.1

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
ln -s "$(which ruby)" "$(rvm gemdir)/bin/ruby"
cp .env_sample .env
echo "APP_DOMAIN=\"$(gp url 3000 | cut -f 3 -d /)\"" >> .env
echo 'APP_PROTOCOL="https://"' >> .env