summaryrefslogtreecommitdiffstats
path: root/cps-application/pom.xml
diff options
context:
space:
mode:
authorClaudio D. Gasparini <claudio.gasparini@pantheon.tech>2021-02-04 14:57:39 +0100
committerClaudio D. Gasparini <claudio.gasparini@pantheon.tech>2021-02-09 10:56:52 +0100
commit4ec225ce071d68c02cbc2388847d416c268bfa40 (patch)
tree363eeeeaf7f40d5596c66e1687c3c62c09956650 /cps-application/pom.xml
parente5cf0fcacb7239cdd4a041769007715e1b8ffd9b (diff)
Image name
- cps-service - cps-nf-proxy - cps-and-nf-proxy Issue-ID: CPS-175 Signed-off-by: Claudio D. Gasparini <claudio.gasparini@pantheon.tech> Change-Id: I579d3646f54adebc131196acbe74e24299b4ead6
Diffstat (limited to 'cps-application/pom.xml')
-rw-r--r--cps-application/pom.xml24
1 files changed, 20 insertions, 4 deletions
diff --git a/cps-application/pom.xml b/cps-application/pom.xml
index 92cff35fec..e5b46f6a4f 100644
--- a/cps-application/pom.xml
+++ b/cps-application/pom.xml
@@ -33,7 +33,12 @@
<artifactId>cps-application</artifactId>
<properties>
+ <app>org.onap.cps.Application</app>
+ <image.name>cps-service</image.name>
+ <image.version>${project.version}</image.version>
+ <jib-maven-plugin.version>2.6.0</jib-maven-plugin.version>
<minimum-coverage>0.0</minimum-coverage>
+ <nexus.repository>nexus3.onap.org:10003/onap/</nexus.repository>
</properties>
<dependencies>
@@ -63,6 +68,19 @@
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
+ <version>${jib-maven-plugin.version}</version>
+ <configuration>
+ <container>
+ <mainClass>${app}</mainClass>
+ <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
+ </container>
+ <from>
+ <image>${base.image}</image>
+ </from>
+ <to>
+ <image>${nexus.repository}${image.name}:${image.version}</image>
+ </to>
+ </configuration>
<executions>
<execution>
<phase>package</phase>
@@ -113,8 +131,7 @@
</activation>
<properties>
- <app>org.onap.cps.Application</app>
- <repository.name>${docker.pushRegistry}onap/cps-nf-proxy</repository.name>
+ <image.name>cps-nf-proxy</image.name>
</properties>
<dependencies>
@@ -131,8 +148,7 @@
</activation>
<properties>
- <app>org.onap.cps.Application</app>
- <repository.name>${docker.pushRegistry}onap/cps-and-nf-proxy</repository.name><!-- better naming? -->
+ <image.name>cps-and-nf-proxy</image.name>
</properties>
<dependencies>