summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2018-04-23 10:04:14 -0400
committerLusheng Ji <lji@research.att.com>2018-04-23 10:04:20 -0400
commit96bdb4ac637edb20535cda33cf97b68b80232aac (patch)
treef95007449b1407b8efcf328df210d877caffaa59
parentd5f2aa475956fefeec4af6b4aea9b08127649a29 (diff)
Add docker script healthcheck for snmptrap
Issue-ID: DCAEGEN2-465 Change-Id: I76065b2407aef01d8d5d2c25ad2fb288aa21e986 Signed-off-by: Lusheng Ji <lji@research.att.com>
-rw-r--r--heat/docker-compose-4.yaml6
1 files changed, 4 insertions, 2 deletions
diff --git a/heat/docker-compose-4.yaml b/heat/docker-compose-4.yaml
index 0bfa0e5..c8c36ca 100644
--- a/heat/docker-compose-4.yaml
+++ b/heat/docker-compose-4.yaml
@@ -54,6 +54,8 @@ services:
ports:
- "162:162/udp"
labels:
- - SERVICE_NAME=static-dcaegen2-collectors-snmptrap
- - SERVICE_CHECK_INITIAL_STATUS=passing
+ - "SERVICE_NAME=static-dcaegen2-collectors-snmptrap"
+ - "SERVICE_CHECK_DOCKER_SCRIPT=/opt/app/snmptrap/bin/healthcheck.sh"
+ - "SERVICE_CHECK_INTERVAL=15s"
+ - "SERVICE_CHECK_INITIAL_STATUS=passing"