Abort and restart container when a thread panics

This commit is contained in:
George Kaklamanos 2023-05-27 18:14:20 +03:00
parent 139733f635
commit 02110d9826
2 changed files with 5 additions and 2 deletions

View file

@ -13,3 +13,6 @@ spaceapi = "0.9.0"
[target.x86_64-unknown-linux-musl.dependencies]
openssl-sys = { version = "0.9.87", features = ["vendored"] }
[profile.release]
panic = 'abort'

View file

@ -9,7 +9,7 @@ podman_image: build_musl
podman build -t spaceapi2prometheus .
docker_run: docker_image
docker run --rm -d -p --name s2p spaceapi2prometheus
docker run -d -p --restart always --name s2p spaceapi2prometheus
podman_run: podman_image
podman run --rm -d -p --name s2p spaceapi2prometheus
podman run -d -p --restart-policy=always --name s2p spaceapi2prometheus