Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
Configure Gitpod (#625)
Browse files Browse the repository at this point in the history
* Declare ruby version for rbenv

* Add gitpod start

* Use the Dockerfile

* Integrate bundler version

* Use gitpod recs

* Declare port

* Install bundler upon init

* Add more customization

* Fix typo

* Rename Dockerfile
  • Loading branch information
scottnuma authored Apr 27, 2021
1 parent c85875f commit b1bbac7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM gitpod/workspace-postgres
USER gitpod

# Install the Ruby version specified in '.ruby-version'
COPY --chown=gitpod:gitpod .ruby-version /tmp
RUN echo "rvm_gems_path=/home/gitpod/.rvm" > ~/.rvmrc
RUN bash -lc "rvm install ruby-$(cat /tmp/.ruby-version) && rvm use ruby-$(cat /tmp/.ruby-version) --default"
RUN echo "rvm_gems_path=/workspace/.rvm" > ~/.rvmrc
11 changes: 11 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
image:
file: .gitpod.Dockerfile

tasks:
- init: gem install bundler:2.2.9 && bundle install
command: bundle exec jekyll serve --livereload
openMode: split-right

ports:
- port: 4000
onOpen: open-browser

0 comments on commit b1bbac7

Please sign in to comment.