Step-up A1 controller docker image version
[nonrtric.git] / sdnc-a1-controller / oam / installation / sdnc / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4    Modifications Copyright (C) 2019 Nordix Foundation.
5   ================================================================================
6   Licensed under the Apache License, Version 2.0 (the "License");
7   you may not use this file except in compliance with the License.
8   You may obtain a copy of the License at
9
10        http://www.apache.org/licenses/LICENSE-2.0
11
12   Unless required by applicable law or agreed to in writing, software
13   distributed under the License is distributed on an "AS IS" BASIS,
14   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   See the License for the specific language governing permissions and
16   limitations under the License.
17
18   SPDX-License-Identifier: Apache-2.0
19   ============LICENSE_END=========================================================
20 -->
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
22
23         <repositories>
24                 <repository>
25                         <id>onap-releases</id>
26                         <name>onap-releases</name>
27                         <url>https://nexus.onap.org/content/repositories/releases/</url>
28                 </repository>
29         </repositories>
30
31     <parent>
32         <groupId>org.onap.ccsdk.parent</groupId>
33         <artifactId>odlparent-lite</artifactId>
34         <version>1.4.3</version>
35     </parent>
36
37     <modelVersion>4.0.0</modelVersion>
38     <packaging>pom</packaging>
39     <groupId>org.onap.sdnc.oam</groupId>
40     <artifactId>installation-sdnc</artifactId>
41     <version>1.7.3-SNAPSHOT</version>
42
43     <name>sdnc-oam :: installation :: ${project.artifactId}</name>
44     <description>Creates SDN Controller Docker container</description>
45
46     <properties>
47         <image.name>onap/sdnc-aaf-image</image.name>
48         <standalone.image.name>o-ran-sc/nonrtric-a1-controller</standalone.image.name>
49         <standalone.image.version>1.7.4-SNAPSHOT</standalone.image.version>
50         <sdnc.project.version>${project.version}</sdnc.project.version>
51         <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
52         <sdnc.northbound.version>1.7.3-SNAPSHOT</sdnc.northbound.version>
53         <ccsdk.docker.version>0.6.3</ccsdk.docker.version>
54         <ccsdk.features.version>0.6.3</ccsdk.features.version>
55         <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
56         <sdnc.keypass><![CDATA[ff^G9D]yf&r}Ktum@BJ0YB?N]]></sdnc.keypass>
57         <sdnc.secureport>8443</sdnc.secureport>
58         <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
59         <docker.push.phase>deploy</docker.push.phase>
60         <docker.verbose>true</docker.verbose>
61         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
62     </properties>
63
64     <dependencies>
65         <dependency>
66             <groupId>org.onap.sdnc.northbound</groupId>
67             <artifactId>nonrt-ric-api-installer</artifactId>
68             <version>${sdnc.northbound.version}</version>
69             <classifier>repo</classifier>
70             <type>zip</type>
71         </dependency>
72         <dependency>
73             <groupId>org.onap.sdnc.northbound</groupId>
74             <artifactId>sdnc-northbound-features-installer</artifactId>
75             <version>${sdnc.northbound.version}</version>
76             <classifier>repo</classifier>
77             <type>zip</type>
78         </dependency>
79         <dependency>
80             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
81             <artifactId>oofpcipoc-installer</artifactId>
82             <version>${ccsdk.features.version}</version>
83             <classifier>repo</classifier>
84             <type>zip</type>
85         </dependency>
86         <dependency>
87             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
88             <artifactId>sdnr-northbound-features-installer</artifactId>
89             <version>${ccsdk.features.version}</version>
90             <classifier>repo</classifier>
91             <type>zip</type>
92         </dependency>
93         <dependency>
94             <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
95             <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
96             <version>${ccsdk.features.version}</version>
97             <classifier>repo</classifier>
98             <type>zip</type>
99         </dependency>
100     </dependencies>
101
102     <build>
103         <plugins>
104
105
106             <plugin>
107                 <groupId>org.codehaus.groovy.maven</groupId>
108                 <artifactId>gmaven-plugin</artifactId>
109                 <executions>
110                     <execution>
111                         <phase>validate</phase>
112                         <goals>
113                             <goal>execute</goal>
114                         </goals>
115                         <configuration>
116                             <source>${basedir}/../TagVersion.groovy</source>
117                         </configuration>
118                     </execution>
119                 </executions>
120             </plugin>
121
122             <plugin>
123                 <groupId>io.fabric8</groupId>
124                 <artifactId>docker-maven-plugin</artifactId>
125                 <version>0.30.0</version>
126                 <inherited>false</inherited>
127                 <executions>
128                    <execution>
129                      <id>generate-standalone-images</id>
130                      <phase>package</phase>
131                      <goals>
132                       <goal>build</goal>
133                      </goals>
134                      <configuration>
135                       <images>
136                        <image>
137                         <name>${standalone.image.name}:${standalone.image.version}</name>
138                         <build>
139                          <cleanup>try</cleanup>
140                          <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
141                          <dockerFile>standalone.Dockerfile</dockerFile>
142                          <tags>
143                              <tag>${standalone.image.version}</tag>
144                          </tags>
145                         </build>
146                        </image>
147                       </images>
148                      </configuration>
149                    </execution>
150                    <execution>
151                      <id>push-standalone-images</id>
152                      <phase>${docker.push.phase}</phase>
153                      <goals>
154                       <goal>build</goal>
155                       <goal>push</goal>
156                      </goals>
157                      <configuration>
158                        <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
159                        <images>
160                         <image>
161                          <name>${standalone.image.name}:${standalone.image.version}</name>
162                          <build>
163                           <cleanup>try</cleanup>
164                           <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
165                           <dockerFile>standalone.Dockerfile</dockerFile>
166                           <tags>
167                              <tag>${standalone.image.version}</tag>
168                           </tags>
169                          </build>
170                         </image>
171                        </images>
172                      </configuration>
173                   </execution>
174                 </executions>
175             </plugin>
176             <plugin>
177                 <artifactId>maven-resources-plugin</artifactId>
178                 <version>2.6</version>
179                 <executions>
180                     <execution>
181                         <id>copy-dockerfile</id>
182                         <goals>
183                             <goal>copy-resources</goal>
184                         </goals><!-- here the phase you need -->
185                         <phase>validate</phase>
186                         <configuration>
187                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
188                             <resources>
189                                 <resource>
190                                     <directory>src/main/docker</directory>
191                                     <includes>
192                                         <include>standalone.Dockerfile</include>
193                                     </includes>
194                                     <filtering>true</filtering>
195                                 </resource>
196                             </resources>
197                         </configuration>
198                     </execution>
199                     <execution>
200                         <id>copy-scripts</id>
201                         <goals>
202                             <goal>copy-resources</goal>
203                         </goals><!-- here the phase you need -->
204                         <phase>validate</phase>
205                         <configuration>
206                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
207                             <resources>
208                                 <resource>
209                                     <directory>src/main/scripts</directory>
210                                     <includes>
211                                         <include>*.py</include>
212                                         <include>*.sh</include>
213                                     </includes>
214                                     <filtering>false</filtering>
215                                 </resource>
216                             </resources>
217                         </configuration>
218                     </execution>
219                     <execution>
220                         <id>copy-tarballs</id>
221                         <goals>
222                             <goal>copy-resources</goal>
223                         </goals><!-- here the phase you need -->
224                         <phase>validate</phase>
225                         <configuration>
226                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
227                             <resources>
228                                 <resource>
229                                     <directory>src/main/resources</directory>
230                                     <includes>
231                                         <include>idmlight.db.mv.db</include>
232                                         <include>truststoreONAPall.jks</include>
233                                         <include>aaa-app-config.xml</include>
234                                     </includes>
235                                     <filtering>false</filtering>
236                                 </resource>
237                             </resources>
238                         </configuration>
239                     </execution>
240                     <execution>
241                         <id>copy-data</id>
242                         <goals>
243                             <goal>copy-resources</goal>
244                         </goals><!-- here the phase you need -->
245                         <phase>validate</phase>
246                         <configuration>
247                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
248                             <resources>
249                                 <resource>
250                                     <directory>src/main/resources</directory>
251                                     <includes>
252                                         <include>*.dump</include>
253                                     </includes>
254                                     <filtering>false</filtering>
255                                 </resource>
256                             </resources>
257                         </configuration>
258                     </execution>
259                     <execution>
260                         <id>copy-properties</id>
261                         <goals>
262                             <goal>copy-resources</goal>
263                         </goals><!-- here the phase you need -->
264                         <phase>validate</phase>
265                         <configuration>
266                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
267                             <resources>
268                                 <resource>
269                                     <directory>../src/main/properties</directory>
270                                     <includes>
271                                         <include>*.properties</include>
272                                         <include>*.props</include>
273                                         <include>*.csv</include>
274                                     </includes>
275                                     <filtering>false</filtering>
276                                 </resource>
277                             </resources>
278                         </configuration>
279                     </execution>
280                     <execution>
281                         <id>copy-keystores</id>
282                         <goals>
283                             <goal>copy-resources</goal>
284                         </goals><!-- here the phase you need -->
285                         <phase>validate</phase>
286                         <configuration>
287                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
288                             <resources>
289                                 <resource>
290                                     <directory>../src/main/stores</directory>
291                                     <includes>
292                                         <include>*.jks</include>
293                                         <include>*.keyfile</include>
294                                         <include>*.p12</include>
295                                     </includes>
296                                     <filtering>false</filtering>
297                                 </resource>
298                             </resources>
299                         </configuration>
300                     </execution>
301                 </executions>
302             </plugin>
303             <plugin>
304                 <groupId>org.apache.maven.plugins</groupId>
305                 <artifactId>maven-dependency-plugin</artifactId>
306                 <version>3.0.2</version>
307                 <executions>
308                     <execution>
309                         <id>unpack sdnc features</id>
310                         <phase>generate-sources</phase>
311                         <goals>
312                             <goal>unpack-dependencies</goal>
313                         </goals>
314                         <configuration>
315                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
316                             <excludeTransitive>true</excludeTransitive>
317                         </configuration>
318                     </execution>
319                     <execution>
320                         <id>unpack dgs</id>
321                         <phase>generate-sources</phase>
322                         <goals>
323                             <goal>unpack</goal>
324                         </goals>
325                         <configuration>
326                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
327                             <artifactItems>
328                                 <artifactItem>
329                                     <groupId>${project.groupId}</groupId>
330                                     <artifactId>platform-logic-installer</artifactId>
331                                     <version>${project.version}</version>
332                                     <type>zip</type>
333                                 </artifactItem>
334                             </artifactItems>
335                         </configuration>
336                     </execution>
337                 </executions>
338             </plugin>
339             <plugin>
340                 <artifactId>exec-maven-plugin</artifactId>
341                 <groupId>org.codehaus.mojo</groupId>
342                 <version>1.5.0</version>
343                 <executions>
344                     <execution>
345                         <id>change shell permissions</id>
346                         <phase>process-sources</phase>
347                         <goals>
348                             <goal>exec</goal>
349                         </goals>
350                         <configuration>
351                             <executable>/usr/bin/find</executable>
352                             <arguments>
353                                 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
354                                 <argument>-name</argument>
355                                 <argument>*.sh</argument>
356                                 <argument>-exec</argument>
357                                 <argument>chmod</argument>
358                                 <argument>+x</argument>
359                                 <argument>{}</argument>
360                                 <argument>;</argument>
361                             </arguments>
362                         </configuration>
363                     </execution>
364                 </executions>
365             </plugin>
366         </plugins>
367     </build>
368     <organization>
369         <name>ONAP</name>
370     </organization>
371 </project>