blob: 1c2342315934a025954ec17aaa32e24b9fd4c7c5 [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>
Avi Zivc175a0d2018-03-15 13:21:44 +02006 <artifactId>openecomp-sdc-docker-db-init</artifactId>
7 <packaging>pom</packaging>
8
9 <url>http://maven.apache.org</url>
10
11 <parent>
12 <groupId>org.openecomp.sdc</groupId>
13 <artifactId>openecomp-sdc-docker-dist</artifactId>
MichaelMorris58787cb2021-09-20 09:11:18 +010014 <version>1.9.2-SNAPSHOT</version>
Avi Zivc175a0d2018-03-15 13:21:44 +020015 </parent>
16
17
18 <properties>
19 <docker.image.name>sdc-onboard-cassandra-init</docker.image.name>
Ben David, Elad (eb7504)ee64a642019-11-03 16:19:16 +020020 <docker.namespace>onap</docker.namespace>
21 <docker.password>docker</docker.password>
22 <docker.username>docker</docker.username>
23 <docker.registry>nexus3.onap.org:10001</docker.registry>
Avi Zivc175a0d2018-03-15 13:21:44 +020024 </properties>
Ben David, Elad (eb7504)ee64a642019-11-03 16:19:16 +020025
Avi Zivc175a0d2018-03-15 13:21:44 +020026 <build>
27 <plugins>
28 <plugin>
andre.schmidb8bfef32021-08-12 23:05:15 +010029 <groupId>org.apache.maven.plugins</groupId>
30 <artifactId>maven-clean-plugin</artifactId>
31 <executions>
32 <execution>
33 <id>clean-docker-artifacts</id>
34 <phase>clean</phase>
35 <goals>
36 <goal>clean</goal>
37 </goals>
38 <configuration>
39 <filesets>
40 <fileset>
41 <directory>
42 artifacts
43 </directory>
44 <followSymlinks>false</followSymlinks>
45 <includes>
46 <include>init_keyspaces.cql</include>
47 <include>init_schemas.cql</include>
48 <include>upgrade-scripts/**</include>
49 </includes>
50 </fileset>
51 </filesets>
52 </configuration>
53 </execution>
54 </executions>
55 </plugin>
56 <plugin>
Avi Zivc175a0d2018-03-15 13:21:44 +020057 <artifactId>maven-resources-plugin</artifactId>
58 <version>3.0.2</version>
59 <executions>
60 <execution>
61 <id>copy-resources-war</id>
62 <phase>verify</phase>
63 <goals>
64 <goal>copy-resources</goal>
65 </goals>
66 <configuration>
67 <outputDirectory>${project.basedir}/artifacts</outputDirectory>
68 <resources>
69 <resource>
70 <directory>
71 ${project.parent.basedir}/../../openecomp-be/tools/install/database
72 </directory>
73 <includes>
74 <include>init_keyspaces.cql</include>
75 <include>init_schemas.cql</include>
andre.schmidb8bfef32021-08-12 23:05:15 +010076 <include>upgrade-scripts/**</include>
Avi Zivc175a0d2018-03-15 13:21:44 +020077 </includes>
78 </resource>
79 </resources>
80 </configuration>
81 </execution>
82 </executions>
83 </plugin>
84 <plugin>
85 <groupId>io.fabric8</groupId>
86 <artifactId>docker-maven-plugin</artifactId>
Avi Zivc175a0d2018-03-15 13:21:44 +020087
88 <configuration>
sebdetdf353be2020-09-21 22:13:05 +020089 <verbose>${verbose}</verbose>
sebdet591810d2020-09-17 15:07:23 +020090 <apiVersion>${docker.api.version}</apiVersion>
Avi Zivc175a0d2018-03-15 13:21:44 +020091 <registry>nexus3.onap.org:10001</registry>
92 <authConfig>
93 <pull>
Ben David, Elad (eb7504)ee64a642019-11-03 16:19:16 +020094 <username>${docker.username}</username>
95 <password>${docker.password}</password>
Avi Zivc175a0d2018-03-15 13:21:44 +020096 </pull>
97 </authConfig>
98 <images>
99
100 <!-- Build backend image -->
101 <image>
Ben David, Elad (eb7504)ee64a642019-11-03 16:19:16 +0200102 <name>${docker.namespace}/${docker.image.name}</name>
Avi Zivc175a0d2018-03-15 13:21:44 +0200103 <alias>${docker.image.name}</alias>
104 <build>
105 <cleanup>try</cleanup>
106 <dockerFileDir>${project.basedir}/artifacts</dockerFileDir>
107 <tags>
sebdetb988cb62020-09-25 15:48:10 +0200108 <tag>latest</tag>
109 <tag>
110 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
111 </tag>
112 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag>
Avi Zivc175a0d2018-03-15 13:21:44 +0200113 </tags>
114 </build>
115 </image>
116 </images>
117 </configuration>
118 <executions>
119 <execution>
120 <id>clean-images</id>
121 <phase>pre-clean</phase>
122 <goals>
123 <goal>remove</goal>
124 </goals>
125 <configuration>
126 <removeAll>true</removeAll>
Ben David, Elad (eb7504)ee64a642019-11-03 16:19:16 +0200127 <image>${docker.namespace}/${docker.image.name}</image>
Avi Zivc175a0d2018-03-15 13:21:44 +0200128 </configuration>
129 </execution>
130
131 <execution>
132 <id>generate-images</id>
133 <phase>install</phase>
134 <goals>
135 <goal>build</goal>
136 </goals>
137 </execution>
138
139 <execution>
140 <id>push-images</id>
141 <phase>deploy</phase>
142 <goals>
143 <goal>push</goal>
144 </goals>
145 <configuration>
Ben David, Elad (eb7504)ee64a642019-11-03 16:19:16 +0200146 <image>${docker.namespace}/${docker.image.name}</image>
Avi Zivc175a0d2018-03-15 13:21:44 +0200147 </configuration>
148 </execution>
149 </executions>
150 </plugin>
151 </plugins>
152 </build>
153</project>