diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2021-01-24 16:45:10 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2021-01-24 16:45:10 +0100 |
commit | 76c3eb719d7775d5ff28865aa4b9c2ed44b148a7 (patch) | |
tree | 88b2fe43f48338057426b67759e174922f77a0ac /Makefile | |
parent | e09cde6bc49e9c10d604446bbb56401a34c58710 (diff) | |
download | gentoo-distcc-76c3eb719d7775d5ff28865aa4b9c2ed44b148a7.tar.gz gentoo-distcc-76c3eb719d7775d5ff28865aa4b9c2ed44b148a7.tar.bz2 gentoo-distcc-76c3eb719d7775d5ff28865aa4b9c2ed44b148a7.tar.xz gentoo-distcc-76c3eb719d7775d5ff28865aa4b9c2ed44b148a7.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -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 |