remove docker binding from mvn 04/92304/1
authorVijay Venkatesh Kumar <vv770d@att.com>
Sun, 21 Jul 2019 04:56:16 +0000 (04:56 +0000)
committerVijay Venkatesh Kumar <vv770d@att.com>
Sun, 21 Jul 2019 04:56:22 +0000 (04:56 +0000)
Change-Id: Ia0a665cb9d4f4dd75ac674d5ff1ff12044d52d45
Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
Issue-ID: DCAEGEN2-1578

pom.xml

diff --git a/pom.xml b/pom.xml
index 602bece..14f8dff 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                                <configuration>
                                        <serverId>${onap.nexus.dockerregistry.daily}</serverId>
 
-                                       <imageName>${docker.image.name}</imageName>
+                                       <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
                                        <imageTags>
-                                               <tag>latest</tag>
+                                                <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag>
+                                                <imageTag>${project.version}</imageTag>
+                                                <imageTag>latest</imageTag>
                                        </imageTags>
                                        <baseImage>java:openjdk-8</baseImage>
                                        <user>sonhms</user>
                                        </resources>
                                        <runs>
                                                <!-- Maven is loosing file permissions during artifacts copy -->
-                                           <run>adduser --disabled-password sonhms </run>
+                                               <run>adduser --disabled-password sonhms </run>
                                                <run>chmod +x /bin/entrypoint.sh</run>
                                                <run>mv /bin/*.jar /bin/application.jar</run>
                                                <run>chmod -R 777 /bin</run>
                                        </exposes>
                                        <entryPoint>/bin/entrypoint.sh</entryPoint>
                                </configuration>
+<!--
                                <executions>
                                        <execution>
                                                <id>build-image</id>
                                                </configuration>
                                        </execution>
                                </executions>
+-->
                        </plugin>
                </plugins>
        </build>