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> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 27 | </properties> |
| 28 | |
| 29 | <build> |
| 30 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 31 | <plugins> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 32 | <plugin> |
Determe, Sebastien (sd378r) | 8d5a9b0 | 2017-03-27 07:51:22 -0700 | [diff] [blame] | 33 | <groupId>org.codehaus.groovy.maven</groupId> |
| 34 | <artifactId>gmaven-plugin</artifactId> |
Rob Daugherty | b4473da | 2018-03-27 14:32:11 -0400 | [diff] [blame] | 35 | <version>1.0</version> |
Determe, Sebastien (sd378r) | 8d5a9b0 | 2017-03-27 07:51:22 -0700 | [diff] [blame] | 36 | <executions> |
| 37 | <execution> |
| 38 | <phase>validate</phase> |
| 39 | <goals> |
| 40 | <goal>execute</goal> |
| 41 | </goals> |
| 42 | <configuration> |
| 43 | <source> |
| 44 | println project.properties['mso.project.version']; |
| 45 | def versionArray; |
| 46 | if ( project.properties['mso.project.version'] != null ) { |
| 47 | versionArray = project.properties['mso.project.version'].split('\\.'); |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 48 | } |
Determe, Sebastien (sd378r) | 8d5a9b0 | 2017-03-27 07:51:22 -0700 | [diff] [blame] | 49 | |
| 50 | if ( project.properties['mso.project.version'].endsWith("-SNAPSHOT") ) { |
| 51 | project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-SNAPSHOT-latest"; |
| 52 | } else { |
| 53 | project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest"; |
| 54 | } |
| 55 | |
| 56 | println 'New Tag for docker:' + project.properties['project.docker.latesttag.version']; |
| 57 | </source> |
| 58 | </configuration> |
| 59 | </execution> |
| 60 | </executions> |
| 61 | </plugin> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 62 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 63 | <plugin> |
Anaël Closson | 13e0d02 | 2017-02-14 11:17:50 +0100 | [diff] [blame] | 64 | <groupId>org.apache.maven.plugins</groupId> |
| 65 | <artifactId>maven-scm-plugin</artifactId> |
| 66 | <version>1.9.5</version> |
| 67 | <executions> |
| 68 | <execution> |
| 69 | <id>chef-repo-checkout</id> |
| 70 | <goals> |
| 71 | <goal>checkout</goal> |
| 72 | </goals> |
| 73 | <phase>initialize</phase> |
| 74 | <configuration> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 75 | <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] | 76 | <checkoutDirectory>src/main/docker/docker-files/chef-configs/chef-repo</checkoutDirectory> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 77 | <scmVersion>${mso.chef.git.branchname}</scmVersion> |
Anaël Closson | 13e0d02 | 2017-02-14 11:17:50 +0100 | [diff] [blame] | 78 | <scmVersionType>branch</scmVersionType> |
| 79 | <skipCheckoutIfExists>true</skipCheckoutIfExists> |
| 80 | <pushChanges>false</pushChanges> |
| 81 | </configuration> |
| 82 | </execution> |
| 83 | <execution> |
| 84 | <id>mso-config-checkout</id> |
| 85 | <goals> |
| 86 | <goal>checkout</goal> |
| 87 | </goals> |
| 88 | <phase>initialize</phase> |
| 89 | <configuration> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 90 | <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] | 91 | <checkoutDirectory>src/main/docker/docker-files/chef-configs/mso-config</checkoutDirectory> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 92 | <scmVersion>${mso.chef.git.branchname}</scmVersion> |
Anaël Closson | 13e0d02 | 2017-02-14 11:17:50 +0100 | [diff] [blame] | 93 | <scmVersionType>branch</scmVersionType> |
| 94 | <skipCheckoutIfExists>true</skipCheckoutIfExists> |
| 95 | <pushChanges>false</pushChanges> |
| 96 | </configuration> |
| 97 | </execution> |
| 98 | </executions> |
| 99 | </plugin> |
| 100 | <plugin> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 101 | <groupId>io.fabric8</groupId> |
| 102 | <artifactId>docker-maven-plugin</artifactId> |
| 103 | <version>0.16.5</version> |
| 104 | |
| 105 | <configuration> |
| 106 | <verbose>true</verbose> |
| 107 | <apiVersion>1.23</apiVersion> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 108 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 109 | <images> |
| 110 | <image> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 111 | <name>openecomp/jacoco:1.0</name> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 112 | <alias>jacoco</alias> |
| 113 | <build> |
| 114 | <cleanup>try</cleanup> |
| 115 | <dockerFileDir>docker-files</dockerFileDir> |
| 116 | <dockerFile>docker-files/Dockerfile.jacoco</dockerFile> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 117 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 118 | </build> |
| 119 | </image> |
| 120 | <image> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 121 | <name>openecomp/ubuntu-update:1.0</name> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 122 | <alias>ubuntu-update</alias> |
| 123 | <build> |
| 124 | |
| 125 | <cleanup>try</cleanup> |
| 126 | <dockerFileDir>docker-files</dockerFileDir> |
| 127 | <dockerFile>docker-files/Dockerfile.ubuntu-16.04-update</dockerFile> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 128 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 129 | </build> |
| 130 | </image> |
| 131 | <image> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 132 | <name>openecomp/wildfly:1.0</name> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 133 | <alias>wildfly</alias> |
| 134 | <build> |
| 135 | |
| 136 | <cleanup>try</cleanup> |
| 137 | <dockerFileDir>docker-files</dockerFileDir> |
| 138 | <dockerFile>docker-files/Dockerfile.wildfly-10</dockerFile> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 139 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 140 | </build> |
| 141 | </image> |
| 142 | <image> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 143 | <name>openecomp/mso-arquillian:%l</name> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 144 | <alias>mso-arquillian</alias> |
| 145 | <build> |
JulienBe | c3f8ddf | 2017-03-08 02:19:21 -0800 | [diff] [blame] | 146 | <tags> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 147 | <tag>${project.docker.latesttag.version}</tag> |
JulienBe | c3f8ddf | 2017-03-08 02:19:21 -0800 | [diff] [blame] | 148 | <tag>${project.version}-STAGING-${maven.build.timestamp}</tag> |
| 149 | </tags> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 150 | <cleanup>try</cleanup> |
| 151 | <dockerFileDir>docker-files</dockerFileDir> |
| 152 | <dockerFile>docker-files/Dockerfile.mso-arquillian</dockerFile> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 153 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 154 | </build> |
| 155 | </image> |
| 156 | <image> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 157 | <name>openecomp/mso:%l</name> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 158 | <alias>mso</alias> |
| 159 | <build> |
JulienBe | c3f8ddf | 2017-03-08 02:19:21 -0800 | [diff] [blame] | 160 | <tags> |
| 161 | <tag>${project.version}-STAGING-${maven.build.timestamp}</tag> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 162 | <tag>${project.docker.latesttag.version}</tag> |
JulienBe | c3f8ddf | 2017-03-08 02:19:21 -0800 | [diff] [blame] | 163 | </tags> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 164 | <cleanup>try</cleanup> |
| 165 | <dockerFileDir>docker-files</dockerFileDir> |
| 166 | <dockerFile>docker-files/Dockerfile.mso-chef-final</dockerFile> |
| 167 | <assembly> |
| 168 | <basedir>/</basedir> |
| 169 | |
| 170 | <user>jboss:jboss:jboss</user> |
| 171 | <basedir>/opt/jboss/wildfly/standalone/deployments</basedir> |
| 172 | <descriptor>../../../../deliveries/src/main/assembly/war-pack/mso-wars.xml</descriptor> |
| 173 | </assembly> |
| 174 | </build> |
| 175 | </image> |
| 176 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 177 | </images> |
| 178 | </configuration> |
| 179 | <executions> |
| 180 | <execution> |
| 181 | <id>clean-images</id> |
| 182 | <phase>pre-clean</phase> |
| 183 | <goals> |
| 184 | <goal>remove</goal> |
| 185 | </goals> |
| 186 | <configuration> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 187 | <removeAll>true</removeAll> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 188 | <image>openecomp/mso-arquillian:%l,openecomp/mso:%l</image> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 189 | </configuration> |
| 190 | </execution> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 191 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 192 | <execution> |
| 193 | <id>generate-images</id> |
| 194 | <phase>generate-sources</phase> |
| 195 | <goals> |
| 196 | <goal>build</goal> |
| 197 | </goals> |
| 198 | </execution> |
| 199 | |
| 200 | <execution> |
| 201 | <id>push-images</id> |
| 202 | <phase>deploy</phase> |
| 203 | <goals> |
| 204 | <goal>build</goal> |
| 205 | <goal>push</goal> |
| 206 | </goals> |
| 207 | <configuration> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 208 | <image>openecomp/mso-arquillian:%l,openecomp/mso:%l,openecomp/jacoco:1.0</image> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 209 | </configuration> |
| 210 | </execution> |
| 211 | </executions> |
| 212 | |
| 213 | </plugin> |
| 214 | |
| 215 | <plugin> |
| 216 | <groupId>org.apache.maven.plugins</groupId> |
| 217 | <artifactId>maven-deploy-plugin</artifactId> |
| 218 | <version>2.8</version> |
| 219 | <configuration> |
| 220 | <skip>true</skip> |
| 221 | </configuration> |
| 222 | </plugin> |
| 223 | </plugins> |
| 224 | </build> |
| 225 | |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 226 | </project> |