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