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.1.1-SNAPSHOT</version>
11 <groupId>org.onap.ccsdk.distribution</groupId>
12 <artifactId>ansible-server</artifactId>
13 <version>1.1.1-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.groovy.maven</groupId>
36 <artifactId>gmaven-plugin</artifactId>
37 <version>1.0</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>
78 <groupId>org.codehaus.mojo</groupId>
79 <artifactId>exec-maven-plugin</artifactId>
80 <version>1.5.0</version>
83 <id>change python permissions</id>
84 <phase>process-sources</phase>
89 <executable>/usr/bin/find</executable>
91 <argument>${basedir}/target/docker-stage/ansible-server</argument>
92 <argument>-name</argument>
93 <argument>*.py</argument>
94 <argument>-exec</argument>
95 <argument>chmod</argument>
96 <argument>+x</argument>
97 <argument>{}</argument>
98 <argument>;</argument>
103 <id>change shell permissions</id>
104 <phase>process-sources</phase>
109 <executable>/usr/bin/find</executable>
111 <argument>${basedir}/target/docker-stage/ansible-server</argument>
112 <argument>-name</argument>
113 <argument>*.sh</argument>
114 <argument>-exec</argument>
115 <argument>chmod</argument>
116 <argument>+x</argument>
117 <argument>{}</argument>
118 <argument>;</argument>
133 <groupId>io.fabric8</groupId>
134 <artifactId>docker-maven-plugin</artifactId>
135 <version>0.34.0</version>
136 <inherited>false</inherited>
140 <name>${image.name}</name>
142 <cleanup>try</cleanup>
143 <contextDir>${basedir}/target/docker-stage</contextDir>
144 <dockerFile>Dockerfile</dockerFile>
146 <tag>${project.docker.latestminortag.version}</tag>
147 <tag>${project.docker.latestfulltag.version}</tag>
148 <tag>${project.docker.latesttagtimestamp.version}</tag>
153 <verbose>${docker.verbose}</verbose>
154 <skipPush>${docker.skip.push}</skipPush>
158 <id>build-push-images</id>