aboutsummaryrefslogtreecommitdiffstats
path: root/cps-nf-proxy-rest
diff options
context:
space:
mode:
authorRuslan Kashapov <ruslan.kashapov@pantheon.tech>2021-01-22 12:53:01 +0200
committerRuslan Kashapov <ruslan.kashapov@pantheon.tech>2021-01-26 14:01:53 +0200
commit1e5bd9498bd22e1bda74f0382bca3186e82ce811 (patch)
tree99d1dd2171c2dc76c655805a640de8d136b98bb2 /cps-nf-proxy-rest
parent9f52f60a2e70f2344c671af28e62fe2315ee8e02 (diff)
Docker image building and docker-compose for cps-nf-proxy
Issue-ID: CPS-184 Change-Id: I364a7f1ff41ca491f522038269d95d91b76da313 Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Diffstat (limited to 'cps-nf-proxy-rest')
-rwxr-xr-xcps-nf-proxy-rest/pom.xml36
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>