Change tag of A1 controller docker image
[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         <sdnc.project.version>${project.version}</sdnc.project.version>
50         <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
51         <sdnc.northbound.version>1.7.3-SNAPSHOT</sdnc.northbound.version>
52         <ccsdk.docker.version>0.6.3</ccsdk.docker.version>
53         <ccsdk.features.version>0.6.3</ccsdk.features.version>
54         <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
55         <sdnc.keypass><![CDATA[ff^G9D]yf&r}Ktum@BJ0YB?N]]></sdnc.keypass>
56         <sdnc.secureport>8443</sdnc.secureport>
57         <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
58         <docker.push.phase>deploy</docker.push.phase>
59         <docker.verbose>true</docker.verbose>
60         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
61     </properties>
62
63     <dependencies>
64         <dependency>
65             <groupId>org.onap.sdnc.northbound</groupId>
66             <artifactId>generic-resource-api-installer</artifactId>
67             <version>${sdnc.northbound.version}</version>
68             <classifier>repo</classifier>
69             <type>zip</type>
70         </dependency>
71         <dependency>
72             <groupId>org.onap.sdnc.northbound</groupId>
73             <artifactId>nonrt-ric-api-installer</artifactId>
74             <version>${sdnc.northbound.version}</version>
75             <classifier>repo</classifier>
76             <type>zip</type>
77         </dependency>
78         <dependency>
79             <groupId>org.onap.sdnc.northbound</groupId>
80             <artifactId>vnfapi-installer</artifactId>
81             <version>${sdnc.northbound.version}</version>
82             <classifier>repo</classifier>
83             <type>zip</type>
84         </dependency>
85         <dependency>
86             <groupId>org.onap.sdnc.northbound</groupId>
87             <artifactId>vnftools-installer</artifactId>
88             <version>${sdnc.northbound.version}</version>
89             <classifier>repo</classifier>
90             <type>zip</type>
91         </dependency>
92         <dependency>
93             <groupId>org.onap.sdnc.northbound</groupId>
94             <artifactId>sdnc-northbound-features-installer</artifactId>
95             <version>${sdnc.northbound.version}</version>
96             <classifier>repo</classifier>
97             <type>zip</type>
98         </dependency>
99
100         <dependency>
101             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
102             <artifactId>oofpcipoc-installer</artifactId>
103             <version>${ccsdk.features.version}</version>
104             <classifier>repo</classifier>
105             <type>zip</type>
106         </dependency>
107
108         <dependency>
109             <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
110             <artifactId>sdnr-northbound-features-installer</artifactId>
111             <version>${ccsdk.features.version}</version>
112             <classifier>repo</classifier>
113             <type>zip</type>
114         </dependency>
115         <dependency>
116             <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
117             <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
118             <version>${ccsdk.features.version}</version>
119             <classifier>repo</classifier>
120             <type>zip</type>
121         </dependency>
122     </dependencies>
123
124     <build>
125         <plugins>
126
127
128             <plugin>
129                 <groupId>org.codehaus.groovy.maven</groupId>
130                 <artifactId>gmaven-plugin</artifactId>
131                 <executions>
132                     <execution>
133                         <phase>validate</phase>
134                         <goals>
135                             <goal>execute</goal>
136                         </goals>
137                         <configuration>
138                             <source>${basedir}/../TagVersion.groovy</source>
139                         </configuration>
140                     </execution>
141                 </executions>
142             </plugin>
143
144             <plugin>
145                 <groupId>io.fabric8</groupId>
146                 <artifactId>docker-maven-plugin</artifactId>
147                 <version>0.30.0</version>
148                 <inherited>false</inherited>
149                 <executions>
150                    <execution>
151                      <id>generate-standalone-images</id>
152                      <phase>package</phase>
153                      <goals>
154                       <goal>build</goal>
155                      </goals>
156                      <configuration>
157                       <images>
158                        <image>
159                         <name>${standalone.image.name}:${project.version}</name>
160                         <build>
161                          <cleanup>try</cleanup>
162                          <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
163                          <dockerFile>standalone.Dockerfile</dockerFile>
164                          <tags>
165                              <tag>${project.version}</tag>
166                          </tags>
167                         </build>
168                        </image>
169                       </images>
170                      </configuration>
171                    </execution>
172                    <execution>
173                      <id>push-standalone-images</id>
174                      <phase>${docker.push.phase}</phase>
175                      <goals>
176                       <goal>build</goal>
177                       <goal>push</goal>
178                      </goals>
179                      <configuration>
180                        <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
181                        <images>
182                         <image>
183                          <name>${standalone.image.name}:${project.version}</name>
184                          <build>
185                           <cleanup>try</cleanup>
186                           <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
187                           <dockerFile>standalone.Dockerfile</dockerFile>
188                           <tags>
189                              <tag>${project.version}</tag>
190                           </tags>
191                          </build>
192                         </image>
193                        </images>
194                      </configuration>
195                   </execution>
196                 </executions>
197             </plugin>
198             <plugin>
199                 <artifactId>maven-resources-plugin</artifactId>
200                 <version>2.6</version>
201                 <executions>
202                     <execution>
203                         <id>copy-dockerfile</id>
204                         <goals>
205                             <goal>copy-resources</goal>
206                         </goals><!-- here the phase you need -->
207                         <phase>validate</phase>
208                         <configuration>
209                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
210                             <resources>
211                                 <resource>
212                                     <directory>src/main/docker</directory>
213                                     <includes>
214                                         <include>standalone.Dockerfile</include>
215                                     </includes>
216                                     <filtering>true</filtering>
217                                 </resource>
218                             </resources>
219                         </configuration>
220                     </execution>
221                     <execution>
222                         <id>copy-scripts</id>
223                         <goals>
224                             <goal>copy-resources</goal>
225                         </goals><!-- here the phase you need -->
226                         <phase>validate</phase>
227                         <configuration>
228                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
229                             <resources>
230                                 <resource>
231                                     <directory>src/main/scripts</directory>
232                                     <includes>
233                                         <include>*.py</include>
234                                         <include>*.sh</include>
235                                     </includes>
236                                     <filtering>false</filtering>
237                                 </resource>
238                             </resources>
239                         </configuration>
240                     </execution>
241                     <execution>
242                         <id>copy-tarballs</id>
243                         <goals>
244                             <goal>copy-resources</goal>
245                         </goals><!-- here the phase you need -->
246                         <phase>validate</phase>
247                         <configuration>
248                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
249                             <resources>
250                                 <resource>
251                                     <directory>src/main/resources</directory>
252                                     <includes>
253                                         <include>idmlight.db.mv.db</include>
254                                         <include>truststoreONAPall.jks</include>
255                                         <include>aaa-app-config.xml</include>
256                                     </includes>
257                                     <filtering>false</filtering>
258                                 </resource>
259                             </resources>
260                         </configuration>
261                     </execution>
262                     <execution>
263                         <id>copy-data</id>
264                         <goals>
265                             <goal>copy-resources</goal>
266                         </goals><!-- here the phase you need -->
267                         <phase>validate</phase>
268                         <configuration>
269                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
270                             <resources>
271                                 <resource>
272                                     <directory>src/main/resources</directory>
273                                     <includes>
274                                         <include>*.dump</include>
275                                     </includes>
276                                     <filtering>false</filtering>
277                                 </resource>
278                             </resources>
279                         </configuration>
280                     </execution>
281                     <execution>
282                         <id>copy-properties</id>
283                         <goals>
284                             <goal>copy-resources</goal>
285                         </goals><!-- here the phase you need -->
286                         <phase>validate</phase>
287                         <configuration>
288                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
289                             <resources>
290                                 <resource>
291                                     <directory>../src/main/properties</directory>
292                                     <includes>
293                                         <include>*.properties</include>
294                                         <include>*.props</include>
295                                         <include>*.csv</include>
296                                     </includes>
297                                     <filtering>false</filtering>
298                                 </resource>
299                             </resources>
300                         </configuration>
301                     </execution>
302                     <execution>
303                         <id>copy-keystores</id>
304                         <goals>
305                             <goal>copy-resources</goal>
306                         </goals><!-- here the phase you need -->
307                         <phase>validate</phase>
308                         <configuration>
309                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
310                             <resources>
311                                 <resource>
312                                     <directory>../src/main/stores</directory>
313                                     <includes>
314                                         <include>*.jks</include>
315                                         <include>*.keyfile</include>
316                                         <include>*.p12</include>
317                                     </includes>
318                                     <filtering>false</filtering>
319                                 </resource>
320                             </resources>
321                         </configuration>
322                     </execution>
323                 </executions>
324             </plugin>
325             <plugin>
326                 <groupId>org.apache.maven.plugins</groupId>
327                 <artifactId>maven-dependency-plugin</artifactId>
328                 <version>3.0.2</version>
329                 <executions>
330                     <execution>
331                         <id>unpack sdnc features</id>
332                         <phase>generate-sources</phase>
333                         <goals>
334                             <goal>unpack-dependencies</goal>
335                         </goals>
336                         <configuration>
337                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
338                             <excludeTransitive>true</excludeTransitive>
339                         </configuration>
340                     </execution>
341                     <execution>
342                         <id>unpack dgs</id>
343                         <phase>generate-sources</phase>
344                         <goals>
345                             <goal>unpack</goal>
346                         </goals>
347                         <configuration>
348                             <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
349                             <artifactItems>
350                                 <artifactItem>
351                                     <groupId>${project.groupId}</groupId>
352                                     <artifactId>platform-logic-installer</artifactId>
353                                     <version>${project.version}</version>
354                                     <type>zip</type>
355                                 </artifactItem>
356                             </artifactItems>
357                         </configuration>
358                     </execution>
359                 </executions>
360             </plugin>
361             <plugin>
362                 <artifactId>exec-maven-plugin</artifactId>
363                 <groupId>org.codehaus.mojo</groupId>
364                 <version>1.5.0</version>
365                 <executions>
366                     <execution>
367                         <id>change shell permissions</id>
368                         <phase>process-sources</phase>
369                         <goals>
370                             <goal>exec</goal>
371                         </goals>
372                         <configuration>
373                             <executable>/usr/bin/find</executable>
374                             <arguments>
375                                 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
376                                 <argument>-name</argument>
377                                 <argument>*.sh</argument>
378                                 <argument>-exec</argument>
379                                 <argument>chmod</argument>
380                                 <argument>+x</argument>
381                                 <argument>{}</argument>
382                                 <argument>;</argument>
383                             </arguments>
384                         </configuration>
385                     </execution>
386                 </executions>
387             </plugin>
388         </plugins>
389     </build>
390     <organization>
391         <name>ONAP</name>
392     </organization>
393 </project>