From f892698fcb650b1d18c4643a50d4ebb1e8207fa6 Mon Sep 17 00:00:00 2001 From: madmath03 Date: Sun, 7 Mar 2021 15:27:48 +0000 Subject: [PATCH 1/4] Fully automate dev setup with Gitpod This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. --- .gitpod.Dockerfile | 10 ++++++++++ .gitpod.yml | 35 +++++++++++++++++++++++++++++++++++ README.md | 2 ++ 3 files changed, 47 insertions(+) create mode 100644 .gitpod.Dockerfile create mode 100644 .gitpod.yml diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 0000000000..fe4dfc8f4a --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,10 @@ +FROM gitpod/workspace-full + +# Install custom tools, runtimes, etc. +# For example "bastet", a command-line tetris clone: +# RUN brew install bastet +# +# More information: https://www.gitpod.io/docs/config-docker/ + +RUN set -ex; \ + gem install jekyll bundler; diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000000..f686899760 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,35 @@ +image: + file: .gitpod.Dockerfile + +ports: + - port: 4000 + +tasks: + - init: bundle install + name: jekyll + command: bundle exec jekyll serve + +vscode: + extensions: + - syler.sass-indented@1.8.15:OWaLl5oCHRK7fCfvhwK3og== + + - dbaeumer.vscode-eslint@2.1.8:02aHhbJ0Q4aGdjHXlTdVKg== + +github: + prebuilds: + # enable for the master/default branch (defaults to true) + master: true +# enable for all branches in this repo (defaults to false) + branches: false +# enable for pull requests coming from this repo (defaults to true) + pullRequests: true +# enable for pull requests coming from forks (defaults to false) + pullRequestsFromForks: false +# add a check to pull requests (defaults to true) + addCheck: true +# add a "Review in Gitpod" button as a comment to pull requests (defaults to false) + addComment: true +# add a "Review in Gitpod" button to the pull request's description (defaults to false) + addBadge: false +# add a label once the prebuild is ready to pull requests (defaults to false) + addLabel: true diff --git a/README.md b/README.md index 5994e73733..cf5274a2fc 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/github/personal-website) + # Get started building your personal website ### Showcase your software development skills From dcf6eea0fd08c734d8db44caa6340a65483f66cf Mon Sep 17 00:00:00 2001 From: madmath03 Date: Sun, 7 Mar 2021 15:29:59 +0000 Subject: [PATCH 2/4] Fully automate dev setup with Gitpod This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. --- .gitpod.Dockerfile | 3 --- .gitpod.yml | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index fe4dfc8f4a..f8e49f2674 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -5,6 +5,3 @@ FROM gitpod/workspace-full # RUN brew install bastet # # More information: https://www.gitpod.io/docs/config-docker/ - -RUN set -ex; \ - gem install jekyll bundler; diff --git a/.gitpod.yml b/.gitpod.yml index f686899760..e36053fd48 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -5,7 +5,8 @@ ports: - port: 4000 tasks: - - init: bundle install + - before: gem install jekyll bundler + init: bundle install name: jekyll command: bundle exec jekyll serve From a01940f0c6a4e33711bea01f0a6fe5a3a3d7d0c5 Mon Sep 17 00:00:00 2001 From: madmath03 Date: Sun, 7 Mar 2021 15:38:17 +0000 Subject: [PATCH 3/4] Fully automate dev setup with Gitpod This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. --- .gitpod.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitpod.yml b/.gitpod.yml index e36053fd48..08b13f8616 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -3,6 +3,7 @@ image: ports: - port: 4000 + onOpen: open-preview tasks: - before: gem install jekyll bundler From dd1a362779f4a96ed17d8c8bead76bacf8bfa59b Mon Sep 17 00:00:00 2001 From: Mathieu Brunot Date: Sun, 7 Mar 2021 16:53:20 +0100 Subject: [PATCH 4/4] :memo: Add Gitpod install in docs --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index cf5274a2fc..1bca464ba2 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,10 @@ You'll be making your own copy of the "personal website starter" repository so y Once you've found a home for your forked repository, it's yours. You're the owner, so you're ready to publish, if you wish. +### Install in Gitpod + +[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/github/personal-website) + ### Install in your local development environment If you want to manage your website in a local web development environment, you'll be using [Ruby](https://jekyllrb.com/docs/installation/).