blob: 81293361085f50fe987d8de9c3a071b6dcd23cfe [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>
21 </properties>
22
23 <build>
24 <finalName>${project.artifactId}-${project.version}</finalName>
25 <plugins>
26 <plugin>
27 <groupId>io.fabric8</groupId>
28 <artifactId>docker-maven-plugin</artifactId>
29 <version>0.16.5</version>
30
31 <configuration>
32 <verbose>true</verbose>
33 <apiVersion>1.23</apiVersion>
Anaël Clossonf15b97e2017-02-08 10:46:48 +010034
ChrisC025301d2017-01-31 11:40:03 +010035 <images>
36 <image>
Anaël Closson5167cc22017-02-08 11:14:58 +010037 <name>openecomp/jacoco:1.0</name>
ChrisC025301d2017-01-31 11:40:03 +010038 <alias>jacoco</alias>
39 <build>
40 <cleanup>try</cleanup>
41 <dockerFileDir>docker-files</dockerFileDir>
42 <dockerFile>docker-files/Dockerfile.jacoco</dockerFile>
Anaël Clossonf15b97e2017-02-08 10:46:48 +010043
ChrisC025301d2017-01-31 11:40:03 +010044 </build>
45 </image>
46 <image>
Anaël Closson5167cc22017-02-08 11:14:58 +010047 <name>openecomp/ubuntu-update:1.0</name>
ChrisC025301d2017-01-31 11:40:03 +010048 <alias>ubuntu-update</alias>
49 <build>
50
51 <cleanup>try</cleanup>
52 <dockerFileDir>docker-files</dockerFileDir>
53 <dockerFile>docker-files/Dockerfile.ubuntu-16.04-update</dockerFile>
Anaël Clossonf15b97e2017-02-08 10:46:48 +010054
ChrisC025301d2017-01-31 11:40:03 +010055 </build>
56 </image>
57 <image>
Anaël Closson5167cc22017-02-08 11:14:58 +010058 <name>openecomp/wildfly:1.0</name>
ChrisC025301d2017-01-31 11:40:03 +010059 <alias>wildfly</alias>
60 <build>
61
62 <cleanup>try</cleanup>
63 <dockerFileDir>docker-files</dockerFileDir>
64 <dockerFile>docker-files/Dockerfile.wildfly-10</dockerFile>
Anaël Clossonf15b97e2017-02-08 10:46:48 +010065
ChrisC025301d2017-01-31 11:40:03 +010066 </build>
67 </image>
68 <image>
Anaël Closson5167cc22017-02-08 11:14:58 +010069 <name>openecomp/mso-arquillian:%l</name>
ChrisC025301d2017-01-31 11:40:03 +010070 <alias>mso-arquillian</alias>
71 <build>
72
73 <cleanup>try</cleanup>
74 <dockerFileDir>docker-files</dockerFileDir>
75 <dockerFile>docker-files/Dockerfile.mso-arquillian</dockerFile>
Anaël Clossonf15b97e2017-02-08 10:46:48 +010076
ChrisC025301d2017-01-31 11:40:03 +010077 </build>
78 </image>
79 <image>
Anaël Closson5167cc22017-02-08 11:14:58 +010080 <name>openecomp/mso:%l</name>
ChrisC025301d2017-01-31 11:40:03 +010081 <alias>mso</alias>
82 <build>
83
84 <cleanup>try</cleanup>
85 <dockerFileDir>docker-files</dockerFileDir>
86 <dockerFile>docker-files/Dockerfile.mso-chef-final</dockerFile>
87 <assembly>
88 <basedir>/</basedir>
89
90 <user>jboss:jboss:jboss</user>
91 <basedir>/opt/jboss/wildfly/standalone/deployments</basedir>
92 <descriptor>../../../../deliveries/src/main/assembly/war-pack/mso-wars.xml</descriptor>
93 </assembly>
94 </build>
95 </image>
96
ChrisC025301d2017-01-31 11:40:03 +010097 </images>
98 </configuration>
99 <executions>
100 <execution>
101 <id>clean-images</id>
102 <phase>pre-clean</phase>
103 <goals>
104 <goal>remove</goal>
105 </goals>
106 <configuration>
Anaël Clossonf15b97e2017-02-08 10:46:48 +0100107 <removeAll>true</removeAll>
Anaël Closson5167cc22017-02-08 11:14:58 +0100108 <image>openecomp/mso-arquillian:%l,openecomp/mso:%l</image>
ChrisC025301d2017-01-31 11:40:03 +0100109 </configuration>
110 </execution>
Anaël Clossonf15b97e2017-02-08 10:46:48 +0100111
ChrisC025301d2017-01-31 11:40:03 +0100112 <execution>
113 <id>generate-images</id>
114 <phase>generate-sources</phase>
115 <goals>
116 <goal>build</goal>
117 </goals>
118 </execution>
119
120 <execution>
121 <id>push-images</id>
122 <phase>deploy</phase>
123 <goals>
124 <goal>build</goal>
125 <goal>push</goal>
126 </goals>
127 <configuration>
Anaël Closson5167cc22017-02-08 11:14:58 +0100128 <image>openecomp/mso-arquillian:%l,openecomp/mso:%l,openecomp/jacoco:1.0</image>
ChrisC025301d2017-01-31 11:40:03 +0100129 </configuration>
130 </execution>
131 </executions>
132
133 </plugin>
134
135 <plugin>
136 <groupId>org.apache.maven.plugins</groupId>
137 <artifactId>maven-deploy-plugin</artifactId>
138 <version>2.8</version>
139 <configuration>
140 <skip>true</skip>
141 </configuration>
142 </plugin>
143 </plugins>
144 </build>
145
Anaël Clossonf15b97e2017-02-08 10:46:48 +0100146</project>