From 7b82b5302f6319f7192c96aebdaaf16bfa1024d7 Mon Sep 17 00:00:00 2001 From: Michael Hwang Date: Tue, 16 Jul 2019 10:31:51 -0400 Subject: Change base image to alpine based Change-Id: If201abe897c49f9dda93ccad8f57f0679604dcc7 Issue-ID: DCAEGEN2-1565 Signed-off-by: Michael Hwang --- CHANGELOG.md | 5 +++-- pom.xml | 9 +++++---- version.properties | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 52ac665..1bc6986 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). The version in the brackets represents the version of DCAE inventory and not the ONAP DCAE version. -## [Dev] +## [3.4.0] -* Add non-root user in Docker image so that the inventory service can be run in non-privileged mode for security reasons +* Add non-root user in Docker image so that the inventory service can be run in non-privileged mode for security reasons DCAEGEN2-1554 +* Change base image to alpine based DCAEGEN2-1565 ## [3.0.1] diff --git a/pom.xml b/pom.xml index 282659d..11e05d2 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ @@ -342,10 +342,11 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property. 1.0.0 ${onap.nexus.dockerregistry.daily}/onap/${project.groupId}.${project.artifactId} - openjdk:8-jre + openjdk:8-jre-alpine inventory - adduser --system --group inventory + addgroup -S inventory + adduser -S -G inventory inventory ["java", "-jar", "/opt/${project.build.finalName}.jar", "server"] diff --git a/version.properties b/version.properties index 92866fb..1ba9fb5 100644 --- a/version.properties +++ b/version.properties @@ -2,7 +2,7 @@ # Note that these variables cannot be structured (e.g. : version.release or version.snapshot etc... ) # because they are used in Jenkins, whose plug-in doesn't support major=3 -minor=3 +minor=4 patch=0 base_version=${major}.${minor}.${patch} # Release must be completed with git revision # in Jenkins -- cgit 1.2.3-korg