2021-12-27 13:53:06 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Podman image@%i
|
|
|
|
Wants=network.target
|
|
|
|
After=network-online.target
|
|
|
|
StartLimitIntervalSec=1h
|
|
|
|
StartLimitBurst=3
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
|
|
|
LogExtraFields=IMAGE=%i
|
|
|
|
ExecCondition=/usr/bin/bash -c '[[ $(podman images --format json localhost/%i | jq .\\[0\\]) == "null" ]]'
|
2023-09-22 22:36:58 +00:00
|
|
|
Environment="IMAGE_TAG=localhost/%i" "BUILD_SOURCE=/infra/containers/%i"
|
2021-12-27 17:29:25 +00:00
|
|
|
ExecStart=/usr/bin/podman build --tag ${IMAGE_TAG} $EXTRAOPTS ${BUILD_SOURCE}
|
2021-12-27 13:53:06 +00:00
|
|
|
Restart=no
|
2022-02-20 11:34:44 +00:00
|
|
|
RemainAfterExit=no
|
2021-12-27 13:53:06 +00:00
|
|
|
TimeoutStartSec=1h
|
|
|
|
SendSIGKILL=no
|
|
|
|
LogRateLimitIntervalSec=15min
|
|
|
|
LogRateLimitBurst=1500
|