Change base image to alpine based 58/91558/1
authorMichael Hwang <mhwang@research.att.com>
Tue, 16 Jul 2019 18:02:44 +0000 (14:02 -0400)
committerMichael Hwang <mhwang@research.att.com>
Tue, 16 Jul 2019 18:03:29 +0000 (14:03 -0400)
Change-Id: I61f94b010c0f7487e22f81ce56772d32204f2940
Issue-ID: DCAEGEN2-1566
Signed-off-by: Michael Hwang <mhwang@research.att.com>
ChangeLog.md
pom.xml

index a30eb8a..71de2fc 100644 (file)
@@ -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 (file)
--- 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 -->