summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorMichael Hwang <mhwang@research.att.com>2019-07-16 10:15:37 -0400
committerMichael Hwang <mhwang@research.att.com>2019-07-16 10:16:20 -0400
commit80a55a40619fc29eb9a0c9f9ba9f110118701b42 (patch)
tree499f0f32dc84ebadf19e60965c9b1a07c28f795d /pom.xml
parent33d41c6e4e758834c4a61c1511b933b8ace9b10e (diff)
Add non-root user to Docker image
Change-Id: Icda4d013f6bd33e7ad1202ac036e599766073acf Issue-ID: DCAEGEN2-1555 Signed-off-by: Michael Hwang <mhwang@research.att.com>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index bc6c00a..ab0a2e3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -222,6 +222,10 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
<imageTag>latest</imageTag>
</imageTags>
<baseImage>java:8-jre</baseImage>
+ <user>sch</user>
+ <runs>
+ <run>adduser --system --group sch</run>
+ </runs>
<!-- 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 -->
<cmd>["java", "-jar", "/opt/servicechange-handler.jar", "prod", "http://consul:8500/v1/kv/service-change-handler?raw=true"]</cmd>