-
Notifications
You must be signed in to change notification settings - Fork 0
/
make-compose.mk
30 lines (21 loc) · 881 Bytes
/
make-compose.mk
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
BUILD_ARGS:= --build-arg UID=$(shell id -u) --build-arg GID=$(shell id -u)
compose: compose-clear compose-setup compose-start
compose-clear:
docker-compose down -v --remove-orphans || true
compose-build:
docker-compose build ${BUILD_ARGS}
compose-setup: compose-build
docker-compose run --rm app make setup
compose-start:
docker-compose up --abort-on-container-exit
compose-clear:
docker-compose down -v --remove-orphans || true
compose-bash:
docker-compose run --rm app bash
compose-test:
docker-compose run app make test lint
ci:
docker-compose -f docker-compose.ci.yml -p task-manager-ci build ${BUILD_ARGS}
docker-compose -f docker-compose.ci.yml -p task-manager-ci run app make setup
docker-compose -f docker-compose.ci.yml -p task-manager-ci up --abort-on-container-exit
docker-compose -f docker-compose.ci.yml -p task-manager-ci down -v --remove-orphans