blob: 2a4cec3de63e238f1ba836ace44bee1be4e2327f [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"
vasraz8b1002a2021-12-08 22:12:52 +00002 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Avi Zivc175a0d2018-03-15 13:21:44 +02003 <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>
MichaelMorris82576922022-08-15 10:45:48 +010014 <version>1.11.7-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>
20 </properties>
Ben David, Elad (eb7504)ee64a642019-11-03 16:19:16 +020021
vasraz8b1002a2021-12-08 22:12:52 +000022 <profiles>
23 <profile>
24 <id>docker</id>
25 <activation>
26 <activeByDefault>false</activeByDefault>
27 </activation>
28 <build>
29 <plugins>
30 <plugin>
31 <groupId>org.apache.maven.plugins</groupId>
32 <artifactId>maven-clean-plugin</artifactId>
33 <executions>
34 <execution>
35 <id>clean-docker-artifacts</id>
36 <phase>clean</phase>
37 <goals>
38 <goal>clean</goal>
39 </goals>
40 <configuration>
41 <filesets>
42 <fileset>
43 <directory>
44 artifacts
45 </directory>
46 <followSymlinks>false</followSymlinks>
47 <includes>
48 <include>init_keyspaces.cql</include>
49 <include>init_schemas.cql</include>
50 <include>upgrade-scripts/**</include>
51 </includes>
52 </fileset>
53 </filesets>
54 </configuration>
55 </execution>
56 </executions>
57 </plugin>
58 <plugin>
59 <artifactId>maven-resources-plugin</artifactId>
60 <version>3.0.2</version>
61 <executions>
62 <execution>
63 <id>copy-resources-war</id>
64 <phase>verify</phase>
65 <goals>
66 <goal>copy-resources</goal>
67 </goals>
68 <configuration>
69 <outputDirectory>${project.basedir}/artifacts</outputDirectory>
70 <resources>
71 <resource>
72 <directory>
73 ${project.parent.basedir}/../../openecomp-be/tools/install/database
74 </directory>
75 <includes>
76 <include>init_keyspaces.cql</include>
77 <include>init_schemas.cql</include>
78 <include>upgrade-scripts/**</include>
79 </includes>
80 </resource>
81 </resources>
82 </configuration>
83 </execution>
84 </executions>
85 </plugin>
86 <plugin>
87 <groupId>io.fabric8</groupId>
88 <artifactId>docker-maven-plugin</artifactId>
Avi Zivc175a0d2018-03-15 13:21:44 +020089
Avi Zivc175a0d2018-03-15 13:21:44 +020090 <configuration>
vasraz8b1002a2021-12-08 22:12:52 +000091 <verbose>${verbose}</verbose>
92 <apiVersion>${docker.api.version}</apiVersion>
93 <registry>${docker.registry}</registry>
94 <authConfig>
95 <pull>
96 <username>${docker.username}</username>
97 <password>${docker.password}</password>
98 </pull>
99 </authConfig>
100 <images>
Avi Zivc175a0d2018-03-15 13:21:44 +0200101
vasraz8b1002a2021-12-08 22:12:52 +0000102 <!-- Build backend image -->
103 <image>
104 <name>${docker.namespace}/${docker.image.name}</name>
105 <alias>${docker.image.name}</alias>
106 <build>
107 <cleanup>try</cleanup>
108 <dockerFileDir>${project.basedir}/artifacts</dockerFileDir>
109 <tags>
110 <tag>latest</tag>
111 <tag>
112 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
113 </tag>
114 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag>
115 </tags>
116 </build>
117 </image>
118 </images>
Avi Zivc175a0d2018-03-15 13:21:44 +0200119 </configuration>
vasraz8b1002a2021-12-08 22:12:52 +0000120 <executions>
121 <execution>
122 <id>clean-images</id>
123 <phase>pre-clean</phase>
124 <goals>
125 <goal>remove</goal>
126 </goals>
127 <configuration>
128 <removeAll>true</removeAll>
129 <image>${docker.namespace}/${docker.image.name}</image>
130 </configuration>
131 </execution>
132
133 <execution>
134 <id>generate-images</id>
135 <phase>install</phase>
136 <goals>
137 <goal>build</goal>
138 </goals>
139 </execution>
140
141 <execution>
142 <id>push-images</id>
143 <phase>deploy</phase>
144 <goals>
145 <goal>push</goal>
146 </goals>
147 <configuration>
148 <image>${docker.namespace}/${docker.image.name}</image>
149 </configuration>
150 </execution>
151 </executions>
152 </plugin>
153 </plugins>
154 </build>
155 </profile>
156 </profiles>
Avi Zivc175a0d2018-03-15 13:21:44 +0200157</project>