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> |
| 112 | |
| 113 | <cleanup>try</cleanup> |
| 114 | <dockerFileDir>docker-files</dockerFileDir> |
| 115 | <dockerFile>docker-files/Dockerfile.mso-arquillian</dockerFile> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 116 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 117 | </build> |
| 118 | </image> |
| 119 | <image> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 120 | <name>openecomp/mso:%l</name> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 121 | <alias>mso</alias> |
| 122 | <build> |
| 123 | |
| 124 | <cleanup>try</cleanup> |
| 125 | <dockerFileDir>docker-files</dockerFileDir> |
| 126 | <dockerFile>docker-files/Dockerfile.mso-chef-final</dockerFile> |
| 127 | <assembly> |
| 128 | <basedir>/</basedir> |
| 129 | |
| 130 | <user>jboss:jboss:jboss</user> |
| 131 | <basedir>/opt/jboss/wildfly/standalone/deployments</basedir> |
| 132 | <descriptor>../../../../deliveries/src/main/assembly/war-pack/mso-wars.xml</descriptor> |
| 133 | </assembly> |
| 134 | </build> |
| 135 | </image> |
| 136 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 137 | </images> |
| 138 | </configuration> |
| 139 | <executions> |
| 140 | <execution> |
| 141 | <id>clean-images</id> |
| 142 | <phase>pre-clean</phase> |
| 143 | <goals> |
| 144 | <goal>remove</goal> |
| 145 | </goals> |
| 146 | <configuration> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 147 | <removeAll>true</removeAll> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 148 | <image>openecomp/mso-arquillian:%l,openecomp/mso:%l</image> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 149 | </configuration> |
| 150 | </execution> |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 151 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 152 | <execution> |
| 153 | <id>generate-images</id> |
| 154 | <phase>generate-sources</phase> |
| 155 | <goals> |
| 156 | <goal>build</goal> |
| 157 | </goals> |
| 158 | </execution> |
| 159 | |
| 160 | <execution> |
| 161 | <id>push-images</id> |
| 162 | <phase>deploy</phase> |
| 163 | <goals> |
| 164 | <goal>build</goal> |
| 165 | <goal>push</goal> |
| 166 | </goals> |
| 167 | <configuration> |
Anaël Closson | 5167cc2 | 2017-02-08 11:14:58 +0100 | [diff] [blame] | 168 | <image>openecomp/mso-arquillian:%l,openecomp/mso:%l,openecomp/jacoco:1.0</image> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 169 | </configuration> |
| 170 | </execution> |
| 171 | </executions> |
| 172 | |
| 173 | </plugin> |
| 174 | |
| 175 | <plugin> |
| 176 | <groupId>org.apache.maven.plugins</groupId> |
| 177 | <artifactId>maven-deploy-plugin</artifactId> |
| 178 | <version>2.8</version> |
| 179 | <configuration> |
| 180 | <skip>true</skip> |
| 181 | </configuration> |
| 182 | </plugin> |
| 183 | </plugins> |
| 184 | </build> |
| 185 | |
Anaël Closson | f15b97e | 2017-02-08 10:46:48 +0100 | [diff] [blame] | 186 | </project> |