blob: 05d83776dc053c2795a7b66d93c1832b91c6060c [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>
Ofir Sonsino145e9602019-10-29 11:07:28 +020015 <version>1.6.0-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>
21 </properties>
22 <build>
23 <plugins>
24 <plugin>
25 <artifactId>maven-resources-plugin</artifactId>
26 <version>3.0.2</version>
27 <executions>
28 <execution>
29 <id>copy-resources-war</id>
30 <phase>verify</phase>
31 <goals>
32 <goal>copy-resources</goal>
33 </goals>
34 <configuration>
35 <outputDirectory>${project.basedir}/artifacts</outputDirectory>
36 <resources>
37 <resource>
38 <directory>
39 ${project.parent.basedir}/../../openecomp-be/tools/install/database
40 </directory>
41 <includes>
42 <include>init_keyspaces.cql</include>
43 <include>init_schemas.cql</include>
44 </includes>
45 </resource>
46 </resources>
47 </configuration>
48 </execution>
49 </executions>
50 </plugin>
51 <plugin>
52 <groupId>io.fabric8</groupId>
53 <artifactId>docker-maven-plugin</artifactId>
Avi Zivc175a0d2018-03-15 13:21:44 +020054
55 <configuration>
Avi Zivc175a0d2018-03-15 13:21:44 +020056 <apiVersion>1.23</apiVersion>
57 <registry>nexus3.onap.org:10001</registry>
58 <authConfig>
59 <pull>
60 <username>docker</username>
61 <password>docker</password>
62 </pull>
63 </authConfig>
64 <images>
65
66 <!-- Build backend image -->
67 <image>
68 <name>onap/${docker.image.name}</name>
69 <alias>${docker.image.name}</alias>
70 <build>
71 <cleanup>try</cleanup>
72 <dockerFileDir>${project.basedir}/artifacts</dockerFileDir>
73 <tags>
74 <tag>${docker.tag}</tag>
75 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
76 </tags>
77 </build>
78 </image>
79 </images>
80 </configuration>
81 <executions>
82 <execution>
83 <id>clean-images</id>
84 <phase>pre-clean</phase>
85 <goals>
86 <goal>remove</goal>
87 </goals>
88 <configuration>
89 <removeAll>true</removeAll>
90 <image>onap/${docker.image.name}</image>
91 </configuration>
92 </execution>
93
94 <execution>
95 <id>generate-images</id>
96 <phase>install</phase>
97 <goals>
98 <goal>build</goal>
99 </goals>
100 </execution>
101
102 <execution>
103 <id>push-images</id>
104 <phase>deploy</phase>
105 <goals>
106 <goal>push</goal>
107 </goals>
108 <configuration>
109 <image>onap/${docker.image.name}</image>
110 </configuration>
111 </execution>
112 </executions>
113 </plugin>
114 </plugins>
115 </build>
116</project>