1 <?xml version="1.0" encoding="UTF-8"?>
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>
6 <groupId>org.onap.ccsdk.distribution</groupId>
7 <artifactId>distribution-root</artifactId>
8 <version>1.6.0-SNAPSHOT</version>
11 <groupId>org.onap.ccsdk.distribution</groupId>
12 <artifactId>ansible-server</artifactId>
13 <version>1.6.0-SNAPSHOT</version>
14 <packaging>pom</packaging>
16 <name>ccsdk-distribution :: ${project.artifactId}</name>
17 <description>Creates ansible-server Docker container</description>
23 <image.name>onap/ccsdk-ansible-server-image</image.name>
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>
28 <docker.verbose>true</docker.verbose>
29 <docker.skip.push>false</docker.skip.push>
35 <groupId>org.codehaus.gmaven</groupId>
36 <artifactId>groovy-maven-plugin</artifactId>
37 <version>2.1.1</version>
40 <phase>validate</phase>
45 <source>${basedir}/../src/main/scripts/TagVersion.groovy</source>
52 <artifactId>maven-resources-plugin</artifactId>
53 <version>2.6</version>
56 <id>copy-dockerfile</id>
58 <goal>copy-resources</goal>
59 </goals><!-- here the phase you need -->
60 <phase>validate</phase>
62 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
65 <directory>src/main</directory>
67 <include>**/*</include>
69 <filtering>false</filtering>
75 <id>copy-certificates</id>
77 <goal>copy-resources</goal>
78 </goals><!-- here the phase you need -->
79 <phase>validate</phase>
81 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
84 <directory>src/main/resources</directory>
86 <include>*.pem</include>
87 <include>*.md</include>
89 <filtering>false</filtering>
97 <groupId>org.apache.maven.plugins</groupId>
98 <artifactId>maven-antrun-plugin</artifactId>
99 <version>1.8</version>
102 <id>change-permissions</id>
103 <phase>process-sources</phase>
106 <chmod perm="+x" type="file">
107 <fileset dir="${basedir}/target/docker-stage/ansible-server">
108 <include name="**/*.py"/>
109 <include name="**/*.sh"/>
129 <groupId>io.fabric8</groupId>
130 <artifactId>docker-maven-plugin</artifactId>
131 <version>0.34.0</version>
132 <inherited>false</inherited>
136 <name>${image.name}</name>
138 <cleanup>try</cleanup>
139 <noCache>true</noCache>
140 <contextDir>${basedir}/target/docker-stage</contextDir>
141 <dockerFile>Dockerfile</dockerFile>
143 <tag>${project.docker.latestminortag.version}</tag>
144 <tag>${project.docker.latestfulltag.version}</tag>
145 <tag>${project.docker.latesttagtimestamp.version}</tag>
150 <verbose>${docker.verbose}</verbose>
151 <skipPush>${docker.skip.push}</skipPush>
155 <id>build-push-images</id>