diff options
author | Rishi.Chail <rishi.chail@est.tech> | 2021-05-04 16:34:09 +0100 |
---|---|---|
committer | Rishi.Chail <rishi.chail@est.tech> | 2021-05-06 15:00:20 +0100 |
commit | 26af9368115f5f7296aa4123f38b4e1c81a40b8d (patch) | |
tree | d162f097439c7419534a0b9d0bf51607ffd191a2 /pom.xml | |
parent | 2bd625b905936425802d02f3bc067d5f56412188 (diff) |
Provide docker compose for temporal service
Added docker image (200Mb)
Added docker compose to start with timescale db
Issue-ID: CPS-359
Signed-off-by: Rishi.Chail <rishi.chail@est.tech>
Change-Id: I47120edcea78730405086eca393fbc08a41e0745
Diffstat (limited to 'pom.xml')
-rwxr-xr-x[-rw-r--r--] | pom.xml | 63 |
1 files changed, 63 insertions, 0 deletions
@@ -2,6 +2,7 @@ <!-- ============LICENSE_START======================================================= Copyright (c) 2021 Bell Canada. + Modifications Copyright (C) 2021 Nordix Foundation. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -35,10 +36,17 @@ <description>CPS Temporal Service</description> <properties> + <app>org.onap.cps.temporal.Application</app> + <docker.repository.pull>nexus3.onap.org:10001/</docker.repository.pull> + <docker.repository.push>nexus3.onap.org:10003/</docker.repository.push> + <image.base>${docker.repository.pull}onap/integration-java11:8.0.0</image.base> + <image.name>${docker.repository.push}onap/cps-temporal</image.name> <java.version>11</java.version> <minimum-coverage>0.8</minimum-coverage> <cps.checkstyle.version>1.0.1</cps.checkstyle.version> <cps.spotbugs.version>1.0.1</cps.spotbugs.version> + <jib-maven-plugin.version>3.0.0</jib-maven-plugin.version> + <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> <oparent.version>3.2.0</oparent.version> <spotbugs-maven-plugin.version>4.1.3</spotbugs-maven-plugin.version> <spotbugs.slf4j.version>1.8.0-beta4</spotbugs.slf4j.version> @@ -346,5 +354,60 @@ </executions> </plugin> </plugins> + + <pluginManagement> + <plugins> + <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> + <tags> + <tag>latest</tag> + </tags> + <image>${image.name}:${project.version}-${maven.build.timestamp}</image> + </to> + </configuration> + <executions> + <execution> + <phase>package</phase> + <id>build</id> + <goals> + <goal>dockerBuild</goal> + </goals> + </execution> + <execution> + <phase>deploy</phase> + <id>buildAndPush</id> + <goals> + <goal>build</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </pluginManagement> </build> + + <profiles> + <profile> + <id>cps-temporal-docker</id> + <build> + <plugins> + <plugin> + <groupId>com.google.cloud.tools</groupId> + <artifactId>jib-maven-plugin</artifactId> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> |