Refine the docker profile 23/91423/1
authorBin Yang <bin.yang@windriver.com>
Mon, 15 Jul 2019 07:20:44 +0000 (07:20 +0000)
committerBin Yang <bin.yang@windriver.com>
Mon, 15 Jul 2019 07:48:16 +0000 (07:48 +0000)
Change-Id: I83779d2d566ff8b120fb712924e6d88e771cafa6
Issue-ID: MULTICLOUD-704
Signed-off-by: Bin Yang <bin.yang@windriver.com>
pom.xml
windriver/pom.xml

diff --git a/pom.xml b/pom.xml
index ac2dcb0..78ac07b 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -35,6 +35,8 @@
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
         <nexusproxy>https://nexus.onap.org</nexusproxy>
+        <container-public-registry>nexus3.onap.org:10001</container-public-registry>
+        <container-staging-registry>nexus3.onap.org:10003</container-staging-registry>
     </properties>
 
     <modules>
index 9aa3179..1eb5a1c 100644 (file)
             <build>
                 <plugins>
                     <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-resources-plugin</artifactId>
+                        <version>3.1.0</version>
                         <executions>
                             <execution>
                                 <id>copy-resources</id>
                                         <exec executable="docker">
                                            <arg value="build"/>
                                            <arg value="-t"/>
-                                           <arg value="nexus3.onap.org:10003/onap/multicloud/openstack-windriver:${project.version}"/>
+                                           <arg value="${container-staging-registry}/onap/multicloud/openstack-windriver:${project.version}"/>
                                            <arg value="docker_target"/>
                                         </exec>
                                         <exec executable="docker">
                                             <arg value="tag"/>
-                                            <arg value="nexus3.onap.org:10003/onap/multicloud/openstack-windriver:${project.version}"/>
-                                            <arg value="nexus3.onap.org:10003/onap/multicloud/openstack-windriver:latest"/>
+                                            <arg value="${container-staging-registry}/onap/multicloud/openstack-windriver:${project.version}"/>
+                                            <arg value="${container-staging-registry}/onap/multicloud/openstack-windriver:latest"/>
                                         </exec>
                                         <exec executable="docker">
                                             <arg value="push"/>
-                                            <arg value="nexus3.onap.org:10003/onap/multicloud/openstack-windriver:${project.version}"/>
+                                            <arg value="${container-staging-registry}/onap/multicloud/openstack-windriver:${project.version}"/>
                                         </exec>
                                         <exec executable="docker">
                                             <arg value="push"/>
-                                            <arg value="nexus3.onap.org:10003/onap/multicloud/openstack-windriver:latest"/>
+                                            <arg value="${container-staging-registry}/onap/multicloud/openstack-windriver:latest"/>
                                         </exec>
                                     </target>
                                 </configuration>