From 21f29a77a459d44a81ff0f88e936f71a54a190e8 Mon Sep 17 00:00:00 2001 From: Benedikt Haas Date: Mon, 29 Jan 2024 13:50:13 +0100 Subject: [PATCH] configure healthcheck --- PythonAPI/util/ping.py | 0 Util/Docker/Release.Dockerfile | 3 +++ 2 files changed, 3 insertions(+) mode change 100644 => 100755 PythonAPI/util/ping.py diff --git a/PythonAPI/util/ping.py b/PythonAPI/util/ping.py old mode 100644 new mode 100755 diff --git a/Util/Docker/Release.Dockerfile b/Util/Docker/Release.Dockerfile index 46b7d99ca7e..0723f184973 100644 --- a/Util/Docker/Release.Dockerfile +++ b/Util/Docker/Release.Dockerfile @@ -23,6 +23,9 @@ RUN echo "export PYTHONPATH=\$PYTHONPATH:$CARLA_PYAPI_PATH/carla/dist/$(ls $CARL USER carla WORKDIR /home/carla +HEALTHCHECK --interval=5s --timeout=5s --start-period=10s --retries=3 \ + CMD python3 ./PythonAPI/util/ping.py + # you can also run CARLA in offscreen mode with -RenderOffScreen # CMD /bin/bash CarlaUE4.sh -RenderOffScreen CMD /bin/bash CarlaUE4.sh