container: fix liveness probe

We don't have permissions to write to /run when running on OpenShift so let's
just use /tmp and change the filename to prevent any conflicts.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2022-03-25 13:59:25 +01:00 committed by Sanne Raymaekers
parent 7a194bfcb5
commit fc86ffd968
2 changed files with 2 additions and 2 deletions

View file

@ -310,7 +310,7 @@ class Cli(contextlib.AbstractContextManager):
signal.signal(signal.SIGTERM, handler)
liveness = pathlib.Path('/run/live')
liveness = pathlib.Path('/tmp/osbuild-composer-live')
liveness.touch()