-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (26 loc) · 1.08 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
imagename=yee-voice
parent_image_arm=resin/raspberrypi3-debian:jessie
parent_image_x86=node:6
clean:
@sudo rm -rf node_modules && sudo rm -rf core && sudo rm -rf pulse* && sudo rm -rf node_modules
install: dev-build-server
docker-build-dev:
@docker rm -f $(service) > /dev/null 2>&1 || exit 0
@docker build -t $(imagename) --build-arg parent_image=$(parent_image_x86) .
docker-build-prod:
@docker rm -f $(service) > /dev/null 2>&1 || exit 0
@docker build -t $(imagename) --build-arg parent_image=$(parent_image_arm) .
build: docker-build-prod
stop:
@docker-compose stop yee-voice-recognition-server
@docker-compose stop yee-voice-recognition-server-dev
run:
@docker-compose up yee-voice-recognition-server
run-dev:
@docker-compose up yee-voice-recognition-server-dev
ssh:
@docker-compose exec yee-voice-recognition-server sh
ssh-dev:
@docker-compose exec yee-voice-recognition-server-dev sh
rebuild-images:
@docker-compose -p yee-voice-recognition-server rm && docker-compose -p yee-voice-recognition-server pull && docker-compose -p yee-voice-recognition-server build --no-cache