aboutsummaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorMichael Hwang <mhwang@research.att.com>2017-10-17 12:03:49 -0400
committerMichael Hwang <mhwang@research.att.com>2017-10-17 12:05:58 -0400
commit3be31336e2324772c13856da50f4ffd610f4e3cc (patch)
tree58b07d945ae84498d2adf677102e5ccce6d2839d /pom.xml
parent366286371bfa76884b163e84928c31d6a4776439 (diff)
Add health check script
Change-Id: I0e51de51b4c205b60e5dc8286be8bc4217e5d5db Issue-Id: DCAEGEN2-142 Signed-off-by: Michael Hwang <mhwang@research.att.com>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml7
1 files changed, 6 insertions, 1 deletions
diff --git a/pom.xml b/pom.xml
index 0157788..42426e8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -196,7 +196,7 @@
<baseImage>java:8-jre</baseImage>
<!-- NOTE: Couldn't figure out how to package the jar to be named: ${project.build.finalName}. This might be
because of the clojure maven plugin -->
- <entryPoint>["java", "-jar", "/opt/servicechange-handler.jar", "prod", "http://consul:8500/v1/kv/service-change-handler?raw=true"]</entryPoint>
+ <cmd>["java", "-jar", "/opt/servicechange-handler.jar", "prod", "http://consul:8500/v1/kv/service-change-handler?raw=true"]</cmd>
<!-- copy the service's jar file from target into the root directory of the image -->
<resources>
<resource>
@@ -204,6 +204,11 @@
<directory>${project.build.directory}</directory>
<include>servicechange-handler.jar</include>
</resource>
+ <resource>
+ <targetPath>/opt</targetPath>
+ <directory>${project.basedir}/resources</directory>
+ <include>health.sh</include>
+ </resource>
</resources>
<serverId>${onap.nexus.dockerregistry.daily}</serverId>
</configuration>