Update to version 1.1.0
[so.git] / packages / docker / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3         <modelVersion>4.0.0</modelVersion>
4
5         <parent>
6                 <groupId>org.openecomp.mso</groupId>
7                 <artifactId>packages</artifactId>
8                 <version>1.1.0-SNAPSHOT</version>
9         </parent>
10
11         <packaging>pom</packaging>
12         <groupId>org.openecomp.mso</groupId>
13         <artifactId>docker</artifactId>
14
15         <name>MSO Docker Deliveries</name>
16         <description>OpenECOMP MSO Docker Deliveries</description>
17
18         <properties>
19                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
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>
24         </properties>
25
26         <build>
27                 <finalName>${project.artifactId}-${project.version}</finalName>
28                 <plugins>
29                         <plugin>
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>
41                                                         <connectionUrl>scm:git:${mso.git.url}/mso/chef-repo</connectionUrl>
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>
56                                                         <connectionUrl>scm:git:${mso.git.url}/mso/mso-config</connectionUrl>
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>
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>
74
75                                         <images>
76                                                 <image>
77                                                         <name>openecomp/jacoco:1.0</name>
78                                                         <alias>jacoco</alias>
79                                                         <build>
80                                                                 <cleanup>try</cleanup>
81                                                                 <dockerFileDir>docker-files</dockerFileDir>
82                                                                 <dockerFile>docker-files/Dockerfile.jacoco</dockerFile>
83
84                                                         </build>
85                                                 </image>
86                                                 <image>
87                                                         <name>openecomp/ubuntu-update:1.0</name>
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>
94
95                                                         </build>
96                                                 </image>
97                                                 <image>
98                                                         <name>openecomp/wildfly:1.0</name>
99                                                         <alias>wildfly</alias>
100                                                         <build>
101
102                                                                 <cleanup>try</cleanup>
103                                                                 <dockerFileDir>docker-files</dockerFileDir>
104                                                                 <dockerFile>docker-files/Dockerfile.wildfly-10</dockerFile>
105
106                                                         </build>
107                                                 </image>
108                                                 <image>
109                                                         <name>openecomp/mso-arquillian:%l</name>
110                                                         <alias>mso-arquillian</alias>
111                                                         <build>
112                                                                 <tags>
113                                                                         <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
114                                                                 </tags>
115                                                                 <cleanup>try</cleanup>
116                                                                 <dockerFileDir>docker-files</dockerFileDir>
117                                                                 <dockerFile>docker-files/Dockerfile.mso-arquillian</dockerFile>
118
119                                                         </build>
120                                                 </image>
121                                                 <image>
122                                                         <name>openecomp/mso:%l</name>
123                                                         <alias>mso</alias>
124                                                         <build>
125                                                                 <tags>
126                                                                         <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
127                                                                 </tags>
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
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>
151                                                         <removeAll>true</removeAll>
152                                                         <image>openecomp/mso-arquillian:%l,openecomp/mso:%l</image>
153                                                 </configuration>
154                                         </execution>
155
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>
172                                                         <image>openecomp/mso-arquillian:%l,openecomp/mso:%l,openecomp/jacoco:1.0</image>
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
190 </project>