forked from thegreenwebfoundation/admin-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.yml
63 lines (58 loc) · 1.58 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
image:
file: .gitpod.dockerfile
github:
prebuilds:
# enable for the default branch (defaults to true)
master: true
# enable for all branches in this repo (defaults to false)
branches: true
# 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: true
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
addBadge: false
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
tasks:
- name: set up python dependencies and database
init: |
cp ./.env.gitpod ./.env
mysqladmin create greencheck
pipenv install --dev
pipenv run ./manage.py migrate
command: ls
- name: rabbitmq
command: >
docker run
--hostname green-rabbit
-p 5672:5672
--rm
--name green-rabbit
rabbitmq:3
- name: redis
command: >
docker run
--rm
--name green-redis
-p 6379:6379
redis:6
# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/
ports:
- port: 8000
onOpen: ignore
# redis
- port: 6379
onOpen: ignore
# rabbitmq
- port: 5672
onOpen: ignore
# mysql
- port: 3306
onOpen: ignore
# debugging ports in vscode
- port: 30000-50000
onOpen: ignore