-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
39 lines (30 loc) · 782 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
CONTAINER_NAME=evalytics
CONTAINER_CLIENT_NAME=evalytics-client
env ?= dev # get from cl or 'dev' by default
# make
# make build
# make build env=prod
build:
docker-compose build \
--build-arg BUILD_ENV=$(env) \
$(CONTAINER_NAME) && \
docker-compose build \
--build-arg BUILD_ENV=$(env) \
$(CONTAINER_CLIENT_NAME)
build-force:
docker-compose build --force \
--build-arg BUILD_ENV=$(env) \
$(CONTAINER_NAME) && \
docker-compose build --force \
--build-arg BUILD_ENV=$(env) \
$(CONTAINER_CLIENT_NAME)
up:
docker-compose up -d $(CONTAINER_NAME)
down:
docker-compose down
test:
docker-compose exec $(CONTAINER_NAME) pytest $(ARGS)
google-auth:
python3 google_auth.py
request:
docker-compose run $(CONTAINER_CLIENT_NAME) python3 client.py $(ARGS)