Skip to content
Snippets Groups Projects
Commit 80fa8fa8 authored by diazb's avatar diazb
Browse files

Adds healthcheck to LWUI Dockerfile


Change-Id: I73cb2379a8fad6b759c0cba4c4b4703c60a1e087
Signed-off-by: default avatarBenjamin Diaz <bdiaz@whitestack.com>
parent 4d105e38
No related branches found
No related tags found
No related merge requests found
......@@ -35,4 +35,7 @@ RUN python manage.py collectstatic --noinput
EXPOSE 80
HEALTHCHECK --start-period=130s --interval=10s --timeout=5s --retries=12 \
CMD curl --silent --fail localhost:80 || exit 1
CMD ["supervisord", "-n"]
#!/bin/sh
WAIT_TIME=340 # LCM healthcheck needs 2x(30+140) senconds
SERVICES_WITH_HEALTH="nbi ro zookeeper lcm mon"
SERVICES_WITH_HEALTH="nbi ro zookeeper lcm mon light-ui"
NUM_SERVICES_WITH_HEALTH=$(echo $SERVICES_WITH_HEALTH | wc -w)
WAIT_FINAL=30
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment