Dmitry Puzikov | ed4a579 | 2019-09-25 14:19:36 +0200 | [diff] [blame^] | 1 | <!-- |
| 2 | |
| 3 | ============LICENSE_START======================================================= |
| 4 | org.onap.aai |
| 5 | ================================================================================ |
| 6 | Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. |
| 7 | ================================================================================ |
| 8 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | you may not use this file except in compliance with the License. |
| 10 | You may obtain a copy of the License at |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 14 | Unless required by applicable law or agreed to in writing, software |
| 15 | distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | See the License for the specific language governing permissions and |
| 18 | limitations under the License. |
| 19 | ============LICENSE_END========================================================= |
| 20 | |
| 21 | --> |
| 22 | <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 23 | <modelVersion>4.0.0</modelVersion> |
| 24 | <parent> |
| 25 | <groupId>org.onap.oparent</groupId> |
| 26 | <artifactId>oparent</artifactId> |
| 27 | <version>2.0.0</version> |
| 28 | </parent> |
| 29 | |
| 30 | <groupId>org.onap.oom.readiness.check</groupId> |
| 31 | <artifactId>readiness-check-docker</artifactId> |
| 32 | <version>2.2.1-SNAPSHOT</version> |
| 33 | <packaging>pom</packaging> |
| 34 | <name>oom-readiness-check-image</name> |
| 35 | <description>Contains dockerfiles and scrtipts for readiness-ckeck image.</description> |
| 36 | |
| 37 | <properties> |
| 38 | <docker.fabric.version>0.31.0</docker.fabric.version> |
| 39 | <oom.docker.namespace>onap</oom.docker.namespace> |
| 40 | </properties> |
| 41 | |
| 42 | <build> |
| 43 | <plugins> |
| 44 | <plugin> |
| 45 | <groupId>io.fabric8</groupId> |
| 46 | <artifactId>docker-maven-plugin</artifactId> |
| 47 | <version>${docker.fabric.version}</version> |
| 48 | <configuration> |
| 49 | <verbose>true</verbose> |
| 50 | <apiVersion>1.23</apiVersion> |
| 51 | <images> |
| 52 | <image> |
| 53 | <name>${docker.push.registry}/${oom.docker.namespace}/readiness-check:%l</name> |
| 54 | <build> |
| 55 | <filter>@</filter> |
| 56 | <assembly> |
| 57 | <mode>dir</mode> |
| 58 | <inline xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> |
| 59 | <fileSets> |
| 60 | <fileSet> |
| 61 | <directory>${project.basedir}/src/main/scripts</directory> |
| 62 | <outputDirectory>/</outputDirectory> |
| 63 | <includes> |
| 64 | <include>**/*</include> |
| 65 | </includes> |
| 66 | </fileSet> |
| 67 | </fileSets> |
| 68 | </inline> |
| 69 | </assembly> |
| 70 | <tags> |
| 71 | <tag>latest</tag> |
| 72 | <tag>latest-${project.version}</tag> |
| 73 | </tags> |
| 74 | <cleanup>try</cleanup> |
| 75 | <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir> |
| 76 | </build> |
| 77 | </image> |
| 78 | </images> |
| 79 | </configuration> |
| 80 | <executions> |
| 81 | <execution> |
| 82 | <id>clean-images</id> |
| 83 | <phase>pre-clean</phase> |
| 84 | <goals> |
| 85 | <goal>remove</goal> |
| 86 | </goals> |
| 87 | <configuration> |
| 88 | <removeAll>true</removeAll> |
| 89 | </configuration> |
| 90 | </execution> |
| 91 | <execution> |
| 92 | <id>generate-images</id> |
| 93 | <phase>package</phase> |
| 94 | <goals> |
| 95 | <goal>build</goal> |
| 96 | </goals> |
| 97 | </execution> |
| 98 | <execution> |
| 99 | <id>push-images</id> |
| 100 | <phase>deploy</phase> |
| 101 | <goals> |
| 102 | <goal>push</goal> |
| 103 | </goals> |
| 104 | </execution> |
| 105 | </executions> |
| 106 | </plugin> |
| 107 | </plugins> |
| 108 | </build> |
| 109 | </project> |