Abort and restart container when a thread panics
This commit is contained in:
parent
139733f635
commit
02110d9826
2 changed files with 5 additions and 2 deletions
|
@ -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'
|
||||
|
|
4
justfile
4
justfile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue