forked from internetarchive/openlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
39 lines (38 loc) · 1.25 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ports:
- port: 8080
# ignore these ports by default to avoid extra notifications
- port: 8983
onOpen: ignore
- port: 7075
onOpen: ignore
- port: 7000
onOpen: ignore
- port: 3000
onOpen: ignore
tasks:
- name: watch
# This task watches for changes to JS/CSS files and automatically builds
init: gp sync-await docker-up && docker-compose run --rm home npx concurrently npm:watch npm:watch-css
- name: Start App
before: |
# run chown because https://github.com/gitpod-io/gitpod/issues/4851
sudo chown -R gitpod:999 /workspace/openlibrary
# Give container (ie group) write access to this volume
sudo chmod g+w -R /workspace/openlibrary/
# because: https://github.com/gitpod-io/gitpod/issues/9311
chmod o+rx /workspace/openlibrary
# init runs once for each commit to the default branch
init: docker compose up --no-start && gp sync-done docker-up
# command runs each time a user starts their workspace
command: docker compose up
- name: dev shell
# init runs once for each commit to the default branch
init: ./scripts/setup_gitpod.sh
openMode: split-right
github:
prebuilds:
# Disable all prebuilds ; it's not faster and often errors
master: false
pullRequests: false
branches: false
pullRequestsFromForks: false