diff options
author | 2019-02-22 15:31:10 +0000 | |
---|---|---|
committer | 2019-02-22 15:31:10 +0000 | |
commit | 2d336f92193423a1c9a542ca7dc0819fb5b5f3a9 (patch) | |
tree | a6e4c1e7487385857b633a01c3cb37b552f6ed67 /pom.xml | |
parent | 5e40fbfdf79be48a5ff19393f65c0e09309e868a (diff) |
Update docker image
Add timestamp to Docker image tag
Change container to run as non root user
Issue-ID: DCAEGEN2-1250
Change-Id: Idb23167d5f5146cbcacf2e2d72e5502014b5fe78
Signed-off-by: dfarrelly <david.farrelly@est.tech>
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -20,13 +20,13 @@ --> <project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.onap.dcaegen2.services</groupId> <artifactId>pm-mapper</artifactId> - <version>1.0-SNAPSHOT</version> + <version>1.0.0-SNAPSHOT</version> <parent> <groupId>org.onap.oparent</groupId> @@ -62,6 +62,8 @@ <surefire.version>2.22.0</surefire.version> <!-- Plugin Settings --> <image-name>${docker.push.registry}/onap/${project.groupId}.${project.artifactId}</image-name> + <maven.build.timestamp.format>yyyymmdd'T'hhmmss'Z'</maven.build.timestamp.format> + <timestamp>${maven.build.timestamp}</timestamp> <sonar.language>java</sonar.language> <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath> @@ -194,7 +196,7 @@ <version>${dockerfile.version}</version> <configuration> <repository>${image-name}</repository> - <tag>${project.version}</tag> + <tag>${project.version}-${timestamp}</tag> <dockerfile>${project.build.outputDirectory}/Dockerfile</dockerfile> <buildArgs> <JAR>${project.build.finalName}-jar-with-dependencies.jar</JAR> @@ -228,7 +230,7 @@ <shadedClassifierName>jar-with-dependencies</shadedClassifierName> <transformers> <transformer - implementation="${shade.transformer}"> + implementation="${shade.transformer}"> <mainClass>${shade.main}</mainClass> </transformer> </transformers> |