diff options
Diffstat (limited to 'ecomp-sdk/epsdk-app-os/pom.xml')
-rw-r--r-- | ecomp-sdk/epsdk-app-os/pom.xml | 54 |
1 files changed, 46 insertions, 8 deletions
diff --git a/ecomp-sdk/epsdk-app-os/pom.xml b/ecomp-sdk/epsdk-app-os/pom.xml index dc8e9d94..db0a455f 100644 --- a/ecomp-sdk/epsdk-app-os/pom.xml +++ b/ecomp-sdk/epsdk-app-os/pom.xml @@ -1,9 +1,11 @@ <?xml version="1.0"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> - <!-- This is the Maven project object model (POM) file for the open-source SDK web app. - This is NOT the Portal - but it is developed and supported by the Portal team. --> + <!-- This is the Maven project object model (POM) file for the open-source + SDK web app. This is NOT the Portal - but it is developed and supported by + the Portal team. --> <parent> <groupId>org.onap.portal.sdk</groupId> @@ -11,9 +13,9 @@ <version>2.1.0-SNAPSHOT</version> </parent> - <!-- GroupId is inherited from parent --> + <!-- GroupId is inherited from parent --> <artifactId>epsdk-app-os</artifactId> - <!-- Version is inherited from parent --> + <!-- Version is inherited from parent --> <packaging>war</packaging> <name>ONAP Portal SDK Webapp for OpenSource</name> <description>ONAP Portal SDK Web Application for public release</description> @@ -25,6 +27,9 @@ <skipassembly>true</skipassembly> <!-- Tests usually require some setup that maven cannot do, so skip. --> <skiptests>true</skiptests> + <!-- Version number gets stored only here --> + <tomcat.download.path>http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.37/bin</tomcat.download.path> + <tomcat.download.name>apache-tomcat-8.0.37</tomcat.download.name> </properties> <!-- repositories are inherited from parent --> @@ -39,7 +44,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> - <version>2.19.1</version> + <!-- parent specifies the <version>2.19.1</version> --> <configuration> <skipTests>${skiptests}</skipTests> <includes> @@ -104,15 +109,48 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> - <version>2.8</version> + <!-- parent specifies the<version>2.8</version> --> <configuration> <skip>true</skip> </configuration> </plugin> + <plugin> + <groupId>io.fabric8</groupId> + <artifactId>docker-maven-plugin</artifactId> + <version>0.22.0</version> + <configuration> + <verbose>true</verbose> + <images> + <image> + <name>onap/portal-sdk:${project.version}</name> + <build> + <from>frolvlad/alpine-oraclejdk8:slim</from> + <assembly> + <descriptorRef>artifact</descriptorRef> + </assembly> + <runCmds> + <!-- must be all on one line; use CDATA to turn off the Eclipse formatter --> + <run><![CDATA[wget -q ${tomcat.download.path}/${tomcat.download.name}.tar.gz]]></run> + <run>tar -xzf ${tomcat.download.name}.tar.gz</run> + <run>rm -f ${tomcat.download.name}.tar.gz</run> + <run>rm -fr ${tomcat.download.name}/webapps/[a-z]*</run> + <run>mkdir -p /opt</run> + <run>mv ${tomcat.download.name} /opt</run> + <run><![CDATA[mv /maven/*.war /opt/${tomcat.download.name}/webapps/ONAPPORTALSDK.war]]></run> + </runCmds> + <cmd> + <shell>/opt/${tomcat.download.name}/bin/catalina.sh run</shell> + </cmd> + </build> + </image> + </images> + </configuration> + </plugin> + </plugins> </build> - + <dependencies> <!-- SDK overlay war --> <dependency> |