Creating infrastructure for aai simulator
[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
10     <artifactId>docker</artifactId>
11     <packaging>pom</packaging>
12     <name>${project.artifactId}</name>
13
14     <build>
15         <finalName>${project.artifactId}-${project.version}</finalName>
16         <plugins>
17             <plugin>
18                 <groupId>io.fabric8</groupId>
19                 <artifactId>docker-maven-plugin</artifactId>
20                 <version>0.28.0</version>
21
22                 <configuration>
23                     <verbose>true</verbose>
24                     <apiVersion>1.23</apiVersion>
25                     <pullRegistry>${docker.pull.registry}</pullRegistry>
26                     <pushRegistry>${docker.push.registry}</pushRegistry>
27
28                     <images>
29                         <image>
30                             <name>jobs/workaround-job-container</name>
31                             <build>
32                                 <cleanup>try</cleanup>
33                                 <dockerFileDir>docker-files</dockerFileDir>
34                                 <dockerFile>Dockerfile.workaround-job-container</dockerFile>
35                             </build>
36                         </image>
37                         <image>
38                             <name>simulators/sdc-simulator</name>
39                             <build>
40                                 <cleanup>try</cleanup>
41                                 <dockerFileDir>docker-files</dockerFileDir>
42                                 <dockerFile>Dockerfile.so-simulator-base-image</dockerFile>
43                                 <tags>
44                                     <tag>${project.version}</tag>
45                                 </tags>
46                                 <assembly>
47                                     <inline>
48                                         <dependencySets>
49                                             <dependencySet>
50                                                 <includes>
51                                                     <include>org.onap.so.simulators:sdc-simulator</include>
52                                                 </includes>
53                                                 <outputFileNameMapping>app.jar</outputFileNameMapping>
54                                             </dependencySet>
55                                         </dependencySets>
56                                     </inline>
57                                 </assembly>
58                             </build>
59                         </image>
60                         <image>
61                             <name>simulators/aai-simulator</name>
62                             <build>
63                                 <cleanup>try</cleanup>
64                                 <dockerFileDir>docker-files</dockerFileDir>
65                                 <dockerFile>Dockerfile.so-simulator-base-image</dockerFile>
66                                 <tags>
67                                     <tag>${project.version}</tag>
68                                 </tags>
69                                 <assembly>
70                                     <inline>
71                                         <dependencySets>
72                                             <dependencySet>
73                                                 <includes>
74                                                     <include>org.onap.so.simulators:aai-simulator</include>
75                                                 </includes>
76                                                 <outputFileNameMapping>app.jar</outputFileNameMapping>
77                                             </dependencySet>
78                                         </dependencySets>
79                                     </inline>
80                                 </assembly>
81                             </build>
82                         </image>
83                     </images>
84                 </configuration>
85
86                 <executions>
87                     <execution>
88                         <id>clean-images</id>
89                         <phase>pre-clean</phase>
90                         <goals>
91                             <goal>remove</goal>
92                         </goals>
93                         <configuration>
94                             <removeAll>true</removeAll>
95                         </configuration>
96                     </execution>
97
98                     <execution>
99                         <id>generate-images</id>
100                         <phase>generate-sources</phase>
101                         <goals>
102                             <goal>build</goal>
103                         </goals>
104                     </execution>
105                 </executions>
106
107             </plugin>
108             <plugin>
109                 <groupId>org.apache.maven.plugins</groupId>
110                 <artifactId>maven-deploy-plugin</artifactId>
111                 <version>2.8</version>
112                 <configuration>
113                     <skip>true</skip>
114                 </configuration>
115             </plugin>
116         </plugins>
117     </build>
118
119     <dependencies>
120
121         <dependency>
122             <groupId>org.onap.so.simulators</groupId>
123             <artifactId>sdc-simulator</artifactId>
124             <version>${project.version}</version>
125         </dependency>
126         <dependency>
127             <groupId>org.onap.so.simulators</groupId>
128             <artifactId>aai-simulator</artifactId>
129             <version>${project.version}</version>
130         </dependency>
131     </dependencies>
132
133
134 </project>