-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (27 loc) · 806 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
28
29
30
31
32
33
34
35
36
37
38
IMAGE_NAME = seifer08ms/goproxy
CONTAINER_NAME = goproxy
HOST_PORT = 8087
EXPORT_CA_DIR = ${PWD}
default: build
all: build install
debug : build run-debug
build:
docker build -t ${IMAGE_NAME} .
pull:
docker pull ${IMAGE_NAME}
push:
docker push ${IMAGE_NAME}
shell:
docker exec -it ${CONTAINER_NAME} /bin/bash
install:
docker run --name ${CONTAINER_NAME} -d --restart=always -p ${HOST_PORT}:8087 -v ${PWD}/gae.user.json:/goproxy/gae.user.json -v ${PWD}/httpproxy.user.json:/goproxy/httpproxy.user.json ${IMAGE_NAME}
crt :
docker cp ${CONTAINER_NAME}:/goproxy/GoProxy.crt ${EXPORT_CA_DIR}
clean:
docker stop ${CONTAINER_NAME}
docker rm ${CONTAINER_NAME}
purge:
docker stop ${CONTAINER_NAME}
docker rm ${CONTAINER_NAME}
docker rmi ${IMAGE_NAME}
release: build push