aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>