-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
75 lines (52 loc) · 1.76 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
clean:
rm -f lib/images/services.tar lib/images/player.tar
#
# Load prebuilt player + service images
#
.PHONY: docker-load
docker-load:
docker load -i lib/images/services.tar
docker load -i lib/images/player.tar
#
# Source donwload + sync
#
src:
mkdir src
src/senza: | src
mkdir src/senza
src/player: | src
cd src; git clone [email protected]:AiC-Project/player.git -b v0.8
src/player.compose: | src
cd src; git clone [email protected]:AiC-Project/player.compose.git -b v0.8
src/player.camera: | src
cd src; git clone [email protected]:AiC-Project/player.camera.git -b v0.8
src/senza/ats.util: | src/senza
cd src/senza; git clone [email protected]:AiC-Project/ats.util.git -b v0.8
src/senza/ats.client: | src/senza
cd src/senza; git clone [email protected]:AiC-Project/ats.client.git -b v0.8
src/senza/ats.senza: | src/senza
cd src/senza; git clone [email protected]:AiC-Project/ats.senza.git -b v0.8
#
# Build player set
#
.PHONY: player-build
player-build: src/player src/player.compose src/player.camera
cd src/player; make docker-all
cd src/player.camera; make docker-all
cd src/player.compose; make clean docker-images
#
# Build frontend + AMQP
#
TAG ?= latest
src/senza/Dockerfile:
ln -s ats.senza/Dockerfile src/senza/Dockerfile
.PHONY: services-build
services-build: src/senza/ats.util src/senza/ats.client src/senza/ats.senza src/senza/Dockerfile
docker build -f src/senza/Dockerfile src/senza -t aic.senza:${TAG}
TAG=$(TAG) docker-compose -f lib/docker/services/services.yml build
lib/images:
mkdir lib/images
.PHONY: docker-save
docker-save: services-build player-build | lib/images
docker save -o lib/images/services.tar aic.senza
docker save -o lib/images/player.tar aic.ffserver aic.xorg aic.prjdata aic.avmdata aic.sdl aic.camera aic.audio aic.sensors aic.adb