aboutsummaryrefslogtreecommitdiffstats
path: root/vid-ext-services-simulator/pom.xml
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2019-07-03 05:30:04 +0300
committerIttay Stern <ittay.stern@att.com>2019-07-03 05:30:04 +0300
commitb460da47f0aebe67bed1234711b8bbf4889d1354 (patch)
tree1b33955b1dd841b990c3787691af0f9190330307 /vid-ext-services-simulator/pom.xml
parent94601aece8c9f5b687c6da86be9c6e8c148cf7ba (diff)
Let build module vid-ext-services-simulator without docker
Issue-ID: VID-507 Change-Id: Iac58cb56c3e121302e93c5720daa11fb264529c6 Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-ext-services-simulator/pom.xml')
-rw-r--r--vid-ext-services-simulator/pom.xml19
1 files changed, 17 insertions, 2 deletions
diff --git a/vid-ext-services-simulator/pom.xml b/vid-ext-services-simulator/pom.xml
index d7a2436a6..56404f876 100644
--- a/vid-ext-services-simulator/pom.xml
+++ b/vid-ext-services-simulator/pom.xml
@@ -28,6 +28,11 @@
<!-- "none" will skip cobertura by default; enable the profile "cobertura" to enable it -->
<coberturaBuildPhase>none</coberturaBuildPhase>
+
+ <!-- will build docker-maven-plugin by default; enable the profile "no-docker" to disable it -->
+ <skipDockerBuild>false</skipDockerBuild>
+ <dockerBuildPhase>package</dockerBuildPhase>
+ <dockerPushPhase>deploy</dockerPushPhase>
</properties>
<profiles>
@@ -85,6 +90,15 @@
</profile>
<profile>
+ <id>no-docker</id>
+ <properties>
+ <skipDockerBuild>true</skipDockerBuild>
+ <dockerBuildPhase>none</dockerBuildPhase>
+ <dockerPushPhase>none</dockerPushPhase>
+ </properties>
+ </profile>
+
+ <profile>
<id>docker-proxy</id>
<!-- activate profile if environment variable `http_proxy` is set -->
<activation>
@@ -177,6 +191,7 @@
<version>0.27.2</version>
<configuration>
+ <skip>${skipDockerBuild}</skip>
<images>
<image>
<name>onap/vid-simulator</name>
@@ -195,7 +210,7 @@
<executions>
<execution>
<id>generate-image</id>
- <phase>package</phase>
+ <phase>${dockerBuildPhase}</phase>
<goals>
<goal>build</goal>
</goals>
@@ -203,7 +218,7 @@
<execution>
<id>push-image</id>
- <phase>deploy</phase>
+ <phase>${dockerPushPhase}</phase>
<goals>
<goal>build</goal>
<goal>push</goal>