-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy path.gitpod.yml
56 lines (53 loc) · 1.84 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
image:
file: .gitpod.Dockerfile
# List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/config-ports/
ports:
- port: 8000
visibility: public
# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/config-start-tasks/
tasks:
- command: redis-server
- init: |
python_version=$(cat .python-version) &&
pyenv update &&
echo 'source "$HOME/.gp_pyenv.d/userbase.bash"' >> $HOME/.pyenv/libexec/pyenv-global &&
pyenv install -s $python_version &&
pyenv global $python_version &&
python -m scripts.install &&
gp sync-done deps
command: poetry run celery
- init: gp sync-await deps
command: >
python_version=$(cat .python-version) &&
pyenv global $python_version &&
./scripts/utils/wait-port.sh localhost 5432 &&
(psql -U gitpod -c 'CREATE DATABASE breathecode;' || true) &&
(psql -U gitpod -c 'CREATE EXTENSION unaccent;' -d breathecode || true) &&
export CACHE=0 &&
poetry run migrate &&
poetry run python manage.py loaddata breathecode/*/fixtures/dev_*.json &&
poetry run python manage.py create_academy_roles &&
export CACHE=1 &&
poetry run dev;
- init: gp sync-await deps
command: >
python_version=$(cat .python-version) &&
pyenv global $python_version
vscode:
extensions:
- ms-python.python
- streetsidesoftware.code-spell-checker
- mikestead.dotenv
- ms-azuretools.vscode-docker
- github.vscode-pull-request-github
- eamodio.gitlens
- gruntfuggly.todo-tree
- redhat.vscode-yaml
- ms-python.black-formatter
- ms-python.isort
- janisdd.vscode-edit-csv
- tamasfe.even-better-toml
- ms-python.flake8
- donjayamanne.githistory
- supermaven.supermaven
- ms-python.debugpy