summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2021-01-24 16:45:10 +0100
committerSuren A. Chilingaryan <csa@suren.me>2021-01-24 16:45:10 +0100
commit76c3eb719d7775d5ff28865aa4b9c2ed44b148a7 (patch)
tree88b2fe43f48338057426b67759e174922f77a0ac /Makefile
parente09cde6bc49e9c10d604446bbb56401a34c58710 (diff)
downloadgentoo-distcc-master.tar.gz
gentoo-distcc-master.tar.bz2
gentoo-distcc-master.tar.xz
gentoo-distcc-master.zip
Upgrade to gcc9.3 and convert to podmanHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 14 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index ba48592..c74e2a4 100644
--- a/Makefile
+++ b/Makefile
@@ -4,29 +4,29 @@ install: push
.PHONY: rebuild build push start stop restart bash logs
build: Dockerfile
- docker build --tag chsa/distcc:latest .
+ podman build --cap-add=CAP_SYS_PTRACE --tag chsa/distcc:latest .
rebuild: Dockerfile
- docker build --no-cache --tag chsa/distcc:latest .
+ podman build --no-cache --cap-add=CAP_SYS_PTRACE --tag chsa/distcc:latest .
push: build
- docker push chsa/distcc:latest
+ podman 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 \
+ if [ `podman ps | grep chsa/distcc | wc -l` -eq 0 ]; then \
+ if [ `podman ps -a | grep distccd | wc -l` -gt 0 ]; then \
echo "Removing the stalled copy..." ;\
- docker rm distccd ;\
+ podman rm distccd ;\
fi ;\
- docker run -p 0.0.0.0:3632:3632 --name distccd -t -d chsa/distcc:latest ;\
+ podman 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 ;\
+ @if [ `podman ps | grep distccd | wc -l` -gt 0 ]; then \
+ podman stop distccd ;\
+ podman rm distccd ;\
fi
restart:
@@ -34,12 +34,12 @@ restart:
make start
debug: build
- docker rm distccd ;\
- docker run -p 0.0.0.0:3632:3632 --name distccd -it chsa/distcc:latest /bin/bash
+ podman rm distccd ;\
+ podman run -p 0.0.0.0:3632:3632 --name distccd -it chsa/distcc:latest /bin/bash
bash: build
- docker exec -it distccd /bin/bash
+ podman exec -it distccd /bin/bash
logs:
- docker logs distccd
+ podman logs distccd