forked from intel-retail/rtsf-at-checkout-reference-design
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
138 lines (112 loc) · 3.46 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# Copyright © 2019 Intel Corporation. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
.PHONY: run-portainer run-base run-vap run-full all simulator docker
DOCKERS=cv-roi device-scale reconciler loss-detector product-lookup rsp-event-handler
.PHONY: $(DOCKERS)
DOCKER_TAG=dev
docker-rm:
-docker rm $$(docker ps -aq)
clean-docker: docker-rm
docker volume prune -f && \
docker network prune -f
run-portainer:
cd ./loss-detection-app && docker-compose -f docker-compose.portainer.yml up -d
run-base:
cd ./loss-detection-app && \
docker-compose -f docker-compose.edgex.yml up -d && \
docker-compose -f docker-compose.loss-detection.yml up -d
run-vap:
cd ./loss-detection-app && \
docker-compose -f docker-compose.vap.yml up -d
run-rsp:
cd ./loss-detection-app && \
docker-compose -f docker-compose.rsp.yml up -d
run-full: run-base run-vap run-rsp
down:
cd ./loss-detection-app && \
docker-compose -f docker-compose.vap.yml down && \
docker-compose -f docker-compose.rsp.yml down && \
docker-compose -f docker-compose.loss-detection.yml down && \
docker-compose -f docker-compose.edgex.yml down
vas-down:
cd ./loss-detection-app && \
docker-compose -f docker-compose.vap.yml down
VAS_VERSION=v0.4.1-beta
vas:
git clone https://github.com/intel/video-analytics-serving && \
cd video-analytics-serving/docker && \
git checkout ${VAS_VERSION} && \
./build.sh
rsp:
git clone https://github.com/intel/rsp-sw-toolkit-im-suite-mqtt-device-service && \
cd rsp-sw-toolkit-im-suite-mqtt-device-service && \
docker build \
--build-arg http_proxy \
--build-arg https_proxy \
-t rsp/mqtt-device-service:dev \
.;
git clone https://github.com/intel/rsp-sw-toolkit-installer && \
cd rsp-sw-toolkit-installer/docker && \
./build.sh
clean-deps:
rm -rf rsp-sw-toolkit-im-suite-mqtt-device-service
rm -rf rsp-sw-toolkit-installer
rm -rf video-analytics-serving
all: simulator docker
simulator:
cd rtsf-at-checkout-event-simulator; \
go build -o event-simulator
clean: down clean-deps
rm -f rtsf-at-checkout-event-simulator/event-simulator && \
docker rmi $$(docker images | grep rtsf-at-checkout | awk '{print $$3}') && \
docker volume prune -f && \
docker network prune -f
docker: $(DOCKERS)
cv-roi:
cd rtsf-at-checkout-cv-region-of-interest; \
docker build \
--build-arg http_proxy \
--build-arg https_proxy \
-f ./Dockerfile \
-t rtsf-at-checkout/cv-region-of-interest:$(DOCKER_TAG) \
.
device-scale:
cd rtsf-at-checkout-device-scale; \
docker build \
--build-arg http_proxy \
--build-arg https_proxy \
-f Dockerfile \
-t rtsf-at-checkout/device-scale:$(DOCKER_TAG) \
.
reconciler:
cd rtsf-at-checkout-event-reconciler; \
docker build \
--build-arg http_proxy \
--build-arg https_proxy \
-f Dockerfile \
-t rtsf-at-checkout/event-reconciler:$(DOCKER_TAG) \
.
loss-detector:
cd rtsf-at-checkout-loss-detector; \
docker build \
--build-arg http_proxy \
--build-arg https_proxy \
-f Dockerfile \
-t rtsf-at-checkout/loss-detector:$(DOCKER_TAG) \
.
product-lookup:
cd rtsf-at-checkout-product-lookup; \
docker build \
--build-arg http_proxy \
--build-arg https_proxy \
-f Dockerfile \
-t rtsf-at-checkout/product-lookup:$(DOCKER_TAG) \
.
rsp-event-handler:
cd rtsf-at-checkout-rsp-controller-event-handler; \
docker build \
--build-arg http_proxy \
--build-arg https_proxy \
-f Dockerfile \
-t rtsf-at-checkout/rsp-controller-event-handler:$(DOCKER_TAG) \
.