blob: 4bad970d70971064141576a16c86b3a30c13d18c [file] [log] [blame]
ChrisC025301d2017-01-31 11:40:03 +01001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Anaël Clossonf15b97e2017-02-08 10:46:48 +01002 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
ChrisC025301d2017-01-31 11:40:03 +01003 <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 Clossonf09c7412017-02-08 10:56:20 +010012 <groupId>org.openecomp.mso</groupId>
ChrisC025301d2017-01-31 11:40:03 +010013 <artifactId>docker</artifactId>
14
15 <name>MSO Docker Deliveries</name>
Anaël Closson5167cc22017-02-08 11:14:58 +010016 <description>OpenECOMP MSO Docker Deliveries</description>
ChrisC025301d2017-01-31 11:40:03 +010017
18 <properties>
19 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Alexis de Talhouët07efe432017-03-06 15:37:39 -050021 <!-- 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>
ChrisC025301d2017-01-31 11:40:03 +010024 </properties>
25
26 <build>
27 <finalName>${project.artifactId}-${project.version}</finalName>
28 <plugins>
29 <plugin>
Anaël Closson13e0d022017-02-14 11:17:50 +010030 <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ët07efe432017-03-06 15:37:39 -050041 <connectionUrl>scm:git:${mso.git.url}/mso/chef-repo</connectionUrl>
Anaël Closson13e0d022017-02-14 11:17:50 +010042 <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ët07efe432017-03-06 15:37:39 -050056 <connectionUrl>scm:git:${mso.git.url}/mso/mso-config</connectionUrl>
Anaël Closson13e0d022017-02-14 11:17:50 +010057 <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>
ChrisC025301d2017-01-31 11:40:03 +010067 <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 Clossonf15b97e2017-02-08 10:46:48 +010074
ChrisC025301d2017-01-31 11:40:03 +010075 <images>
76 <image>
Anaël Closson5167cc22017-02-08 11:14:58 +010077 <name>openecomp/jacoco:1.0</name>
ChrisC025301d2017-01-31 11:40:03 +010078 <alias>jacoco</alias>
79 <build>
80 <cleanup>try</cleanup>
81 <dockerFileDir>docker-files</dockerFileDir>
82 <dockerFile>docker-files/Dockerfile.jacoco</dockerFile>
Anaël Clossonf15b97e2017-02-08 10:46:48 +010083
ChrisC025301d2017-01-31 11:40:03 +010084 </build>
85 </image>
86 <image>
Anaël Closson5167cc22017-02-08 11:14:58 +010087 <name>openecomp/ubuntu-update:1.0</name>
ChrisC025301d2017-01-31 11:40:03 +010088 <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 Clossonf15b97e2017-02-08 10:46:48 +010094
ChrisC025301d2017-01-31 11:40:03 +010095 </build>
96 </image>
97 <image>
Anaël Closson5167cc22017-02-08 11:14:58 +010098 <name>openecomp/wildfly:1.0</name>
ChrisC025301d2017-01-31 11:40:03 +010099 <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 Clossonf15b97e2017-02-08 10:46:48 +0100105
ChrisC025301d2017-01-31 11:40:03 +0100106 </build>
107 </image>
108 <image>
Anaël Closson5167cc22017-02-08 11:14:58 +0100109 <name>openecomp/mso-arquillian:%l</name>
ChrisC025301d2017-01-31 11:40:03 +0100110 <alias>mso-arquillian</alias>
111 <build>
JulienBec3f8ddf2017-03-08 02:19:21 -0800112 <tags>
113 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
114 </tags>
ChrisC025301d2017-01-31 11:40:03 +0100115 <cleanup>try</cleanup>
116 <dockerFileDir>docker-files</dockerFileDir>
117 <dockerFile>docker-files/Dockerfile.mso-arquillian</dockerFile>
Anaël Clossonf15b97e2017-02-08 10:46:48 +0100118
ChrisC025301d2017-01-31 11:40:03 +0100119 </build>
120 </image>
121 <image>
Anaël Closson5167cc22017-02-08 11:14:58 +0100122 <name>openecomp/mso:%l</name>
ChrisC025301d2017-01-31 11:40:03 +0100123 <alias>mso</alias>
124 <build>
JulienBec3f8ddf2017-03-08 02:19:21 -0800125 <tags>
126 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
127 </tags>
ChrisC025301d2017-01-31 11:40:03 +0100128 <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
ChrisC025301d2017-01-31 11:40:03 +0100141 </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 Clossonf15b97e2017-02-08 10:46:48 +0100151 <removeAll>true</removeAll>
Anaël Closson5167cc22017-02-08 11:14:58 +0100152 <image>openecomp/mso-arquillian:%l,openecomp/mso:%l</image>
ChrisC025301d2017-01-31 11:40:03 +0100153 </configuration>
154 </execution>
Anaël Clossonf15b97e2017-02-08 10:46:48 +0100155
ChrisC025301d2017-01-31 11:40:03 +0100156 <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 Closson5167cc22017-02-08 11:14:58 +0100172 <image>openecomp/mso-arquillian:%l,openecomp/mso:%l,openecomp/jacoco:1.0</image>
ChrisC025301d2017-01-31 11:40:03 +0100173 </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 Clossonf15b97e2017-02-08 10:46:48 +0100190</project>