summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksandra Maciaga <aleksandra.maciaga@nokia.com>2020-06-25 12:39:43 +0200
committerAleksandra Maciaga <aleksandra.maciaga@nokia.com>2020-06-25 14:08:42 +0200
commitfed3c11f94f282c915b492d196907ee1d5d586b6 (patch)
tree1d669dea00de741d8c7a5711cc515bb0b64bde23
parent5d0772d1fe1ec0e704008f668456491b897e4414 (diff)
Fix 'Unable to create docker image locally'
Signed-off-by: Aleksandra Maciaga <aleksandra.maciaga@nokia.com> Issue-ID: VNFSDK-607 Change-Id: I5fe39655711ef5e6e77aa2b15503759e95a365f6
-rw-r--r--README.md2
-rw-r--r--vnfmarket-be/deployment/docker/docker-refrepo/pom.xml5
2 files changed, 4 insertions, 3 deletions
diff --git a/README.md b/README.md
index bca93df7..efe41b8c 100644
--- 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
```
diff --git a/vnfmarket-be/deployment/docker/docker-refrepo/pom.xml b/vnfmarket-be/deployment/docker/docker-refrepo/pom.xml
index c181243c..23274d4d 100644
--- a/vnfmarket-be/deployment/docker/docker-refrepo/pom.xml
+++ b/vnfmarket-be/deployment/docker/docker-refrepo/pom.xml
@@ -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>
@@ -101,7 +102,7 @@
<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>