-
Notifications
You must be signed in to change notification settings - Fork 135
/
make-compose.mk
76 lines (52 loc) · 2.03 KB
/
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
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
64
65
66
67
68
69
70
71
72
73
74
75
76
BUILD_ARGS:= --build-arg UID=$(shell id -u) --build-arg GID=$(shell id -u)
compose: compose-clear compose-setup compose-start
compose-start:
docker compose up --abort-on-container-exit
compose-start-database:
docker compose up -d database
compose-stop:
docker compose stop || true
compose-down:
docker compose down --remove-orphans || true
compose-clear:
docker compose down -v --remove-orphans || true
compose-logs:
docker compose logs -f
compose-setup: compose-build
docker compose run --rm application make setup
compose-bash:
docker compose run --rm application bash
compose-build:
docker compose build
compose-console:
docker compose run --rm application make console
compose-install: compose-app-install compose-frontend-install
compose-app-install:
docker compose run --rm application make install-app
compose-frontend-install:
docker compose run --rm frontend make install-frontend
compose-database-start:
docker compose up --build -d database
compose-database-stop:
docker compose stop database
compose-db-prepare:
docker compose run --rm application make db-prepare
compose-lint:
docker compose run --rm application make lint
compose-lint-fix:
docker compose run --rm application make lint-fix
compose-test:
docker compose run application make test
compose-test-coverage:
docker compose run --rm application make test-coverage
compose-check:
docker compose run --rm application make check
ci:
docker compose -f docker-compose.ci.yml -p hexlet-sicp-ci build ${BUILD_ARGS}
docker compose -f docker-compose.ci.yml -p hexlet-sicp-ci run --rm application make setup
docker compose -f docker-compose.ci.yml -p hexlet-sicp-ci up --abort-on-container-exit
docker compose -f docker-compose.ci.yml -p hexlet-sicp-ci down -v --remove-orphans
ci-solutions:
docker compose -f docker-compose.ci.yml -p hexlet-sicp-ci build ${BUILD_ARGS}
docker compose -f docker-compose.ci.yml -p hexlet-sicp-ci run --rm application make install-app test-solutions
docker compose -f docker-compose.ci.yml -p hexlet-sicp-ci down -v --remove-orphans