Skip to content
Snippets Groups Projects
Commit 3906af13 authored by madavi's avatar madavi Committed by Gerrit Code Review
Browse files

Merge "Adds healthcheck to LWUI Dockerfile"

parents 85c04585 80fa8fa8
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