-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
46 lines (37 loc) · 1.08 KB
/
Copy pathTaskfile.yml
File metadata and controls
46 lines (37 loc) · 1.08 KB
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
version: "3"
vars:
CORE: ../../madrona-portal
COMPOSE: docker compose -f docker/compose.yml -f {{.CORE}}/docker/compose.base.yml --env-file docker/.env
tasks:
base:
desc: Build the core base image locally.
cmds:
- sh -c "if [ -f docker/.env ]; then set -a; . docker/.env; set +a; fi; docker build -t ghcr.io/ecotrust/madrona-portal:\${BASE_TAG:-latest} -f {{.CORE}}/docker/Dockerfile {{.CORE}}/../"
build:
desc: Build the WCOA overlay image.
cmds:
- "{{.COMPOSE}} build"
up:
desc: Start the stack.
cmds:
- "{{.COMPOSE}} up"
init:
desc: Start the stack and run DB init on startup.
cmds:
- "DB_INIT=1 {{.COMPOSE}} up"
down:
desc: Stop the stack.
cmds:
- "{{.COMPOSE}} down"
logs:
desc: Tail app logs.
cmds:
- "{{.COMPOSE}} logs -f app"
manage:
desc: Run a Django manage.py command, e.g. task manage -- migrate.
cmds:
- "{{.COMPOSE}} exec app python marco/manage.py {{.CLI_ARGS}}"
shell:
desc: Open Django shell.
cmds:
- "{{.COMPOSE}} exec app python marco/manage.py shell"