Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 1 | <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> |
ChrisC | 00acf3d | 2021-03-22 13:54:06 +0100 | [diff] [blame] | 15 | <version>1.9.0-SNAPSHOT</version> |
Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 16 | </parent> |
| 17 | |
| 18 | |
| 19 | <properties> |
| 20 | <docker.image.name>sdc-onboard-cassandra-init</docker.image.name> |
Ben David, Elad (eb7504) | ee64a64 | 2019-11-03 16:19:16 +0200 | [diff] [blame] | 21 | <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 Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 25 | </properties> |
Ben David, Elad (eb7504) | ee64a64 | 2019-11-03 16:19:16 +0200 | [diff] [blame] | 26 | |
Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 27 | <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) | dd22ca7 | 2019-11-04 10:53:24 +0200 | [diff] [blame] | 49 | <include>alter_tables.cql</include> |
Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 50 | </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 Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 60 | |
| 61 | <configuration> |
sebdet | df353be | 2020-09-21 22:13:05 +0200 | [diff] [blame] | 62 | <verbose>${verbose}</verbose> |
sebdet | 591810d | 2020-09-17 15:07:23 +0200 | [diff] [blame] | 63 | <apiVersion>${docker.api.version}</apiVersion> |
Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 64 | <registry>nexus3.onap.org:10001</registry> |
| 65 | <authConfig> |
| 66 | <pull> |
Ben David, Elad (eb7504) | ee64a64 | 2019-11-03 16:19:16 +0200 | [diff] [blame] | 67 | <username>${docker.username}</username> |
| 68 | <password>${docker.password}</password> |
Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 69 | </pull> |
| 70 | </authConfig> |
| 71 | <images> |
| 72 | |
| 73 | <!-- Build backend image --> |
| 74 | <image> |
Ben David, Elad (eb7504) | ee64a64 | 2019-11-03 16:19:16 +0200 | [diff] [blame] | 75 | <name>${docker.namespace}/${docker.image.name}</name> |
Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 76 | <alias>${docker.image.name}</alias> |
| 77 | <build> |
| 78 | <cleanup>try</cleanup> |
| 79 | <dockerFileDir>${project.basedir}/artifacts</dockerFileDir> |
| 80 | <tags> |
sebdet | b988cb6 | 2020-09-25 15:48:10 +0200 | [diff] [blame] | 81 | <tag>latest</tag> |
| 82 | <tag> |
| 83 | ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest |
| 84 | </tag> |
| 85 | <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag> |
Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 86 | </tags> |
| 87 | </build> |
| 88 | </image> |
| 89 | </images> |
| 90 | </configuration> |
| 91 | <executions> |
| 92 | <execution> |
| 93 | <id>clean-images</id> |
| 94 | <phase>pre-clean</phase> |
| 95 | <goals> |
| 96 | <goal>remove</goal> |
| 97 | </goals> |
| 98 | <configuration> |
| 99 | <removeAll>true</removeAll> |
Ben David, Elad (eb7504) | ee64a64 | 2019-11-03 16:19:16 +0200 | [diff] [blame] | 100 | <image>${docker.namespace}/${docker.image.name}</image> |
Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 101 | </configuration> |
| 102 | </execution> |
| 103 | |
| 104 | <execution> |
| 105 | <id>generate-images</id> |
| 106 | <phase>install</phase> |
| 107 | <goals> |
| 108 | <goal>build</goal> |
| 109 | </goals> |
| 110 | </execution> |
| 111 | |
| 112 | <execution> |
| 113 | <id>push-images</id> |
| 114 | <phase>deploy</phase> |
| 115 | <goals> |
| 116 | <goal>push</goal> |
| 117 | </goals> |
| 118 | <configuration> |
Ben David, Elad (eb7504) | ee64a64 | 2019-11-03 16:19:16 +0200 | [diff] [blame] | 119 | <image>${docker.namespace}/${docker.image.name}</image> |
Avi Ziv | c175a0d | 2018-03-15 13:21:44 +0200 | [diff] [blame] | 120 | </configuration> |
| 121 | </execution> |
| 122 | </executions> |
| 123 | </plugin> |
| 124 | </plugins> |
| 125 | </build> |
| 126 | </project> |