diff options
author | Dan Timoney <dtimoney@att.com> | 2019-04-09 17:09:05 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-09 17:09:05 +0000 |
commit | 7cb530e74a4582100f44e5d05a6e5eca46b9e38e (patch) | |
tree | 9ad4186791631aec8805062c6bd3f76f338eaadd /cds-ui/server/pom.xml | |
parent | f2b17fe1579222ffc251d48bf9475dc3fcfc1206 (diff) | |
parent | 5d55c4181f7037f158b3aa0e25e915b953e7b3c0 (diff) |
Merge "Added required docker file to deploy as container"
Diffstat (limited to 'cds-ui/server/pom.xml')
-rw-r--r-- | cds-ui/server/pom.xml | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/cds-ui/server/pom.xml b/cds-ui/server/pom.xml index 59b14b890..1c05d5521 100644 --- a/cds-ui/server/pom.xml +++ b/cds-ui/server/pom.xml @@ -39,6 +39,8 @@ limitations under the License. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <npm.executable>npm</npm.executable> <onap.nexus.url>https://nexus.onap.org</onap.nexus.url> + <image.name>onap/ccsdk-cds-ui-server</image.name> + <docker.push.phase>deploy</docker.push.phase> </properties> <build> @@ -91,6 +93,73 @@ limitations under the License. </executions> </plugin> + <plugin> + <groupId>org.codehaus.groovy.maven</groupId> + <artifactId>gmaven-plugin</artifactId> + <version>1.0</version> + <executions> + <execution> + <phase>validate</phase> + <goals> + <goal>execute</goal> + </goals> + <configuration> + <source>${basedir}/../../TagVersion.groovy</source> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> + + <profiles> + <profile> + <id>docker</id> + <build> + <plugins> + <plugin> + <groupId>io.fabric8</groupId> + <artifactId>docker-maven-plugin</artifactId> + <version>0.26.1</version> + <inherited>false</inherited> + <configuration> + <images> + <image> + <name>${image.name}</name> + <build> + <cleanup>try</cleanup> + <dockerFileDir>${basedir}</dockerFileDir> + <tags> + <tag>${project.docker.latestminortag.version}</tag> + <tag>${project.docker.latestfulltag.version}</tag> + <tag>${project.docker.latesttagtimestamp.version}</tag> + </tags> + </build> + </image> + </images> + <verbose>true</verbose> + </configuration> + <executions> + <execution> + <id>generate-images</id> + <phase>package</phase> + <goals> + <goal>build</goal> + </goals> + </execution> + <execution> + <id>push-images</id> + <phase>${docker.push.phase}</phase> + <goals> + <goal>build</goal> + <goal>push</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + + </profiles> </project> |