[SO] Creation of kind cluster for CNFM CSIT
[integration/csit.git] / plans / so / integration-etsi-testing / so-simulators / package / 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     <parent>
4         <artifactId>package</artifactId>
5         <groupId>org.onap.so.simulators</groupId>
6         <version>1.0-SNAPSHOT</version>
7     </parent>
8     <modelVersion>4.0.0</modelVersion>
9     <artifactId>docker</artifactId>
10     <packaging>pom</packaging>
11     <name>${project.artifactId}</name>
12
13     <properties>
14         <skip-kind-cluster>true</skip-kind-cluster>
15         <version-fabric8>0.28.0</version-fabric8>
16         <version-apiVersion>1.23</version-apiVersion>
17     </properties>
18     <build>
19         <finalName>${project.artifactId}-${project.version}</finalName>
20         <plugins>
21             <plugin>
22                 <groupId>io.fabric8</groupId>
23                 <artifactId>docker-maven-plugin</artifactId>
24                 <version>${version-fabric8}</version>
25                 <configuration>
26                     <verbose>true</verbose>
27                     <apiVersion>${version-apiVersion}</apiVersion>
28                     <pullRegistry>${docker.pull.registry}</pullRegistry>
29                     <pushRegistry>${docker.push.registry}</pushRegistry>
30                     <images>
31                         <image>
32                             <name>jobs/workaround-job-container</name>
33                             <build>
34                                 <cleanup>try</cleanup>
35                                 <dockerFileDir>docker-files</dockerFileDir>
36                                 <dockerFile>Dockerfile.workaround-job-container</dockerFile>
37                             </build>
38                         </image>
39                         <image>
40                             <name>simulators/sdc-simulator</name>
41                             <build>
42                                 <cleanup>try</cleanup>
43                                 <dockerFileDir>docker-files</dockerFileDir>
44                                 <dockerFile>Dockerfile.so-simulator-base-image</dockerFile>
45                                 <tags>
46                                     <tag>${project.version}</tag>
47                                 </tags>
48                                 <assembly>
49                                     <inline>
50                                         <dependencySets>
51                                             <dependencySet>
52                                                 <includes>
53                                                     <include>org.onap.so.simulators:sdc-simulator</include>
54                                                 </includes>
55                                                 <outputFileNameMapping>app.jar</outputFileNameMapping>
56                                             </dependencySet>
57                                         </dependencySets>
58                                     </inline>
59                                 </assembly>
60                             </build>
61                         </image>
62                         <image>
63                             <name>simulators/aai-simulator</name>
64                             <build>
65                                 <cleanup>try</cleanup>
66                                 <dockerFileDir>docker-files</dockerFileDir>
67                                 <dockerFile>Dockerfile.so-simulator-base-image</dockerFile>
68                                 <tags>
69                                     <tag>${project.version}</tag>
70                                 </tags>
71                                 <assembly>
72                                     <inline>
73                                         <dependencySets>
74                                             <dependencySet>
75                                                 <includes>
76                                                     <include>org.onap.so.simulators:aai-simulator</include>
77                                                 </includes>
78                                                 <outputFileNameMapping>app.jar</outputFileNameMapping>
79                                             </dependencySet>
80                                         </dependencySets>
81                                     </inline>
82                                 </assembly>
83                             </build>
84                         </image>
85                         <image>
86                             <name>simulators/sdnc-simulator</name>
87                             <build>
88                                 <cleanup>try</cleanup>
89                                 <dockerFileDir>docker-files</dockerFileDir>
90                                 <dockerFile>Dockerfile.so-simulator-base-image</dockerFile>
91                                 <tags>
92                                     <tag>${project.version}</tag>
93                                 </tags>
94                                 <assembly>
95                                     <inline>
96                                         <dependencySets>
97                                             <dependencySet>
98                                                 <includes>
99                                                     <include>org.onap.so.simulators:sdnc-simulator</include>
100                                                 </includes>
101                                                 <outputFileNameMapping>app.jar</outputFileNameMapping>
102                                             </dependencySet>
103                                         </dependencySets>
104                                     </inline>
105                                 </assembly>
106                             </build>
107                         </image>
108                         <image>
109                             <name>simulators/multicloud-simulator</name>
110                             <build>
111                                 <cleanup>try</cleanup>
112                                 <dockerFileDir>docker-files</dockerFileDir>
113                                 <dockerFile>Dockerfile.so-simulator-base-image</dockerFile>
114                                 <tags>
115                                     <tag>${project.version}</tag>
116                                 </tags>
117                                 <assembly>
118                                     <inline>
119                                         <dependencySets>
120                                             <dependencySet>
121                                                 <includes>
122                                                     <include>org.onap.so.simulators:multicloud-simulator</include>
123                                                 </includes>
124                                                 <outputFileNameMapping>app.jar</outputFileNameMapping>
125                                             </dependencySet>
126                                         </dependencySets>
127                                     </inline>
128                                 </assembly>
129                             </build>
130                         </image>
131                         <image>
132                             <name>simulators/vnfm-simulator</name>
133                             <build>
134                                 <cleanup>try</cleanup>
135                                 <dockerFileDir>docker-files</dockerFileDir>
136                                 <dockerFile>Dockerfile.so-simulator-base-image</dockerFile>
137                                 <tags>
138                                     <tag>${project.version}</tag>
139                                 </tags>
140                                 <assembly>
141                                     <inline>
142                                         <dependencySets>
143                                             <dependencySet>
144                                                 <includes>
145                                                     <include>org.onap.so.simulators.vnfm:vnfm-service</include>
146                                                 </includes>
147                                                 <outputFileNameMapping>app.jar</outputFileNameMapping>
148                                             </dependencySet>
149                                         </dependencySets>
150                                     </inline>
151                                 </assembly>
152                             </build>
153                         </image>
154                         <image>
155                             <name>kind-cluster</name>
156                             <build>
157                                 <cleanup>try</cleanup>
158                                 <dockerFileDir>docker-files/kind-cluster</dockerFileDir>
159                                 <dockerFile>Dockerfile.kind-cluster</dockerFile>
160                                 <skip>${skip-kind-cluster}</skip>
161                             </build>
162                         </image>
163                     </images>
164                 </configuration>
165                 <executions>
166                     <execution>
167                         <id>clean-images</id>
168                         <phase>pre-clean</phase>
169                         <goals>
170                             <goal>remove</goal>
171                         </goals>
172                         <configuration>
173                             <removeAll>true</removeAll>
174                         </configuration>
175                     </execution>
176                     <execution>
177                         <id>generate-images</id>
178                         <phase>generate-sources</phase>
179                         <goals>
180                             <goal>build</goal>
181                         </goals>
182                     </execution>
183                 </executions>
184             </plugin>
185             <plugin>
186                 <groupId>org.apache.maven.plugins</groupId>
187                 <artifactId>maven-deploy-plugin</artifactId>
188                 <version>2.8</version>
189                 <configuration>
190                     <skip>true</skip>
191                 </configuration>
192             </plugin>
193         </plugins>
194     </build>
195     <dependencies>
196         <dependency>
197             <groupId>${project.parent.groupId}</groupId>
198             <artifactId>sdc-simulator</artifactId>
199             <version>${project.version}</version>
200         </dependency>
201         <dependency>
202             <groupId>${project.parent.groupId}</groupId>
203             <artifactId>aai-simulator</artifactId>
204             <version>${project.version}</version>
205         </dependency>
206         <dependency>
207             <groupId>${project.parent.groupId}</groupId>
208             <artifactId>sdnc-simulator</artifactId>
209             <version>${project.version}</version>
210         </dependency>
211         <dependency>
212             <groupId>${project.parent.groupId}</groupId>
213             <artifactId>multicloud-simulator</artifactId>
214             <version>${project.version}</version>
215         </dependency>
216         <dependency>
217             <groupId>org.onap.so.simulators.vnfm</groupId>
218             <artifactId>vnfm-service</artifactId>
219             <version>${project.version}</version>
220         </dependency>
221     </dependencies>
222 </project>