From: tierno Date: Fri, 13 Sep 2019 13:19:48 +0000 (+0000) Subject: LCM Dockerfile: run LCM as a module. Fix healthcheck timeouts X-Git-Tag: v7.0.0rc1~54^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=9f8b53b97eb50a6bc85adf1ee5c442f6d7bf6837;p=osm%2Fdevops.git LCM Dockerfile: run LCM as a module. Fix healthcheck timeouts Change-Id: I13da267f5cbaf4201d6a753a76d0ea05560f3dd3 Signed-off-by: tierno --- diff --git a/docker/LCM/Dockerfile b/docker/LCM/Dockerfile index 72d6a863..5e81a482 100644 --- a/docker/LCM/Dockerfile +++ b/docker/LCM/Dockerfile @@ -115,9 +115,10 @@ ENV OSMLCM_MESSAGE_DRIVER kafka ENV OSMLCM_MESSAGE_HOST kafka ENV OSMLCM_MESSAGE_PORT 9092 -HEALTHCHECK --interval=30s --timeout=140s --retries=1 \ - CMD python3 /usr/lib/python3/dist-packages/osm_lcm/lcm.py --health-check || exit 1 +HEALTHCHECK --start-period=120s --interval=30s --timeout=30s --retries=1 \ + CMD python3 -m osm_lcm.lcm --health-check || exit 1 # Run app.py when the container launches -CMD ["python3", "/usr/lib/python3/dist-packages/osm_lcm/lcm.py"] +CMD python3 -m osm_lcm.lcm +