Timoney, Dan (dt5972) | 1262205 | 2018-09-12 10:53:10 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [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/xsd/maven-4.0.0.xsd"> |
| 3 | <modelVersion>4.0.0</modelVersion> |
Timoney, Dan (dt5972) | 1262205 | 2018-09-12 10:53:10 -0400 | [diff] [blame] | 4 | |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 5 | <parent> |
Dan Timoney | 1f4e903 | 2021-01-25 14:47:00 -0500 | [diff] [blame] | 6 | <groupId>org.onap.ccsdk.distribution</groupId> |
| 7 | <artifactId>distribution-root</artifactId> |
Dan Timoney | edbdf2e | 2023-06-06 06:53:08 -0400 | [diff] [blame] | 8 | <version>1.6.0-SNAPSHOT</version> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 9 | </parent> |
Sylvain Desbureaux | 1bc5690 | 2019-01-30 14:36:14 +0100 | [diff] [blame] | 10 | |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 11 | <groupId>org.onap.ccsdk.distribution</groupId> |
| 12 | <artifactId>ansible-server</artifactId> |
Dan Timoney | edbdf2e | 2023-06-06 06:53:08 -0400 | [diff] [blame] | 13 | <version>1.6.0-SNAPSHOT</version> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 14 | <packaging>pom</packaging> |
Timoney, Dan (dt5972) | 1262205 | 2018-09-12 10:53:10 -0400 | [diff] [blame] | 15 | |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 16 | <name>ccsdk-distribution :: ${project.artifactId}</name> |
| 17 | <description>Creates ansible-server Docker container</description> |
| 18 | <organization> |
| 19 | <name>ONAP</name> |
| 20 | </organization> |
Timoney, Dan (dt5972) | 1262205 | 2018-09-12 10:53:10 -0400 | [diff] [blame] | 21 | |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 22 | <properties> |
| 23 | <image.name>onap/ccsdk-ansible-server-image</image.name> |
Timoney, Dan (dt5972) | 268c4ba | 2019-02-12 14:35:10 -0500 | [diff] [blame] | 24 | <ccsdk.project.version>${project.version}</ccsdk.project.version> |
| 25 | <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp> |
| 26 | <ccsdk.distribution.version>${project.version}</ccsdk.distribution.version> |
| 27 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 28 | <docker.verbose>true</docker.verbose> |
| 29 | <docker.skip.push>false</docker.skip.push> |
| 30 | </properties> |
Timoney, Dan (dt5972) | 1262205 | 2018-09-12 10:53:10 -0400 | [diff] [blame] | 31 | |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 32 | <build> |
| 33 | <plugins> |
| 34 | <plugin> |
Dan Timoney | 23db069 | 2023-02-24 21:04:26 +0000 | [diff] [blame] | 35 | <groupId>org.codehaus.gmaven</groupId> |
| 36 | <artifactId>groovy-maven-plugin</artifactId> |
| 37 | <version>2.1.1</version> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 38 | <executions> |
| 39 | <execution> |
| 40 | <phase>validate</phase> |
| 41 | <goals> |
| 42 | <goal>execute</goal> |
| 43 | </goals> |
| 44 | <configuration> |
| 45 | <source>${basedir}/../src/main/scripts/TagVersion.groovy</source> |
| 46 | </configuration> |
| 47 | </execution> |
| 48 | </executions> |
| 49 | </plugin> |
Timoney, Dan (dt5972) | 1262205 | 2018-09-12 10:53:10 -0400 | [diff] [blame] | 50 | |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 51 | <plugin> |
| 52 | <artifactId>maven-resources-plugin</artifactId> |
| 53 | <version>2.6</version> |
| 54 | <executions> |
| 55 | <execution> |
| 56 | <id>copy-dockerfile</id> |
| 57 | <goals> |
| 58 | <goal>copy-resources</goal> |
| 59 | </goals><!-- here the phase you need --> |
| 60 | <phase>validate</phase> |
| 61 | <configuration> |
| 62 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 63 | <resources> |
| 64 | <resource> |
| 65 | <directory>src/main</directory> |
| 66 | <includes> |
| 67 | <include>**/*</include> |
| 68 | </includes> |
| 69 | <filtering>false</filtering> |
| 70 | </resource> |
| 71 | </resources> |
| 72 | </configuration> |
| 73 | </execution> |
Dan Timoney | 6fbbadb | 2023-08-16 14:06:36 -0400 | [diff] [blame^] | 74 | <execution> |
| 75 | <id>copy-certificates</id> |
| 76 | <goals> |
| 77 | <goal>copy-resources</goal> |
| 78 | </goals><!-- here the phase you need --> |
| 79 | <phase>validate</phase> |
| 80 | <configuration> |
| 81 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 82 | <resources> |
| 83 | <resource> |
| 84 | <directory>src/main/resources</directory> |
| 85 | <includes> |
| 86 | <include>*.pem</include> |
| 87 | <include>*.md</include> |
| 88 | </includes> |
| 89 | <filtering>false</filtering> |
| 90 | </resource> |
| 91 | </resources> |
| 92 | </configuration> |
| 93 | </execution> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 94 | </executions> |
| 95 | </plugin> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 96 | <plugin> |
Singal, Kapil (ks220y) | c3240af | 2021-07-17 14:29:10 -0400 | [diff] [blame] | 97 | <groupId>org.apache.maven.plugins</groupId> |
| 98 | <artifactId>maven-antrun-plugin</artifactId> |
| 99 | <version>1.8</version> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 100 | <executions> |
| 101 | <execution> |
Singal, Kapil (ks220y) | c3240af | 2021-07-17 14:29:10 -0400 | [diff] [blame] | 102 | <id>change-permissions</id> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 103 | <phase>process-sources</phase> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 104 | <configuration> |
Singal, Kapil (ks220y) | c3240af | 2021-07-17 14:29:10 -0400 | [diff] [blame] | 105 | <target> |
| 106 | <chmod perm="+x" type="file"> |
| 107 | <fileset dir="${basedir}/target/docker-stage/ansible-server"> |
| 108 | <include name="**/*.py"/> |
| 109 | <include name="**/*.sh"/> |
| 110 | </fileset> |
| 111 | </chmod> |
| 112 | </target> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 113 | </configuration> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 114 | <goals> |
Singal, Kapil (ks220y) | c3240af | 2021-07-17 14:29:10 -0400 | [diff] [blame] | 115 | <goal>run</goal> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 116 | </goals> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 117 | </execution> |
| 118 | </executions> |
| 119 | </plugin> |
| 120 | </plugins> |
| 121 | </build> |
Timoney, Dan (dt5972) | 1262205 | 2018-09-12 10:53:10 -0400 | [diff] [blame] | 122 | |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 123 | <profiles> |
| 124 | <profile> |
| 125 | <id>docker</id> |
| 126 | <build> |
| 127 | <plugins> |
| 128 | <plugin> |
| 129 | <groupId>io.fabric8</groupId> |
| 130 | <artifactId>docker-maven-plugin</artifactId> |
| 131 | <version>0.34.0</version> |
| 132 | <inherited>false</inherited> |
| 133 | <configuration> |
| 134 | <images> |
| 135 | <image> |
| 136 | <name>${image.name}</name> |
| 137 | <build> |
| 138 | <cleanup>try</cleanup> |
Singal, Kapil (ks220y) | 643e032 | 2021-03-28 22:21:54 -0400 | [diff] [blame] | 139 | <noCache>true</noCache> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 140 | <contextDir>${basedir}/target/docker-stage</contextDir> |
| 141 | <dockerFile>Dockerfile</dockerFile> |
| 142 | <tags> |
| 143 | <tag>${project.docker.latestminortag.version}</tag> |
| 144 | <tag>${project.docker.latestfulltag.version}</tag> |
| 145 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
| 146 | </tags> |
| 147 | </build> |
| 148 | </image> |
| 149 | </images> |
| 150 | <verbose>${docker.verbose}</verbose> |
| 151 | <skipPush>${docker.skip.push}</skipPush> |
| 152 | </configuration> |
| 153 | <executions> |
| 154 | <execution> |
| 155 | <id>build-push-images</id> |
| 156 | <goals> |
| 157 | <goal>build</goal> |
| 158 | <goal>push</goal> |
| 159 | </goals> |
| 160 | </execution> |
| 161 | </executions> |
| 162 | </plugin> |
| 163 | </plugins> |
| 164 | </build> |
| 165 | </profile> |
| 166 | </profiles> |
Timoney, Dan (dt5972) | 1262205 | 2018-09-12 10:53:10 -0400 | [diff] [blame] | 167 | </project> |