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> |
| 6 | <groupId>org.openecomp.mso</groupId> |
| 7 | <artifactId>packages</artifactId> |
| 8 | <version>0.0.4-SNAPSHOT</version> |
| 9 | </parent> |
| 10 | |
| 11 | <packaging>pom</packaging> |
Anaël Closson | f09c741 | 2017-02-08 10:56:20 +0100 | [diff] [blame] | 12 | <groupId>org.openecomp.mso</groupId> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 13 | <artifactId>docker</artifactId> |
| 14 | |
| 15 | <name>MSO Docker Deliveries</name> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 16 | <description>OpenECOMP MSO Docker Deliveries</description> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 17 | |
| 18 | <properties> |
| 19 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 20 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
Alexis de Talhouët | 07efe43 | 2017-03-06 15:37:39 -0500 | [diff] [blame] | 21 | <!-- If the maven profile "docker" is specified the parameter -Dmso.git.url=<MsoGitRepo> must be provided |
| 22 | i.e: mvn clean install -P docker -Dmso.git.url=https://gerrit.openecomp.org/r--> |
| 23 | <mso.git.url>${env.GIT_NO_PROJECT}</mso.git.url> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 24 | </properties> |
| 25 | |
| 26 | <build> |
| 27 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 28 | <plugins> |
| 29 | <plugin> |
Anaël Closson | 13e0d02 | 2017-02-14 11:17:50 +0100 | [diff] [blame] | 30 | <groupId>org.apache.maven.plugins</groupId> |
| 31 | <artifactId>maven-scm-plugin</artifactId> |
| 32 | <version>1.9.5</version> |
| 33 | <executions> |
| 34 | <execution> |
| 35 | <id>chef-repo-checkout</id> |
| 36 | <goals> |
| 37 | <goal>checkout</goal> |
| 38 | </goals> |
| 39 | <phase>initialize</phase> |
| 40 | <configuration> |
Alexis de Talhouët | 07efe43 | 2017-03-06 15:37:39 -0500 | [diff] [blame] | 41 | <connectionUrl>scm:git:${mso.git.url}/mso/chef-repo</connectionUrl> |
Anaël Closson | 13e0d02 | 2017-02-14 11:17:50 +0100 | [diff] [blame] | 42 | <checkoutDirectory>src/main/docker/docker-files/chef-configs/chef-repo</checkoutDirectory> |
| 43 | <scmVersion>master</scmVersion> |
| 44 | <scmVersionType>branch</scmVersionType> |
| 45 | <skipCheckoutIfExists>true</skipCheckoutIfExists> |
| 46 | <pushChanges>false</pushChanges> |
| 47 | </configuration> |
| 48 | </execution> |
| 49 | <execution> |
| 50 | <id>mso-config-checkout</id> |
| 51 | <goals> |
| 52 | <goal>checkout</goal> |
| 53 | </goals> |
| 54 | <phase>initialize</phase> |
| 55 | <configuration> |
Alexis de Talhouët | 07efe43 | 2017-03-06 15:37:39 -0500 | [diff] [blame] | 56 | <connectionUrl>scm:git:${mso.git.url}/mso/mso-config</connectionUrl> |
Anaël Closson | 13e0d02 | 2017-02-14 11:17:50 +0100 | [diff] [blame] | 57 | <checkoutDirectory>src/main/docker/docker-files/chef-configs/mso-config</checkoutDirectory> |
| 58 | <scmVersion>master</scmVersion> |
| 59 | <scmVersionType>branch</scmVersionType> |
| 60 | <skipCheckoutIfExists>true</skipCheckoutIfExists> |
| 61 | <pushChanges>false</pushChanges> |
| 62 | </configuration> |
| 63 | </execution> |
| 64 | </executions> |
| 65 | </plugin> |
| 66 | <plugin> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 67 | <groupId>io.fabric8</groupId> |
| 68 | <artifactId>docker-maven-plugin</artifactId> |
| 69 | <version>0.16.5</version> |
| 70 | |
| 71 | <configuration> |
| 72 | <verbose>true</verbose> |
| 73 | <apiVersion>1.23</apiVersion> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 74 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 75 | <images> |
| 76 | <image> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 77 | <name>openecomp/jacoco:1.0</name> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 78 | <alias>jacoco</alias> |
| 79 | <build> |
| 80 | <cleanup>try</cleanup> |
| 81 | <dockerFileDir>docker-files</dockerFileDir> |
| 82 | <dockerFile>docker-files/Dockerfile.jacoco</dockerFile> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 83 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 84 | </build> |
| 85 | </image> |
| 86 | <image> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 87 | <name>openecomp/ubuntu-update:1.0</name> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 88 | <alias>ubuntu-update</alias> |
| 89 | <build> |
| 90 | |
| 91 | <cleanup>try</cleanup> |
| 92 | <dockerFileDir>docker-files</dockerFileDir> |
| 93 | <dockerFile>docker-files/Dockerfile.ubuntu-16.04-update</dockerFile> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 94 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 95 | </build> |
| 96 | </image> |
| 97 | <image> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 98 | <name>openecomp/wildfly:1.0</name> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 99 | <alias>wildfly</alias> |
| 100 | <build> |
| 101 | |
| 102 | <cleanup>try</cleanup> |
| 103 | <dockerFileDir>docker-files</dockerFileDir> |
| 104 | <dockerFile>docker-files/Dockerfile.wildfly-10</dockerFile> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 105 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 106 | </build> |
| 107 | </image> |
| 108 | <image> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 109 | <name>openecomp/mso-arquillian:%l</name> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 110 | <alias>mso-arquillian</alias> |
| 111 | <build> |
JulienBe | c3f8ddf | 2017-03-08 02:19:21 -0800 | [diff] [blame^] | 112 | <tags> |
| 113 | <tag>${project.version}-STAGING-${maven.build.timestamp}</tag> |
| 114 | </tags> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 115 | <cleanup>try</cleanup> |
| 116 | <dockerFileDir>docker-files</dockerFileDir> |
| 117 | <dockerFile>docker-files/Dockerfile.mso-arquillian</dockerFile> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 118 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 119 | </build> |
| 120 | </image> |
| 121 | <image> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 122 | <name>openecomp/mso:%l</name> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 123 | <alias>mso</alias> |
| 124 | <build> |
JulienBe | c3f8ddf | 2017-03-08 02:19:21 -0800 | [diff] [blame^] | 125 | <tags> |
| 126 | <tag>${project.version}-STAGING-${maven.build.timestamp}</tag> |
| 127 | </tags> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 128 | <cleanup>try</cleanup> |
| 129 | <dockerFileDir>docker-files</dockerFileDir> |
| 130 | <dockerFile>docker-files/Dockerfile.mso-chef-final</dockerFile> |
| 131 | <assembly> |
| 132 | <basedir>/</basedir> |
| 133 | |
| 134 | <user>jboss:jboss:jboss</user> |
| 135 | <basedir>/opt/jboss/wildfly/standalone/deployments</basedir> |
| 136 | <descriptor>../../../../deliveries/src/main/assembly/war-pack/mso-wars.xml</descriptor> |
| 137 | </assembly> |
| 138 | </build> |
| 139 | </image> |
| 140 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 141 | </images> |
| 142 | </configuration> |
| 143 | <executions> |
| 144 | <execution> |
| 145 | <id>clean-images</id> |
| 146 | <phase>pre-clean</phase> |
| 147 | <goals> |
| 148 | <goal>remove</goal> |
| 149 | </goals> |
| 150 | <configuration> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 151 | <removeAll>true</removeAll> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 152 | <image>openecomp/mso-arquillian:%l,openecomp/mso:%l</image> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 153 | </configuration> |
| 154 | </execution> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 155 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 156 | <execution> |
| 157 | <id>generate-images</id> |
| 158 | <phase>generate-sources</phase> |
| 159 | <goals> |
| 160 | <goal>build</goal> |
| 161 | </goals> |
| 162 | </execution> |
| 163 | |
| 164 | <execution> |
| 165 | <id>push-images</id> |
| 166 | <phase>deploy</phase> |
| 167 | <goals> |
| 168 | <goal>build</goal> |
| 169 | <goal>push</goal> |
| 170 | </goals> |
| 171 | <configuration> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 172 | <image>openecomp/mso-arquillian:%l,openecomp/mso:%l,openecomp/jacoco:1.0</image> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 173 | </configuration> |
| 174 | </execution> |
| 175 | </executions> |
| 176 | |
| 177 | </plugin> |
| 178 | |
| 179 | <plugin> |
| 180 | <groupId>org.apache.maven.plugins</groupId> |
| 181 | <artifactId>maven-deploy-plugin</artifactId> |
| 182 | <version>2.8</version> |
| 183 | <configuration> |
| 184 | <skip>true</skip> |
| 185 | </configuration> |
| 186 | </plugin> |
| 187 | </plugins> |
| 188 | </build> |
| 189 | |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 190 | </project> |