-
Notifications
You must be signed in to change notification settings - Fork 4
/
makefile
27 lines (21 loc) · 933 Bytes
/
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
build:
TAG=`git rev-parse --short=8 HEAD`; \
docker build --rm -f tanzu-advanced-poc.dockerfile -t tanzu-advanced-poc:$$TAG .; \
docker tag tanzu-advanced-poc:$$TAG tanzu-advanced-poc:latest
clean:
docker stop tanzu-advanced-poc
docker rm tanzu-advanced-poc
rebuild: clean build
run:
docker run --name tanzu-advanced-poc -v /var/run/docker.sock:/var/run/docker.sock -v $$PWD/scenarios:/scenarios -v $$PWD/config/kube.conf:/root/.kube/config -td tanzu-advanced-poc:latest
docker exec -it tanzu-advanced-poc bash -l
demo:
docker run --name tanzu-advanced-poc -p 8080-8090:8080-8090 -v /var/run/docker.sock:/var/run/docker.sock -v $$PWD/scenarios:/scenarios -v $$PWD/config/kube.conf:/root/.kube/config -td tanzu-advanced-poc:latest
docker exec -it tanzu-advanced-poc bash -l
join:
docker exec -it tanzu-advanced-poc bash -l
start:
docker start tanzu-advanced-poc
stop:
docker stop tanzu-advanced-poc
default: build