Gitpod support

Hey,
I was able to make .gitpod.yml file for our codebase. It took a bit long as I am not that familiar with this. It is as follows:
1 .gitpod.yml:

tasks:
  - before: 
          sudo apt-get update &&
          sudo apt install -y build-essential libnss3 libsecret-1-dev python rsync &&
          sudo apt-get install -y libgbm-dev
  - init: 
          yarn install 
    command: yarn run watch

image:
  file: Dockerfile

ports:
  - port: 3000-6000
    onOpen: ignore

github:
  prebuilds:
    # enable for the default branch (defaults to true)
    dev: 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: false
    # add a "Review in Gitpod" button to the pull request's description (defaults to false)
    addBadge: false

and '2. Dockerfile' FROM gitpod/workspace-full-vnc:latest
But we have to commit this file to the repo.

(https://gitpod.io/#prebuild/https://github.com/ORG/REPO)

But I am not sure about the pre-build(Gitpod Docs: Pre-builds) part as they are not working, but apart from that it works.
If anyone wants to try it here is the Link(you would have to wait for the installation though)
If anybody can improve the 'pre-build' part that would be great!

3 Likes