Fix 'Unable to create docker image locally' 44/109544/4
authorAleksandra Maciaga <aleksandra.maciaga@nokia.com>
Thu, 25 Jun 2020 10:39:43 +0000 (12:39 +0200)
committerAleksandra Maciaga <aleksandra.maciaga@nokia.com>
Thu, 25 Jun 2020 12:08:42 +0000 (14:08 +0200)
Signed-off-by: Aleksandra Maciaga <aleksandra.maciaga@nokia.com>
Issue-ID: VNFSDK-607
Change-Id: I5fe39655711ef5e6e77aa2b15503759e95a365f6

README.md
vnfmarket-be/deployment/docker/docker-refrepo/pom.xml

index bca93df..efe41b8 100644 (file)
--- a/README.md
+++ b/README.md
@@ -38,5 +38,5 @@ A platform to automate and manage different kind of VNF test cases for given VNF
 Docker image building
 =====================
 ```
-    mvn clean package -Pdocker
+    mvn clean package -Pdocker -Dpush.docker.image=false
 ```
index c181243..23274d4 100644 (file)
@@ -35,6 +35,7 @@
   <properties>
         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
         <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
+        <push.docker.image>true</push.docker.image>
         <docker.skip>false</docker.skip>
         <docker.noCache>true</docker.noCache>
         <docker.skip.build>false</docker.skip.build>
@@ -88,7 +89,7 @@
                                 <configuration>
                                     <image>onap/vnfsdk/refrepo</image>
                                     <newName>${docker.push.registry}/onap/vnfsdk/refrepo:${project.version}-${maven.build.timestamp}</newName>
-                                    <pushImage>true</pushImage>
+                                    <pushImage>${push.docker.image}</pushImage>
                                     <skipDockerTag>false</skipDockerTag>
                                 </configuration>
                             </execution>
                                 <configuration>
                                     <image>onap/vnfsdk/refrepo</image>
                                     <newName>${docker.push.registry}/onap/vnfsdk/refrepo:latest</newName>
-                                    <pushImage>true</pushImage>
+                                    <pushImage>${push.docker.image}</pushImage>
                                     <skipDockerTag>false</skipDockerTag>
                                 </configuration>
                             </execution>