-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (37 loc) · 806 Bytes
/
Makefile
File metadata and controls
48 lines (37 loc) · 806 Bytes
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
#!/usr/bin/make -f
include .env
ifndef HUBOT_SLACK_TOKEN
$(error HUBOT_SLACK_TOKEN is undefined)
endif
ifndef HUBOT_VERSION
$(error HUBOT_VERSION is undefined)
endif
ifndef OPENCPU_VERSION
$(error OPENCPU_VERSION is undefined)
endif
ifndef CAMERA_VERSION
$(error CAMERA_VERSION is undefined)
endif
.PHONY: build_opencpu
build_opencpu:
docker-compose -f docker-compose.devops.yml build opencpu
.PHONY: build_hubot
build_hubot:
docker-compose -f docker-compose.devops.yml build hubot
.PHONY: build_camera
build_camera:
docker-compose -f docker-compose.devops.yml build camera
.PHONY: build
build:
make build_opencpu
make build_hubot
make build_camera
.PHONY: start
start:
docker-compose up -d
.PHONY: stop
stop:
docker-compose stop
.PHONY: down
down:
docker-compose down --remove-orphans