forked from jialin-wu-02/aimde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (50 loc) · 1.15 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
54
55
56
57
58
59
60
ifdef $(repo)
repo = $(repo)
else
repo = `pwd`/examples/.aim
endif
ifneq ($(tf_logs),)
tf_logs_v = -v "$(tf_logs)":"/tf_logs"
else
tf_logs_v =
endif
dev:
- make down
- docker build -t aimhub-live-dev -f Dockerfile-dev .
- make up
up:
- docker run -it \
--name aimhub-live-dev \
-p 43800:43800 \
-p 43801:43801 \
-p 43802:43802 \
-p 43803:43803 \
-v `pwd`/client:/client \
-v `pwd`/server:/server \
-v $(repo):/store \
$(tf_logs_v) \
-v "aim_live_db_dev:/var/lib/postgresql/data" \
-e PROJECT_NAME=proj \
-e PROJECT_PATH=/root/my/project \
aimhub-live-dev
down:
- docker stop aimhub-live-dev
- docker rm aimhub-live-dev
build:
- docker build -t aimhub-live .
destroy:
- docker stop aimhub-live
- docker rm aimhub-live
- docker image rm aimhub-live
- docker stop aimhub-live-dev
- docker rm aimhub-live-dev
- docker image rm aimhub-live-dev
prod:
- docker stop aimhub-live
- docker rm aimhub-live
- docker run -it --name aimhub-live -p $(port):80 -v `pwd`/.aim:/store aimhub-live
tag:
docker tag aimhub-live aimhubio/aim-board:$(version)
push:
make version=$(version) tag
docker push aimhubio/aim-board:$(version)