summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2019-07-01 15:27:13 +0300
committerIttay Stern <ittay.stern@att.com>2019-07-01 17:05:17 +0300
commit6946c31e6ed8180295e60797d9af0845d6697efd (patch)
tree274598ce99f0303674171b5e977349b53fa03511
parent3e884e186983f1c5a84da07ed82e5c8c1caf55a2 (diff)
Build module vid-ext-services-simulator
Issue-ID: VID-507 Change-Id: I8f44a4c9b1502e9803dcafe9bce4c59d392c0dfd Signed-off-by: Ittay Stern <ittay.stern@att.com>
-rw-r--r--pom.xml1
-rw-r--r--vid-ext-services-simulator/pom.xml16
2 files changed, 15 insertions, 2 deletions
diff --git a/pom.xml b/pom.xml
index b91431abc..ef7815b37 100644
--- a/pom.xml
+++ b/pom.xml
@@ -26,6 +26,7 @@
<module>vid-app-common</module>
<module>vid-webpack-master</module>
<module>epsdk-app-onap</module>
+ <module>vid-ext-services-simulator</module>
</modules>
<repositories>
diff --git a/vid-ext-services-simulator/pom.xml b/vid-ext-services-simulator/pom.xml
index d7a2436a6..dd962db46 100644
--- a/vid-ext-services-simulator/pom.xml
+++ b/vid-ext-services-simulator/pom.xml
@@ -28,6 +28,10 @@
<!-- "none" will skip cobertura by default; enable the profile "cobertura" to enable it -->
<coberturaBuildPhase>none</coberturaBuildPhase>
+
+ <!-- will skip docker-maven-plugin by default; enable the profile "docker" to enable it -->
+ <dockerBuildPhase>none</dockerBuildPhase>
+ <dockerPushPhase>none</dockerPushPhase>
</properties>
<profiles>
@@ -85,6 +89,14 @@
</profile>
<profile>
+ <id>docker</id>
+ <properties>
+ <dockerBuildPhase>package</dockerBuildPhase>
+ <dockerPushPhase>deploy</dockerPushPhase>
+ </properties>
+ </profile>
+
+ <profile>
<id>docker-proxy</id>
<!-- activate profile if environment variable `http_proxy` is set -->
<activation>
@@ -195,7 +207,7 @@
<executions>
<execution>
<id>generate-image</id>
- <phase>package</phase>
+ <phase>${dockerBuildPhase}</phase>
<goals>
<goal>build</goal>
</goals>
@@ -203,7 +215,7 @@
<execution>
<id>push-image</id>
- <phase>deploy</phase>
+ <phase>${dockerPushPhase}</phase>
<goals>
<goal>build</goal>
<goal>push</goal>