Ruchira Agarwal | 0316192 | 2018-04-24 17:30:06 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Timoney, Dan (dt5972) | 84238e1 | 2019-03-18 17:23:08 -0400 | [diff] [blame] | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
Ruchira Agarwal | 0316192 | 2018-04-24 17:30:06 +0000 | [diff] [blame] | 3 | |
| 4 | <parent> |
| 5 | <groupId>org.onap.ccsdk.parent</groupId> |
| 6 | <artifactId>odlparent-lite</artifactId> |
Dan Timoney | 1012cdd | 2020-08-07 14:50:14 -0400 | [diff] [blame^] | 7 | <version>2.0.0</version> |
Ruchira Agarwal | 0316192 | 2018-04-24 17:30:06 +0000 | [diff] [blame] | 8 | </parent> |
| 9 | <modelVersion>4.0.0</modelVersion> |
| 10 | <packaging>pom</packaging> |
| 11 | <groupId>org.onap.sdnc.oam</groupId> |
| 12 | <artifactId>installation-ansible-server</artifactId> |
Dan Timoney | 03c6d76 | 2020-03-18 09:30:59 -0400 | [diff] [blame] | 13 | <version>2.0.0-SNAPSHOT</version> |
Ruchira Agarwal | 0316192 | 2018-04-24 17:30:06 +0000 | [diff] [blame] | 14 | |
| 15 | <name>sdnc-oam :: installation :: ${project.artifactId}</name> |
| 16 | <description>Creates ansible-server Docker container</description> |
| 17 | |
| 18 | <properties> |
| 19 | <image.name>onap/sdnc-ansible-server-image</image.name> |
| 20 | <sdnc.project.version>${project.version}</sdnc.project.version> |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 21 | <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp> |
Timoney, Dan (dt5972) | 3009eda | 2019-09-17 16:25:48 -0400 | [diff] [blame] | 22 | <ccsdk.docker.version>0.7-STAGING-latest</ccsdk.docker.version> |
Ruchira Agarwal | 0316192 | 2018-04-24 17:30:06 +0000 | [diff] [blame] | 23 | <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy> |
| 24 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
| 25 | </properties> |
| 26 | |
| 27 | |
| 28 | <build> |
| 29 | <plugins> |
| 30 | <plugin> |
| 31 | <groupId>org.codehaus.groovy.maven</groupId> |
| 32 | <artifactId>gmaven-plugin</artifactId> |
| 33 | <executions> |
| 34 | <execution> |
| 35 | <phase>validate</phase> |
| 36 | <goals> |
| 37 | <goal>execute</goal> |
| 38 | </goals> |
| 39 | <configuration> |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 40 | <source>${basedir}/../TagVersion.groovy</source> |
Ruchira Agarwal | 0316192 | 2018-04-24 17:30:06 +0000 | [diff] [blame] | 41 | </configuration> |
| 42 | </execution> |
| 43 | </executions> |
| 44 | </plugin> |
| 45 | |
| 46 | <plugin> |
| 47 | <artifactId>maven-resources-plugin</artifactId> |
| 48 | <version>2.6</version> |
| 49 | <executions> |
| 50 | <execution> |
Sylvain Desbureaux | 80020fa | 2019-01-23 11:14:30 +0100 | [diff] [blame] | 51 | <id>copy-files</id> |
Ruchira Agarwal | 0316192 | 2018-04-24 17:30:06 +0000 | [diff] [blame] | 52 | <goals> |
| 53 | <goal>copy-resources</goal> |
| 54 | </goals><!-- here the phase you need --> |
| 55 | <phase>validate</phase> |
| 56 | <configuration> |
| 57 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 58 | <resources> |
| 59 | <resource> |
Sylvain Desbureaux | 80020fa | 2019-01-23 11:14:30 +0100 | [diff] [blame] | 60 | <directory>src/main</directory> |
Ruchira Agarwal | 0316192 | 2018-04-24 17:30:06 +0000 | [diff] [blame] | 61 | <includes> |
Sylvain Desbureaux | 80020fa | 2019-01-23 11:14:30 +0100 | [diff] [blame] | 62 | <include>**/*</include> |
Ruchira Agarwal | 0316192 | 2018-04-24 17:30:06 +0000 | [diff] [blame] | 63 | </includes> |
| 64 | <filtering>false</filtering> |
| 65 | </resource> |
| 66 | </resources> |
| 67 | </configuration> |
| 68 | </execution> |
| 69 | </executions> |
| 70 | </plugin> |
Ruchira Agarwal | 0316192 | 2018-04-24 17:30:06 +0000 | [diff] [blame] | 71 | </plugins> |
| 72 | </build> |
| 73 | |
| 74 | <profiles> |
| 75 | <profile> |
| 76 | <id>docker</id> |
| 77 | <build> |
| 78 | <plugins> |
| 79 | <plugin> |
| 80 | <groupId>io.fabric8</groupId> |
| 81 | <artifactId>docker-maven-plugin</artifactId> |
Timoney, Dan (dt5972) | b2eb9ed | 2019-08-20 15:40:38 -0400 | [diff] [blame] | 82 | <version>0.28.0</version> |
Ruchira Agarwal | 0316192 | 2018-04-24 17:30:06 +0000 | [diff] [blame] | 83 | <inherited>false</inherited> |
| 84 | <configuration> |
| 85 | <images> |
| 86 | <image> |
| 87 | <name>${image.name}</name> |
| 88 | <build> |
| 89 | <cleanup>try</cleanup> |
| 90 | <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> |
Timoney, Dan (dt5972) | b2eb9ed | 2019-08-20 15:40:38 -0400 | [diff] [blame] | 91 | <dockerFile>Dockerfile</dockerFile> |
Ruchira Agarwal | 0316192 | 2018-04-24 17:30:06 +0000 | [diff] [blame] | 92 | <tags> |
Timoney, Dan (dt5972) | d4b1b9d | 2019-02-14 16:38:27 -0500 | [diff] [blame] | 93 | <tag>${project.docker.latestminortag.version}</tag> |
| 94 | <tag>${project.docker.latestfulltag.version}</tag> |
| 95 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
Ruchira Agarwal | 0316192 | 2018-04-24 17:30:06 +0000 | [diff] [blame] | 96 | </tags> |
| 97 | </build> |
| 98 | </image> |
| 99 | </images> |
| 100 | </configuration> |
| 101 | <executions> |
| 102 | <execution> |
| 103 | <id>generate-images</id> |
| 104 | <phase>package</phase> |
| 105 | <goals> |
| 106 | <goal>build</goal> |
| 107 | </goals> |
| 108 | </execution> |
| 109 | |
| 110 | <execution> |
| 111 | <id>push-images</id> |
| 112 | <phase>deploy</phase> |
| 113 | <goals> |
| 114 | <goal>build</goal> |
| 115 | <goal>push</goal> |
| 116 | </goals> |
| 117 | </execution> |
| 118 | </executions> |
| 119 | </plugin> |
| 120 | </plugins> |
| 121 | </build> |
| 122 | </profile> |
| 123 | </profiles> |
| 124 | <organization> |
| 125 | <name>ONAP</name> |
| 126 | </organization> |
| 127 | </project> |