blob: 6ca79b70f7db49c82ab64c860d2d8dfb74a1da09 [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>
112
113 <cleanup>try</cleanup>
114 <dockerFileDir>docker-files</dockerFileDir>
115 <dockerFile>docker-files/Dockerfile.mso-arquillian</dockerFile>
Anaël Clossonf15b97e2017-02-08 10:46:48 +0100116
ChrisC025301d2017-01-31 11:40:03 +0100117 </build>
118 </image>
119 <image>
Anaël Closson5167cc22017-02-08 11:14:58 +0100120 <name>openecomp/mso:%l</name>
ChrisC025301d2017-01-31 11:40:03 +0100121 <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
ChrisC025301d2017-01-31 11:40:03 +0100137 </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 Clossonf15b97e2017-02-08 10:46:48 +0100147 <removeAll>true</removeAll>
Anaël Closson5167cc22017-02-08 11:14:58 +0100148 <image>openecomp/mso-arquillian:%l,openecomp/mso:%l</image>
ChrisC025301d2017-01-31 11:40:03 +0100149 </configuration>
150 </execution>
Anaël Clossonf15b97e2017-02-08 10:46:48 +0100151
ChrisC025301d2017-01-31 11:40:03 +0100152 <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 Closson5167cc22017-02-08 11:14:58 +0100168 <image>openecomp/mso-arquillian:%l,openecomp/mso:%l,openecomp/jacoco:1.0</image>
ChrisC025301d2017-01-31 11:40:03 +0100169 </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 Clossonf15b97e2017-02-08 10:46:48 +0100186</project>