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