-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (23 loc) · 808 Bytes
/
Makefile
File metadata and controls
38 lines (23 loc) · 808 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
NAME := e2e-uat
REGISTRY := whiteplus/$(NAME)
VERSION := 20170815
.PHONY: build push example
build:
cd $(VERSION); docker build -t $(NAME):$(VERSION) .
version:
@docker run -it --entrypoint sh $(NAME):$(VERSION) -c "python --version"
example-start:
docker run -itd --shm-size=1024m --cap-add=SYS_ADMIN --name e2e-uat-example $(NAME):$(VERSION)
example-stop:
docker stop e2e-uat-example
docker rm e2e-uat-example
example:
@docker exec e2e-uat-example rm -rf /tmp/example
@docker cp example e2e-uat-example:/tmp/example
@docker exec e2e-uat-example discover-test /tmp/example
push: build
docker tag $(NAME):$(VERSION) $(REGISTRY):$(VERSION)
docker push $(REGISTRY):$(VERSION)
push-latest: build
docker tag $(NAME):$(VERSION) $(REGISTRY):latest
docker push $(REGISTRY):latest