blob: a76bf3575b0c4b43743aea22917990c7950ccf0c [file] [log] [blame]
Ruchira Agarwal03161922018-04-24 17:30:06 +00001<?xml version="1.0" encoding="UTF-8"?>
Dan Timoneyf20174d2020-08-10 14:09:14 -04002<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/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
Ruchira Agarwal03161922018-04-24 17:30:06 +00004
5 <parent>
Dan Timoneyf20174d2020-08-10 14:09:14 -04006 <groupId>org.onap.sdnc.oam</groupId>
7 <artifactId>installation</artifactId>
Dan Timoney53a21832021-09-24 08:53:11 -04008 <version>2.3.0-SNAPSHOT</version>
Ruchira Agarwal03161922018-04-24 17:30:06 +00009 </parent>
Dan Timoneyf20174d2020-08-10 14:09:14 -040010
Ruchira Agarwal03161922018-04-24 17:30:06 +000011 <artifactId>installation-ansible-server</artifactId>
Dan Timoneyf20174d2020-08-10 14:09:14 -040012 <packaging>pom</packaging>
Ruchira Agarwal03161922018-04-24 17:30:06 +000013
14 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
15 <description>Creates ansible-server Docker container</description>
Dan Timoneyf20174d2020-08-10 14:09:14 -040016 <organization>
17 <name>ONAP</name>
18 </organization>
Ruchira Agarwal03161922018-04-24 17:30:06 +000019
20 <properties>
21 <image.name>onap/sdnc-ansible-server-image</image.name>
22 <sdnc.project.version>${project.version}</sdnc.project.version>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050023 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
highstreetherbert53532182021-05-12 18:58:18 +020024 <ccsdk.docker.version>${ccsdk.docker.ansible.server.version}</ccsdk.docker.version>
Ruchira Agarwal03161922018-04-24 17:30:06 +000025 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
26 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
27 </properties>
28
Ruchira Agarwal03161922018-04-24 17:30:06 +000029 <build>
30 <plugins>
31 <plugin>
32 <groupId>org.codehaus.groovy.maven</groupId>
33 <artifactId>gmaven-plugin</artifactId>
Hesam Rahimi55378e72021-06-07 20:02:32 +000034 <version>1.0</version>
Ruchira Agarwal03161922018-04-24 17:30:06 +000035 <executions>
36 <execution>
37 <phase>validate</phase>
38 <goals>
39 <goal>execute</goal>
40 </goals>
41 <configuration>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050042 <source>${basedir}/../TagVersion.groovy</source>
Ruchira Agarwal03161922018-04-24 17:30:06 +000043 </configuration>
44 </execution>
45 </executions>
46 </plugin>
47
48 <plugin>
49 <artifactId>maven-resources-plugin</artifactId>
50 <version>2.6</version>
51 <executions>
52 <execution>
Sylvain Desbureaux80020fa2019-01-23 11:14:30 +010053 <id>copy-files</id>
Ruchira Agarwal03161922018-04-24 17:30:06 +000054 <goals>
55 <goal>copy-resources</goal>
56 </goals><!-- here the phase you need -->
57 <phase>validate</phase>
58 <configuration>
59 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
60 <resources>
61 <resource>
Sylvain Desbureaux80020fa2019-01-23 11:14:30 +010062 <directory>src/main</directory>
Ruchira Agarwal03161922018-04-24 17:30:06 +000063 <includes>
Sylvain Desbureaux80020fa2019-01-23 11:14:30 +010064 <include>**/*</include>
Ruchira Agarwal03161922018-04-24 17:30:06 +000065 </includes>
Hesam Rahimi55378e72021-06-07 20:02:32 +000066 <filtering>true</filtering>
Ruchira Agarwal03161922018-04-24 17:30:06 +000067 </resource>
68 </resources>
69 </configuration>
70 </execution>
71 </executions>
72 </plugin>
Ruchira Agarwal03161922018-04-24 17:30:06 +000073 </plugins>
74 </build>
75
76 <profiles>
77 <profile>
78 <id>docker</id>
79 <build>
80 <plugins>
81 <plugin>
82 <groupId>io.fabric8</groupId>
83 <artifactId>docker-maven-plugin</artifactId>
Hesam Rahimi55378e72021-06-07 20:02:32 +000084 <version>0.34.0</version>
Ruchira Agarwal03161922018-04-24 17:30:06 +000085 <inherited>false</inherited>
86 <configuration>
87 <images>
88 <image>
89 <name>${image.name}</name>
90 <build>
91 <cleanup>try</cleanup>
Hesam Rahimi55378e72021-06-07 20:02:32 +000092 <noCache>true</noCache>
93 <contextDir>${basedir}/target/docker-stage</contextDir>
Timoney, Dan (dt5972)b2eb9ed2019-08-20 15:40:38 -040094 <dockerFile>Dockerfile</dockerFile>
Ruchira Agarwal03161922018-04-24 17:30:06 +000095 <tags>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050096 <tag>${project.docker.latestminortag.version}</tag>
97 <tag>${project.docker.latestfulltag.version}</tag>
98 <tag>${project.docker.latesttagtimestamp.version}</tag>
Ruchira Agarwal03161922018-04-24 17:30:06 +000099 </tags>
100 </build>
101 </image>
102 </images>
Hesam Rahimi55378e72021-06-07 20:02:32 +0000103 <verbose>${docker.verbose}</verbose>
104 <skipPush>${docker.skip.push}</skipPush>
Ruchira Agarwal03161922018-04-24 17:30:06 +0000105 </configuration>
106 <executions>
107 <execution>
Hesam Rahimi55378e72021-06-07 20:02:32 +0000108 <id>build-push-images</id>
Ruchira Agarwal03161922018-04-24 17:30:06 +0000109 <goals>
110 <goal>build</goal>
111 <goal>push</goal>
112 </goals>
113 </execution>
114 </executions>
115 </plugin>
116 </plugins>
117 </build>
118 </profile>
119 </profiles>
Ruchira Agarwal03161922018-04-24 17:30:06 +0000120</project>