2021-01-13 16:36:50 +00:00
|
|
|
[Unit]
|
2021-08-28 11:51:11 +00:00
|
|
|
Description=Container Build for %I
|
2021-06-27 11:52:47 +00:00
|
|
|
Wants=network-online.target container-environment@%i.service container-network@internal.service container-build@%i.path
|
|
|
|
After=network-online.target container-environment@%i.service container-network@internal.service
|
2021-08-14 21:28:28 +00:00
|
|
|
ConditionPathExists=%E/coreos-home-server/%i/Containerfile
|
2021-01-13 16:36:50 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2021-08-28 18:16:29 +00:00
|
|
|
SyslogIdentifier=%N
|
2023-12-20 19:19:58 +00:00
|
|
|
Environment=PODMAN_BUILD_OPTIONS=
|
|
|
|
ExecCondition=/bin/sh -c 'test -z "$(podman image list --quiet --filter until!="$(find %E/coreos-home-server/%i/{Containerfile,container} -type f -printf "%%T@\n" | sort -n | tail -1)" --filter reference=localhost/%i)"; exit $?'
|
2021-08-14 21:28:28 +00:00
|
|
|
ExecStart=/bin/podman build $PODMAN_BUILD_OPTIONS --file %E/coreos-home-server/%i/Containerfile --tag localhost/%i:latest %E/coreos-home-server/%i
|
2021-01-13 16:36:50 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|