-
Notifications
You must be signed in to change notification settings - Fork 87
/
Makefile
48 lines (32 loc) · 1.18 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
.PHONY: all build push \
build-python build-cron build-bower build-rpc build-app build-nginx build-frontend \
push-python push-cron push-bower push-rpc push-app push-nginx push-frontend
all: build
build: build-python build-cron build-bower build-rpc build-app build-nginx build-frontend
build-python:
docker build -t beget/sprutio-python -f Dockerfile ./
build-cron:
docker build -t beget/sprutio-cron -f Dockerfile.cron ./
build-bower:
docker build -t beget/sprutio-bower -f Dockerfile.bower ./
build-rpc:
docker build -t beget/sprutio-rpc -f rpc/Dockerfile rpc/
build-app:
docker build -t beget/sprutio-app -f app/Dockerfile app/
build-nginx:
docker build -t beget/sprutio-nginx -f Dockerfile.nginx ./
build-frontend:
docker run -v $(PWD)/app/public:/app -w /app beget/sprutio-bower bower install --allow-root
docker build -t beget/sprutio-frontend -f app/public/Dockerfile app/public/
push: push-cron push-rpc push-app push-nginx push-frontend
push-cron:
docker push beget/sprutio-cron
push-rpc:
docker push beget/sprutio-rpc
push-app:
docker push beget/sprutio-app
push-nginx:
docker push beget/sprutio-nginx
push-frontend:
docker push beget/sprutio-frontend
# EOF