summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Hwang <mhwang@research.att.com>2019-07-16 14:02:44 -0400
committerMichael Hwang <mhwang@research.att.com>2019-07-16 14:03:29 -0400
commit8762e960c9df97fe93f0a996a5e8870e6059c7f8 (patch)
treeb3a8251d648f27948665d026abb1e9c642755157
parent80a55a40619fc29eb9a0c9f9ba9f110118701b42 (diff)
Change base image to alpine based
Change-Id: I61f94b010c0f7487e22f81ce56772d32204f2940 Issue-ID: DCAEGEN2-1566 Signed-off-by: Michael Hwang <mhwang@research.att.com>
-rw-r--r--ChangeLog.md1
-rw-r--r--pom.xml7
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog.md b/ChangeLog.md
index a30eb8a..71de2fc 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## []
* Add non-root user in Docker image so that the inventory service can be run in non-privileged mode for security reasons DCAEGEN2-1555
+* Change base image to alpine based DCAEGEN2-1566
## [1.1.3]
diff --git a/pom.xml b/pom.xml
index ab0a2e3..82975c3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
================================================================================
-Copyright (c) 2016-2018 AT&T Intellectual Property. All rights reserved.
+Copyright (c) 2016-2019 AT&T Intellectual Property. All rights reserved.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -221,10 +221,11 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
<imageTag>${project.version}</imageTag>
<imageTag>latest</imageTag>
</imageTags>
- <baseImage>java:8-jre</baseImage>
+ <baseImage>openjdk:8-jre-alpine</baseImage>
<user>sch</user>
<runs>
- <run>adduser --system --group sch</run>
+ <run>addgroup -S sch</run>
+ <run>adduser -S -G sch 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 -->