-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (40 loc) · 1.69 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
.PHONY: help
.DEFAULT_GOAL := help
help: ## PTG API Server
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
env: ## create env file
[ ! -f .env ] && cp .env.sample .env || : 0
full: https api record ml dash ## bring the full system up
https: env ## bring up the https reverse proxy
docker-compose -f docker-compose.https.yaml up -d --build
api: base ## bring just the api services up
docker network create web || : 0
docker-compose up -d --build
services: api ## alias for api
record: base baseml ## bring up the recording containers
cd ptg-server-ml && docker-compose -f docker-compose.record.yaml up -d --build && cd -
ml: base baseml ## bring up the recording containers
cd ptgctl && docker build -f Dockerfile.gpu -t ptgctl:gpu .
cd ptg-server-ml && docker-compose -f docker-compose.ml.yaml up -d --build
dash: env ## bring up the dashboard containers
cd tim-dashboard && ls && docker-compose --env-file ../.env -f docker-compose.prod.yml up -d --build && cd -
base: env ## build the ptgctl container
cp .env ptg-server-ml/.env
docker build -t ptgctl -t ptgctl:latest ./ptgctl
baseml: base ## build the ptgctl container
cp .env ptg-server-ml/.env
docker build -t ptgprocess -t ptgprocess:latest ./ptg-server-ml
pull:
git pull --recurse-submodules
down: ## docker-compose down everything
[ -f ptg-server-ml/.env ] && cd ptg-server-ml && docker-compose \
-f docker-compose.ml.yaml \
-f docker-compose.record.yaml \
down || : 0
cd tim-dashboard && docker-compose \
-f docker-compose.prod.yml \
down || : 0
docker-compose \
-f docker-compose.yaml \
-f docker-compose.https.yaml \
down || : 0