-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
25 lines (19 loc) · 1.05 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
build-and-push: backend frontend-v1 frontend-v2 frontend-v3
backend:
cd services/calculator-backend && \
docker build -t quay.io/kubernetes-workshop/calculator-backend:v1 .
docker push quay.io/kubernetes-workshop/calculator-backend:v1
frontend-v1:
cd services/calculator-frontend && \
docker build -t quay.io/kubernetes-workshop/calculator-frontend:v1 --build-arg appVersion=1 .
docker push quay.io/kubernetes-workshop/calculator-frontend:v1
frontend-v2:
cd services/calculator-frontend && \
docker build -t quay.io/kubernetes-workshop/calculator-frontend:v2 --build-arg appVersion=2 .
docker push quay.io/kubernetes-workshop/calculator-frontend:v2
frontend-v3:
cd services/calculator-frontend && \
docker build -t quay.io/kubernetes-workshop/calculator-frontend:v3 --build-arg appVersion=3 .
docker push quay.io/kubernetes-workshop/calculator-frontend:v3
serve-docs:
cd docs && docker run --rm -it --name github-pages -u `id -u`:`id -g` -v `pwd`:/usr/src/app -p 4000:4000 starefossen/github-pages jekyll serve --watch --force_polling -H 0.0.0.0 -P 4000