Skip to content

Commit

Permalink
Fully automate dev setup with Gitpod (selfhostedshow#91)
Browse files Browse the repository at this point in the history
* 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.

* Updated gitpod config

* added startup command
  • Loading branch information
BCNelson authored Jan 30, 2021
1 parent ff0d90a commit 0c5cbf7
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
image:
file: ./gitpod/.gitpod.Dockerfile

tasks:
- init: pip install -r ./.gitpod/requirments.txt && pip install -r ./requirements.txt
- command: mkdocs serve


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: true
# 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: false
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
addBadge: true
# add a label once the prebuild is ready to pull requests (defaults to false)
addLabel: false
7 changes: 7 additions & 0 deletions .gitpod/.gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
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/
3 changes: 3 additions & 0 deletions .gitpod/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mkdocs
mkdocs-material
mkdocs-minify-plugin
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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/selfhostedshow/wiki)

# selfhostedshow/wiki

![CI Status Badge](https://github.com/selfhostedshow/wiki/workflows/Test/badge.svg)
Expand Down

0 comments on commit 0c5cbf7

Please sign in to comment.