ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 2 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 3 | <modelVersion>4.0.0</modelVersion> |
| 4 | |
| 5 | <parent> |
Arthur Martella | 22e015f | 2018-02-22 14:24:40 -0500 | [diff] [blame] | 6 | <groupId>org.onap.so</groupId> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 7 | <artifactId>packages</artifactId> |
Jessica Wagantall | 777f637 | 2017-11-20 11:10:28 -0800 | [diff] [blame] | 8 | <version>1.2.0-SNAPSHOT</version> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 9 | </parent> |
| 10 | |
| 11 | <packaging>pom</packaging> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 12 | <artifactId>docker</artifactId> |
| 13 | |
| 14 | <name>MSO Docker Deliveries</name> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 15 | <description>OpenECOMP MSO Docker Deliveries</description> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 16 | |
| 17 | <properties> |
| 18 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 19 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
Alexis de Talhouët | 07efe43 | 2017-03-06 15:37:39 -0500 | [diff] [blame] | 20 | <!-- If the maven profile "docker" is specified the parameter -Dmso.git.url=<MsoGitRepo> must be provided |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 21 | i.e: mvn clean install -P docker -Dmso.git.url=https://gerrit.openecomp.org/r--> |
| 22 | <mso.chef.git.url.prefix>${env.GIT_NO_PROJECT}</mso.chef.git.url.prefix> |
| 23 | <mso.chef.git.branchname>master</mso.chef.git.branchname> |
Rob Daugherty | 2c5310a | 2017-07-20 11:09:23 -0400 | [diff] [blame] | 24 | <mso.chef.git.url.suffix.chef.repo>so/chef-repo</mso.chef.git.url.suffix.chef.repo> |
| 25 | <mso.chef.git.url.suffix.chef.config>so/so-config</mso.chef.git.url.suffix.chef.config> |
Determe, Sebastien (sd378r) | 8d5a9b0 | 2017-03-27 07:51:22 -0700 | [diff] [blame] | 26 | <mso.project.version>${project.version}</mso.project.version> |
Rob Daugherty | f589318 | 2018-04-05 16:09:32 -0400 | [diff] [blame] | 27 | <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry> |
| 28 | <docker.push.registry>nexus3.onap.org:10003</docker.push.registry> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 29 | </properties> |
| 30 | |
| 31 | <build> |
| 32 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 33 | <plugins> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 34 | <plugin> |
Determe, Sebastien (sd378r) | 8d5a9b0 | 2017-03-27 07:51:22 -0700 | [diff] [blame] | 35 | <groupId>org.codehaus.groovy.maven</groupId> |
| 36 | <artifactId>gmaven-plugin</artifactId> |
Rob Daugherty | b4473da | 2018-03-27 14:32:11 -0400 | [diff] [blame] | 37 | <version>1.0</version> |
Determe, Sebastien (sd378r) | 8d5a9b0 | 2017-03-27 07:51:22 -0700 | [diff] [blame] | 38 | <executions> |
| 39 | <execution> |
| 40 | <phase>validate</phase> |
| 41 | <goals> |
| 42 | <goal>execute</goal> |
| 43 | </goals> |
| 44 | <configuration> |
| 45 | <source> |
| 46 | println project.properties['mso.project.version']; |
| 47 | def versionArray; |
| 48 | if ( project.properties['mso.project.version'] != null ) { |
| 49 | versionArray = project.properties['mso.project.version'].split('\\.'); |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 50 | } |
Determe, Sebastien (sd378r) | 8d5a9b0 | 2017-03-27 07:51:22 -0700 | [diff] [blame] | 51 | |
| 52 | if ( project.properties['mso.project.version'].endsWith("-SNAPSHOT") ) { |
| 53 | project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-SNAPSHOT-latest"; |
| 54 | } else { |
| 55 | project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest"; |
| 56 | } |
| 57 | |
| 58 | println 'New Tag for docker:' + project.properties['project.docker.latesttag.version']; |
| 59 | </source> |
| 60 | </configuration> |
| 61 | </execution> |
| 62 | </executions> |
| 63 | </plugin> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 64 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 65 | <plugin> |
Anaël Closson | 13e0d02 | 2017-02-14 11:17:50 +0100 | [diff] [blame] | 66 | <groupId>org.apache.maven.plugins</groupId> |
| 67 | <artifactId>maven-scm-plugin</artifactId> |
| 68 | <version>1.9.5</version> |
| 69 | <executions> |
| 70 | <execution> |
| 71 | <id>chef-repo-checkout</id> |
| 72 | <goals> |
| 73 | <goal>checkout</goal> |
| 74 | </goals> |
| 75 | <phase>initialize</phase> |
| 76 | <configuration> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 77 | <connectionUrl>scm:git:${mso.chef.git.url.prefix}/${mso.chef.git.url.suffix.chef.repo}</connectionUrl> |
Anaël Closson | 13e0d02 | 2017-02-14 11:17:50 +0100 | [diff] [blame] | 78 | <checkoutDirectory>src/main/docker/docker-files/chef-configs/chef-repo</checkoutDirectory> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 79 | <scmVersion>${mso.chef.git.branchname}</scmVersion> |
Anaël Closson | 13e0d02 | 2017-02-14 11:17:50 +0100 | [diff] [blame] | 80 | <scmVersionType>branch</scmVersionType> |
| 81 | <skipCheckoutIfExists>true</skipCheckoutIfExists> |
| 82 | <pushChanges>false</pushChanges> |
| 83 | </configuration> |
| 84 | </execution> |
| 85 | <execution> |
| 86 | <id>mso-config-checkout</id> |
| 87 | <goals> |
| 88 | <goal>checkout</goal> |
| 89 | </goals> |
| 90 | <phase>initialize</phase> |
| 91 | <configuration> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 92 | <connectionUrl>scm:git:${mso.chef.git.url.prefix}/${mso.chef.git.url.suffix.chef.config}</connectionUrl> |
Anaël Closson | 13e0d02 | 2017-02-14 11:17:50 +0100 | [diff] [blame] | 93 | <checkoutDirectory>src/main/docker/docker-files/chef-configs/mso-config</checkoutDirectory> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 94 | <scmVersion>${mso.chef.git.branchname}</scmVersion> |
Anaël Closson | 13e0d02 | 2017-02-14 11:17:50 +0100 | [diff] [blame] | 95 | <scmVersionType>branch</scmVersionType> |
| 96 | <skipCheckoutIfExists>true</skipCheckoutIfExists> |
| 97 | <pushChanges>false</pushChanges> |
| 98 | </configuration> |
| 99 | </execution> |
| 100 | </executions> |
| 101 | </plugin> |
| 102 | <plugin> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 103 | <groupId>io.fabric8</groupId> |
| 104 | <artifactId>docker-maven-plugin</artifactId> |
Rob Daugherty | f589318 | 2018-04-05 16:09:32 -0400 | [diff] [blame] | 105 | <version>0.19.1</version> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 106 | |
| 107 | <configuration> |
| 108 | <verbose>true</verbose> |
| 109 | <apiVersion>1.23</apiVersion> |
Rob Daugherty | f589318 | 2018-04-05 16:09:32 -0400 | [diff] [blame] | 110 | <pullRegistry>${docker.pull.registry}</pullRegistry> |
| 111 | <pushRegistry>${docker.push.registry}</pushRegistry> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 112 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 113 | <images> |
| 114 | <image> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 115 | <name>openecomp/jacoco:1.0</name> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 116 | <alias>jacoco</alias> |
| 117 | <build> |
| 118 | <cleanup>try</cleanup> |
| 119 | <dockerFileDir>docker-files</dockerFileDir> |
Rob Daugherty | f589318 | 2018-04-05 16:09:32 -0400 | [diff] [blame] | 120 | <dockerFile>Dockerfile.jacoco</dockerFile> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 121 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 122 | </build> |
| 123 | </image> |
| 124 | <image> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 125 | <name>openecomp/ubuntu-update:1.0</name> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 126 | <alias>ubuntu-update</alias> |
| 127 | <build> |
| 128 | |
| 129 | <cleanup>try</cleanup> |
| 130 | <dockerFileDir>docker-files</dockerFileDir> |
Rob Daugherty | f589318 | 2018-04-05 16:09:32 -0400 | [diff] [blame] | 131 | <dockerFile>Dockerfile.ubuntu-16.04-update</dockerFile> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 132 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 133 | </build> |
| 134 | </image> |
| 135 | <image> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 136 | <name>openecomp/wildfly:1.0</name> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 137 | <alias>wildfly</alias> |
| 138 | <build> |
| 139 | |
| 140 | <cleanup>try</cleanup> |
| 141 | <dockerFileDir>docker-files</dockerFileDir> |
Rob Daugherty | f589318 | 2018-04-05 16:09:32 -0400 | [diff] [blame] | 142 | <dockerFile>Dockerfile.wildfly-10</dockerFile> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 143 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 144 | </build> |
| 145 | </image> |
| 146 | <image> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 147 | <name>openecomp/mso-arquillian:%l</name> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 148 | <alias>mso-arquillian</alias> |
| 149 | <build> |
JulienBe | c3f8ddf | 2017-03-08 02:19:21 -0800 | [diff] [blame] | 150 | <tags> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 151 | <tag>${project.docker.latesttag.version}</tag> |
JulienBe | c3f8ddf | 2017-03-08 02:19:21 -0800 | [diff] [blame] | 152 | <tag>${project.version}-STAGING-${maven.build.timestamp}</tag> |
| 153 | </tags> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 154 | <cleanup>try</cleanup> |
| 155 | <dockerFileDir>docker-files</dockerFileDir> |
Rob Daugherty | f589318 | 2018-04-05 16:09:32 -0400 | [diff] [blame] | 156 | <dockerFile>Dockerfile.mso-arquillian</dockerFile> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 157 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 158 | </build> |
| 159 | </image> |
| 160 | <image> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 161 | <name>openecomp/mso:%l</name> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 162 | <alias>mso</alias> |
| 163 | <build> |
JulienBe | c3f8ddf | 2017-03-08 02:19:21 -0800 | [diff] [blame] | 164 | <tags> |
| 165 | <tag>${project.version}-STAGING-${maven.build.timestamp}</tag> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 166 | <tag>${project.docker.latesttag.version}</tag> |
JulienBe | c3f8ddf | 2017-03-08 02:19:21 -0800 | [diff] [blame] | 167 | </tags> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 168 | <cleanup>try</cleanup> |
| 169 | <dockerFileDir>docker-files</dockerFileDir> |
Rob Daugherty | f589318 | 2018-04-05 16:09:32 -0400 | [diff] [blame] | 170 | <dockerFile>Dockerfile.mso-chef-final</dockerFile> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 171 | <assembly> |
| 172 | <basedir>/</basedir> |
| 173 | |
| 174 | <user>jboss:jboss:jboss</user> |
| 175 | <basedir>/opt/jboss/wildfly/standalone/deployments</basedir> |
| 176 | <descriptor>../../../../deliveries/src/main/assembly/war-pack/mso-wars.xml</descriptor> |
| 177 | </assembly> |
| 178 | </build> |
| 179 | </image> |
| 180 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 181 | </images> |
| 182 | </configuration> |
| 183 | <executions> |
| 184 | <execution> |
| 185 | <id>clean-images</id> |
| 186 | <phase>pre-clean</phase> |
| 187 | <goals> |
| 188 | <goal>remove</goal> |
| 189 | </goals> |
| 190 | <configuration> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 191 | <removeAll>true</removeAll> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 192 | <image>openecomp/mso-arquillian:%l,openecomp/mso:%l</image> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 193 | </configuration> |
| 194 | </execution> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 195 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 196 | <execution> |
| 197 | <id>generate-images</id> |
| 198 | <phase>generate-sources</phase> |
| 199 | <goals> |
| 200 | <goal>build</goal> |
| 201 | </goals> |
| 202 | </execution> |
| 203 | |
| 204 | <execution> |
| 205 | <id>push-images</id> |
| 206 | <phase>deploy</phase> |
| 207 | <goals> |
| 208 | <goal>build</goal> |
| 209 | <goal>push</goal> |
| 210 | </goals> |
| 211 | <configuration> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 212 | <image>openecomp/mso-arquillian:%l,openecomp/mso:%l,openecomp/jacoco:1.0</image> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 213 | </configuration> |
| 214 | </execution> |
| 215 | </executions> |
| 216 | |
| 217 | </plugin> |
| 218 | |
| 219 | <plugin> |
| 220 | <groupId>org.apache.maven.plugins</groupId> |
| 221 | <artifactId>maven-deploy-plugin</artifactId> |
| 222 | <version>2.8</version> |
| 223 | <configuration> |
| 224 | <skip>true</skip> |
| 225 | </configuration> |
| 226 | </plugin> |
| 227 | </plugins> |
| 228 | </build> |
| 229 | |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 230 | </project> |