diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2021-01-27 17:37:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-01-27 17:37:00 +0000 |
commit | b4164f104d61bcaff8d84d65b8a9fffcd3280dce (patch) | |
tree | 2b4853225a6d7e99c943cbd7561e3431ada19913 /cps-nf-proxy-rest | |
parent | a54fd8a169e8e6ef74bdc06be78bbcd70d5f97b4 (diff) | |
parent | 1e5bd9498bd22e1bda74f0382bca3186e82ce811 (diff) |
Merge "Docker image building and docker-compose for cps-nf-proxy"
Diffstat (limited to 'cps-nf-proxy-rest')
-rwxr-xr-x | cps-nf-proxy-rest/pom.xml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/cps-nf-proxy-rest/pom.xml b/cps-nf-proxy-rest/pom.xml index 23adb93355..7b56014353 100755 --- a/cps-nf-proxy-rest/pom.xml +++ b/cps-nf-proxy-rest/pom.xml @@ -12,6 +12,8 @@ <artifactId>cps-nf-proxy-rest</artifactId> <properties> + <app>org.onap.cps.nfproxy.Application</app> + <repository.name>nexus3.onap.org:10001/onap/cps-nf-proxy</repository.name> <minimum-coverage>0.44</minimum-coverage> </properties> @@ -116,4 +118,38 @@ </plugin> </plugins> </build> + + <profiles> + <profile> + <id>docker</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <build> + <plugins> + <plugin> + <groupId>com.google.cloud.tools</groupId> + <artifactId>jib-maven-plugin</artifactId> + <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> + </build> + </profile> + </profiles> + </project> |