chore: Reorganize files into folders
to make it plain where each file belongs in the containers file system and to simplify the `ADD` directives in the Containerfile. Signed-off-by: Andreas Hartmann <hartan@7x.de>
This commit is contained in:
18
home/podman/.config/systemd/user/podman.service
Normal file
18
home/podman/.config/systemd/user/podman.service
Normal file
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Podman API Service
|
||||
Requires=podman.socket
|
||||
After=podman.socket
|
||||
Documentation=man:podman-system-service(1)
|
||||
StartLimitIntervalSec=0
|
||||
|
||||
[Service]
|
||||
Delegate=true
|
||||
Type=exec
|
||||
KillMode=process
|
||||
Environment=LOGGING="--log-level=warn"
|
||||
ExecStart=/usr/bin/podman $LOGGING system service
|
||||
StandardOutput=journal+console
|
||||
StandardError=inherit
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
11
home/podman/.config/systemd/user/podman.socket
Normal file
11
home/podman/.config/systemd/user/podman.socket
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Podman API Socket
|
||||
Documentation=man:podman-system-service(1)
|
||||
|
||||
[Socket]
|
||||
ListenStream=/home/runner/podman.sock
|
||||
SocketGroup=runner
|
||||
SocketMode=0660
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
6
home/podman/.config/systemd/user/prune.service
Normal file
6
home/podman/.config/systemd/user/prune.service
Normal file
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Prune all disused podman volumes, images, and containers
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/podman system prune --all --force
|
||||
6
home/podman/.config/systemd/user/prune.timer
Normal file
6
home/podman/.config/systemd/user/prune.timer
Normal file
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Execute the prune service periodically
|
||||
|
||||
[Timer]
|
||||
OnCalendar=@@@PRUNE_INTERVAL@@@
|
||||
RemainAfterElapse=no
|
||||
Reference in New Issue
Block a user