Timoney, Daniel (dt5972) | 324ee36 | 2017-02-15 10:37:53 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Timoney, Dan (dt5972) | 84238e1 | 2019-03-18 17:23:08 -0400 | [diff] [blame] | 2 | <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/maven-v4_0_0.xsd"> |
Timoney, Daniel (dt5972) | 324ee36 | 2017-02-15 10:37:53 -0500 | [diff] [blame] | 3 | |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 4 | <parent> |
| 5 | <groupId>org.onap.ccsdk.parent</groupId> |
| 6 | <artifactId>odlparent-lite</artifactId> |
Timoney, Dan (dt5972) | b47edc4 | 2019-03-25 17:32:41 -0400 | [diff] [blame] | 7 | <version>1.2.2-SNAPSHOT</version> |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 8 | </parent> |
Timoney, Daniel (dt5972) | 324ee36 | 2017-02-15 10:37:53 -0500 | [diff] [blame] | 9 | |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 10 | <modelVersion>4.0.0</modelVersion> |
| 11 | <packaging>pom</packaging> |
| 12 | <groupId>org.onap.sdnc.oam</groupId> |
| 13 | <artifactId>installation-admportal</artifactId> |
Timoney, Dan (dt5972) | b47edc4 | 2019-03-25 17:32:41 -0400 | [diff] [blame] | 14 | <version>1.5.1-SNAPSHOT</version> |
Timoney, Daniel (dt5972) | 324ee36 | 2017-02-15 10:37:53 -0500 | [diff] [blame] | 15 | |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 16 | <name>sdnc-oam :: installation :: ${project.artifactId}</name> |
| 17 | <description>Creates admportal Docker container</description> |
Timoney, Daniel (dt5972) | 324ee36 | 2017-02-15 10:37:53 -0500 | [diff] [blame] | 18 | |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 19 | <properties> |
| 20 | <image.name>onap/admportal-sdnc-image</image.name> |
| 21 | <sdnc.project.version>${project.version}</sdnc.project.version> |
| 22 | <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp> |
| 23 | <ccsdk.docker.version>0.4-STAGING-latest</ccsdk.docker.version> |
Timoney, Dan (dt5972) | 7b53940 | 2018-04-06 18:00:00 -0400 | [diff] [blame] | 24 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 25 | </properties> |
Timoney, Daniel (dt5972) | 324ee36 | 2017-02-15 10:37:53 -0500 | [diff] [blame] | 26 | |
| 27 | |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 28 | <build> |
| 29 | <plugins> |
Dan Timoney | 8f77351 | 2017-04-24 16:30:26 -0400 | [diff] [blame] | 30 | |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 31 | <plugin> |
| 32 | <groupId>org.codehaus.groovy.maven</groupId> |
| 33 | <artifactId>gmaven-plugin</artifactId> |
| 34 | <executions> |
| 35 | <execution> |
| 36 | <phase>validate</phase> |
| 37 | <goals> |
| 38 | <goal>execute</goal> |
| 39 | </goals> |
| 40 | <configuration> |
| 41 | <source>${basedir}/../TagVersion.groovy</source> |
| 42 | </configuration> |
| 43 | </execution> |
| 44 | </executions> |
| 45 | </plugin> |
| 46 | <plugin> |
| 47 | <groupId>io.fabric8</groupId> |
| 48 | <artifactId>docker-maven-plugin</artifactId> |
| 49 | <version>0.16.5</version> |
| 50 | <inherited>false</inherited> |
| 51 | <configuration> |
Dan Timoney | 8f77351 | 2017-04-24 16:30:26 -0400 | [diff] [blame] | 52 | |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 53 | <images> |
| 54 | <image> |
| 55 | <name>${image.name}</name> |
| 56 | <build> |
| 57 | <cleanup>try</cleanup> |
| 58 | <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> |
| 59 | <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile> |
| 60 | <tags> |
| 61 | <tag>${project.docker.latestminortag.version}</tag> |
| 62 | <tag>${project.docker.latestfulltag.version}</tag> |
| 63 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
| 64 | </tags> |
| 65 | </build> |
| 66 | </image> |
| 67 | </images> |
| 68 | </configuration> |
| 69 | <executions> |
| 70 | <execution> |
| 71 | <id>generate-images</id> |
| 72 | <phase>generate-sources</phase> |
| 73 | <goals> |
| 74 | <goal>build</goal> |
| 75 | </goals> |
| 76 | </execution> |
Dan Timoney | 8f77351 | 2017-04-24 16:30:26 -0400 | [diff] [blame] | 77 | |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 78 | <execution> |
| 79 | <id>push-images</id> |
| 80 | <phase>deploy</phase> |
| 81 | <goals> |
| 82 | <goal>build</goal> |
| 83 | <goal>push</goal> |
| 84 | </goals> |
| 85 | </execution> |
| 86 | </executions> |
| 87 | </plugin> |
Dan Timoney | 8f77351 | 2017-04-24 16:30:26 -0400 | [diff] [blame] | 88 | |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 89 | <plugin> |
| 90 | <artifactId>maven-resources-plugin</artifactId> |
| 91 | <version>2.6</version> |
| 92 | <executions> |
| 93 | <execution> |
| 94 | <id>copy-dockerfile</id> |
| 95 | <goals> |
| 96 | <goal>copy-resources</goal> |
| 97 | </goals><!-- here the phase you need --> |
| 98 | <phase>validate</phase> |
| 99 | <configuration> |
| 100 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 101 | <resources> |
| 102 | <resource> |
| 103 | <directory>src/main/docker</directory> |
| 104 | <includes> |
| 105 | <include>Dockerfile</include> |
| 106 | </includes> |
| 107 | <filtering>true</filtering> |
| 108 | </resource> |
| 109 | </resources> |
| 110 | </configuration> |
| 111 | </execution> |
| 112 | <execution> |
| 113 | <id>copy-properties</id> |
| 114 | <goals> |
| 115 | <goal>copy-resources</goal> |
| 116 | </goals><!-- here the phase you need --> |
| 117 | <phase>validate</phase> |
| 118 | <configuration> |
| 119 | <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory> |
| 120 | <resources> |
| 121 | <resource> |
| 122 | <directory>../src/main/properties</directory> |
| 123 | <includes> |
| 124 | <include>*.properties</include> |
| 125 | <include>*.properties.sdnctldb01</include> |
| 126 | </includes> |
| 127 | <filtering>false</filtering> |
| 128 | </resource> |
| 129 | </resources> |
| 130 | </configuration> |
| 131 | </execution> |
| 132 | </executions> |
| 133 | </plugin> |
| 134 | <plugin> |
| 135 | <artifactId>exec-maven-plugin</artifactId> |
| 136 | <groupId>org.codehaus.mojo</groupId> |
| 137 | <version>1.5.0</version> |
| 138 | <executions> |
| 139 | <execution> |
| 140 | <id>Unzip admportal</id> |
| 141 | <phase>generate-sources</phase> |
| 142 | <goals> |
| 143 | <goal>exec</goal> |
| 144 | </goals> |
| 145 | <configuration> |
| 146 | <executable>/usr/bin/unzip</executable> |
| 147 | <arguments> |
| 148 | <argument>-d</argument> |
| 149 | <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument> |
| 150 | <argument>../../admportal/target/*.zip</argument> |
| 151 | </arguments> |
| 152 | </configuration> |
| 153 | </execution> |
Dan Timoney | 8f77351 | 2017-04-24 16:30:26 -0400 | [diff] [blame] | 154 | |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 155 | <execution> |
| 156 | <id>Copy admportal config</id> |
| 157 | <phase>generate-sources</phase> |
| 158 | <goals> |
| 159 | <goal>exec</goal> |
| 160 | </goals> |
| 161 | <configuration> |
| 162 | <executable>/bin/cp</executable> |
| 163 | <arguments> |
| 164 | <argument>../../admportal/config/admportal.json</argument> |
| 165 | <argument>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</argument> |
| 166 | </arguments> |
| 167 | </configuration> |
| 168 | </execution> |
Dan Timoney | 8f77351 | 2017-04-24 16:30:26 -0400 | [diff] [blame] | 169 | |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 170 | <execution> |
| 171 | <id>Copy admportal config1</id> |
| 172 | <phase>generate-sources</phase> |
| 173 | <goals> |
| 174 | <goal>exec</goal> |
| 175 | </goals> |
| 176 | <configuration> |
| 177 | <executable>/bin/cp</executable> |
| 178 | <arguments> |
| 179 | <argument>../../admportal/config/admportal.log4js.json</argument> |
| 180 | <argument>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</argument> |
| 181 | </arguments> |
| 182 | </configuration> |
| 183 | </execution> |
Timoney, Daniel (dt5972) | 324ee36 | 2017-02-15 10:37:53 -0500 | [diff] [blame] | 184 | |
| 185 | |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 186 | <execution> |
| 187 | <id>change shell permissions</id> |
| 188 | <phase>process-sources</phase> |
| 189 | <goals> |
| 190 | <goal>exec</goal> |
| 191 | </goals> |
| 192 | <configuration> |
| 193 | <executable>/usr/bin/find</executable> |
| 194 | <arguments> |
| 195 | <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument> |
| 196 | <argument>-name</argument> |
| 197 | <argument>*.sh</argument> |
| 198 | <argument>-exec</argument> |
| 199 | <argument>chmod</argument> |
| 200 | <argument>+x</argument> |
| 201 | <argument>{}</argument> |
| 202 | <argument>;</argument> |
| 203 | </arguments> |
| 204 | </configuration> |
| 205 | </execution> |
| 206 | </executions> |
| 207 | </plugin> |
Timoney, Daniel (dt5972) | 324ee36 | 2017-02-15 10:37:53 -0500 | [diff] [blame] | 208 | |
| 209 | |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 210 | </plugins> |
Timoney, Daniel (dt5972) | 324ee36 | 2017-02-15 10:37:53 -0500 | [diff] [blame] | 211 | |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 212 | </build> |
| 213 | <organization> |
| 214 | <name>openECOMP</name> |
| 215 | </organization> |
Timoney, Daniel (dt5972) | 324ee36 | 2017-02-15 10:37:53 -0500 | [diff] [blame] | 216 | </project> |