-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (24 loc) · 808 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
all:
echo "OK"
build:
podman build -t $(shell cat dockerimage) .
run:
podman run -d -p 8080:3128/tcp --name squid_cache $(shell cat dockerimage)
# podman run -d -p 8080:3128/tcp --volume /opt/src/squid-docker/squid.conf:/etc/squid/squid.conf --name squid_cache $(shell cat dockerimage)
stop:
podman stop squid_cache
rm:
podman rm squid_cache
gen-systemd-service:
podman generate systemd squid_cache > /etc/systemd/system/$(shell cat service_filename)
systemctl daemon-reload
systemd-stop:
systemctl stop $(shell cat service_filename)
systemd-start:
systemctl start $(shell cat service_filename)
systemd-status:
systemctl status $(shell cat service_filename)
systemd-restart:
systemctl restart $(shell cat service_filename)
systemd-enable:
systemctl enable $(shell cat service_filename)