Remove the mapping of docker executions 29/13229/1
authorMichael Hwang <mhwang@research.att.com>
Mon, 18 Sep 2017 21:09:35 +0000 (17:09 -0400)
committerMichael Hwang <mhwang@research.att.com>
Mon, 18 Sep 2017 21:10:39 +0000 (17:10 -0400)
The corresponding jjb has been changed to explicitly call the docker
execution operations.

Change-Id: I186b104c8ee65837f20978a5aefdd467bc624d31
Issue-Id: DCAEGEN2-60
Signed-off-by: Michael Hwang <mhwang@research.att.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index b760888..95ad30d 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                 <artifactId>docker-maven-plugin</artifactId>
                 <version>0.4.11</version>
                 <configuration>
-                    <!-- LOOK! Need to fill in registry here -->
-                    <imageName>${project.artifactId}</imageName>
+                    <imageName>${onap.nexus.dockerregistry.daily}/onap/${project.groupId}.${project.artifactId}</imageName>
                     <baseImage>openjdk:8-jre</baseImage>
                     <entryPoint>["java", "-jar", "/opt/${project.build.finalName}.jar", "server"]</entryPoint>
                     <resources>
                     <exposes>
                         <expose>8080</expose>
                     </exposes>
+                    <imageTags>
+                        <imageTag>${project.version}-${maven.build.timestamp}</imageTag>
+                        <imageTag>latest</imageTag>
+                    </imageTags>
                 </configuration>
-                <executions>
-                    <execution>
-                        <id>build-image</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>build</goal>
-                        </goals>
-                    </execution>
-                    <execution>
-                        <id>tag-image-timestamped-version</id>
-                        <phase>deploy</phase>
-                        <goals>
-                            <goal>tag</goal>
-                        </goals>
-                        <configuration>
-                            <image>${project.artifactId}</image>
-                            <newName>${onap.nexus.dockerregistry.daily}/onap/${project.groupId}.${project.artifactId}:${project.version}-${maven.build.timestamp}</newName>
-                            <pushImage>true</pushImage>
-                        </configuration>
-                    </execution>
-                    <execution>
-                        <id>tag-image-latest-version</id>
-                        <phase>deploy</phase>
-                        <goals>
-                            <goal>tag</goal>
-                        </goals>
-                        <configuration>
-                            <image>${project.artifactId}</image>
-                            <newName>${onap.nexus.dockerregistry.daily}/onap/${project.groupId}.${project.artifactId}:LATEST</newName>
-                            <pushImage>true</pushImage>
-                        </configuration>
-                    </execution>
-                </executions>
             </plugin>
 
             <plugin>