Let build module vid-ext-services-simulator without docker 16/90816/1
authorIttay Stern <ittay.stern@att.com>
Wed, 3 Jul 2019 02:30:04 +0000 (05:30 +0300)
committerIttay Stern <ittay.stern@att.com>
Wed, 3 Jul 2019 02:30:04 +0000 (05:30 +0300)
Issue-ID: VID-507

Change-Id: Iac58cb56c3e121302e93c5720daa11fb264529c6
Signed-off-by: Ittay Stern <ittay.stern@att.com>
vid-ext-services-simulator/pom.xml

index d7a2436..56404f8 100644 (file)
 
         <!-- "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>
             </properties>
         </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 -->
                 <version>0.27.2</version>
 
                 <configuration>
+                    <skip>${skipDockerBuild}</skip>
                     <images>
                         <image>
                             <name>onap/vid-simulator</name>
                 <executions>
                     <execution>
                         <id>generate-image</id>
-                        <phase>package</phase>
+                        <phase>${dockerBuildPhase}</phase>
                         <goals>
                             <goal>build</goal>
                         </goals>
 
                     <execution>
                         <id>push-image</id>
-                        <phase>deploy</phase>
+                        <phase>${dockerPushPhase}</phase>
                         <goals>
                             <goal>build</goal>
                             <goal>push</goal>