forked from LearningLocker/learninglocker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.docker.yaml
More file actions
53 lines (42 loc) · 1.04 KB
/
Taskfile.docker.yaml
File metadata and controls
53 lines (42 loc) · 1.04 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
47
48
49
50
51
52
53
version: '3'
env:
COMPOSE_DOCKER_CLI_BUILD: "1"
DOCKER_BUILDKIT: "1"
COMPOSE_CMD: docker compose
tasks:
all:
aliases: [ default ]
cmds:
- task: build
- task: watch
build:
desc: Build the application
aliases: [ make ]
cmds: [ $COMPOSE_CMD build ]
rebuild:
desc: Rebuild the applications without caches
cmds: [ $COMPOSE_CMD build --no-cache ]
up:
desc: Run the application
aliases: [ run, start ]
cmds: [ $COMPOSE_CMD up ]
down:
desc: Stop the application
aliases: [ halt, stop, end ]
cmds: [ $COMPOSE_CMD down ]
watch:
desc: Run the application, watch for changes
aliases: [ dev ]
cmds: [ $COMPOSE_CMD up --watch ]
cli:
desc: Start shell in cli container
cmds: [ $COMPOSE_CMD run cli ]
clean:
desc: Stop the application and remove data
cmds: [ $COMPOSE_CMD down --volumes ]
check:
- task: docker build --check .
- task: docker scout quickview
kompose:
cmds:
- kompose convert --with-kompose-annotation=false --out=./.k8s/base