-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
46 lines (31 loc) · 1.08 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
server-clean:
@echo "Cleaning GoServer Docker Container"
docker ps -a | awk '$$2 ~ /goserver/ {print $$1}' | xargs -I {} docker rm -f {}
server-build:
@echo "Building GoServer Docker Image"
cd GoServer; docker build -t goserver -f Dockerfile .
server-run:
@echo "Running GoServer Docker Container"
docker run -p 8080:8080 -d goserver
proxy-clean:
@echo "Cleaning GoProxy Docker Container"
docker ps -a | awk '$$2 ~ /goproxy/ {print $$1}' | xargs -I {} docker rm -f {}
proxy-build:
@echo "Building GoProxy Docker Image"
cd GoProxy; docker build -t goproxy -f Dockerfile .
proxy-run:
@echo "Running GoProxy Docker Container"
docker run -p 8090:8090 -d goproxy
redis-clean:
@echo "Cleaning Redis Docker Container"
docker ps -a | awk '$$2 ~ /redis/ {print $$1}' | xargs -I {} docker rm -f {}
redis-run:
@echo "Running Redis Docker Container"
docker run -d -p 6379:6379 --name redis redis:alpine
redis: redis-run
server: server-build server-run
proxy: proxy-build proxy-run
clean: redis-clean server-clean proxy-clean
image: clean redis server proxy
all: image
stop: clean