blob: 5ea7a9f47d00a33b488c7154a9c0640058c28c28 [file] [log] [blame]
Avi Zivc175a0d2018-03-15 13:21:44 +02001<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
4
5 <name>openecomp-sdc-docker-db-init</name>
6 <groupId>org.openecomp.sdc</groupId>
7 <artifactId>openecomp-sdc-docker-db-init</artifactId>
8 <packaging>pom</packaging>
9
10 <url>http://maven.apache.org</url>
11
12 <parent>
13 <groupId>org.openecomp.sdc</groupId>
14 <artifactId>openecomp-sdc-docker-dist</artifactId>
shrek200065f0aa32020-02-02 10:40:15 +020015 <version>1.6.1-SNAPSHOT</version>
Avi Zivc175a0d2018-03-15 13:21:44 +020016 </parent>
17
18
19 <properties>
20 <docker.image.name>sdc-onboard-cassandra-init</docker.image.name>
Ben David, Elad (eb7504)ee64a642019-11-03 16:19:16 +020021 <docker.namespace>onap</docker.namespace>
22 <docker.password>docker</docker.password>
23 <docker.username>docker</docker.username>
24 <docker.registry>nexus3.onap.org:10001</docker.registry>
Avi Zivc175a0d2018-03-15 13:21:44 +020025 </properties>
Ben David, Elad (eb7504)ee64a642019-11-03 16:19:16 +020026
Avi Zivc175a0d2018-03-15 13:21:44 +020027 <build>
28 <plugins>
29 <plugin>
30 <artifactId>maven-resources-plugin</artifactId>
31 <version>3.0.2</version>
32 <executions>
33 <execution>
34 <id>copy-resources-war</id>
35 <phase>verify</phase>
36 <goals>
37 <goal>copy-resources</goal>
38 </goals>
39 <configuration>
40 <outputDirectory>${project.basedir}/artifacts</outputDirectory>
41 <resources>
42 <resource>
43 <directory>
44 ${project.parent.basedir}/../../openecomp-be/tools/install/database
45 </directory>
46 <includes>
47 <include>init_keyspaces.cql</include>
48 <include>init_schemas.cql</include>
Ben David, Elad (eb7504)dd22ca72019-11-04 10:53:24 +020049 <include>alter_tables.cql</include>
Avi Zivc175a0d2018-03-15 13:21:44 +020050 </includes>
51 </resource>
52 </resources>
53 </configuration>
54 </execution>
55 </executions>
56 </plugin>
57 <plugin>
58 <groupId>io.fabric8</groupId>
59 <artifactId>docker-maven-plugin</artifactId>
Avi Zivc175a0d2018-03-15 13:21:44 +020060
61 <configuration>
Avi Zivc175a0d2018-03-15 13:21:44 +020062 <apiVersion>1.23</apiVersion>
63 <registry>nexus3.onap.org:10001</registry>
64 <authConfig>
65 <pull>
Ben David, Elad (eb7504)ee64a642019-11-03 16:19:16 +020066 <username>${docker.username}</username>
67 <password>${docker.password}</password>
Avi Zivc175a0d2018-03-15 13:21:44 +020068 </pull>
69 </authConfig>
70 <images>
71
72 <!-- Build backend image -->
73 <image>
Ben David, Elad (eb7504)ee64a642019-11-03 16:19:16 +020074 <name>${docker.namespace}/${docker.image.name}</name>
Avi Zivc175a0d2018-03-15 13:21:44 +020075 <alias>${docker.image.name}</alias>
76 <build>
77 <cleanup>try</cleanup>
78 <dockerFileDir>${project.basedir}/artifacts</dockerFileDir>
79 <tags>
80 <tag>${docker.tag}</tag>
81 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
82 </tags>
83 </build>
84 </image>
85 </images>
86 </configuration>
87 <executions>
88 <execution>
89 <id>clean-images</id>
90 <phase>pre-clean</phase>
91 <goals>
92 <goal>remove</goal>
93 </goals>
94 <configuration>
95 <removeAll>true</removeAll>
Ben David, Elad (eb7504)ee64a642019-11-03 16:19:16 +020096 <image>${docker.namespace}/${docker.image.name}</image>
Avi Zivc175a0d2018-03-15 13:21:44 +020097 </configuration>
98 </execution>
99
100 <execution>
101 <id>generate-images</id>
102 <phase>install</phase>
103 <goals>
104 <goal>build</goal>
105 </goals>
106 </execution>
107
108 <execution>
109 <id>push-images</id>
110 <phase>deploy</phase>
111 <goals>
112 <goal>push</goal>
113 </goals>
114 <configuration>
Ben David, Elad (eb7504)ee64a642019-11-03 16:19:16 +0200115 <image>${docker.namespace}/${docker.image.name}</image>
Avi Zivc175a0d2018-03-15 13:21:44 +0200116 </configuration>
117 </execution>
118 </executions>
119 </plugin>
120 </plugins>
121 </build>
122</project>