blob: ba48592e8783dd7464e007529576616b095324e7 (
plain)
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
|
all: build
install: push
.PHONY: rebuild build push start stop restart bash logs
build: Dockerfile
docker build --tag chsa/distcc:latest .
rebuild: Dockerfile
docker build --no-cache --tag chsa/distcc:latest .
push: build
docker push chsa/distcc:latest
start: build
if [ `docker ps | grep chsa/distcc | wc -l` -eq 0 ]; then \
if [ `docker ps -a | grep distccd | wc -l` -gt 0 ]; then \
echo "Removing the stalled copy..." ;\
docker rm distccd ;\
fi ;\
docker run -p 0.0.0.0:3632:3632 --name distccd -t -d chsa/distcc:latest ;\
else \
echo "Already running..." ;\
fi
stop:
@if [ `docker ps | grep distccd | wc -l` -gt 0 ]; then \
docker stop distccd ;\
docker rm distccd ;\
fi
restart:
make stop
make start
debug: build
docker rm distccd ;\
docker run -p 0.0.0.0:3632:3632 --name distccd -it chsa/distcc:latest /bin/bash
bash: build
docker exec -it distccd /bin/bash
logs:
docker logs distccd
|