-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (27 loc) · 885 Bytes
/
Makefile
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
.PHONY: build run start stop logs ps clean deploy tests
ENV ?= dev
START_SERVICES ?=
RUN_SERVICE ?=
COMPOSE_EXEC ?= docker compose
build:
${COMPOSE_EXEC} -f docker-compose.yml -f docker-compose.$(ENV).yml build
pull:
${COMPOSE_EXEC} -f docker-compose.yml -f docker-compose.$(ENV).yml pull
start:
${COMPOSE_EXEC} -f docker-compose.yml -f docker-compose.$(ENV).yml up -d $(START_SERVICES)
stop:
${COMPOSE_EXEC} -f docker-compose.yml -f docker-compose.$(ENV).yml down
run:
${COMPOSE_EXEC} -f docker-compose.yml -f docker-compose.$(ENV).yml run --rm $(RUN_SERVICE)
logs:
${COMPOSE_EXEC} -f docker-compose.yml -f docker-compose.$(ENV).yml logs $(ARGS)
ps:
${COMPOSE_EXEC} -f docker-compose.yml -f docker-compose.$(ENV).yml ps
clean:
find . -name "*.pyc" -delete
deploy:
/bin/bash ./deployment/deploy.sh
tests:
tox
integration_tests:
scripts/run_integration_tests.sh