1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
7 <groupId>org.onap.ccsdk.parent</groupId>
8 <artifactId>odlparent-lite</artifactId>
9 <version>1.2.1-SNAPSHOT</version>
12 <modelVersion>4.0.0</modelVersion>
13 <packaging>pom</packaging>
14 <groupId>org.onap.ccsdk.distribution</groupId>
15 <artifactId>ansible-server</artifactId>
16 <version>0.4.1-SNAPSHOT</version>
18 <name>ccsdk :: distribution :: ${project.artifactId}</name>
19 <description>Creates ansible-server Docker container</description>
22 <image.name>onap/ccsdk-ansible-server-image</image.name>
23 <ccsdk.project.version>${project.version}</ccsdk.project.version>
24 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
25 <ccsdk.distribution.version>${project.version}</ccsdk.distribution.version>
26 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
27 <docker.verbose>true</docker.verbose>
34 <groupId>org.codehaus.groovy.maven</groupId>
35 <artifactId>gmaven-plugin</artifactId>
38 <phase>validate</phase>
43 <source>${basedir}/../src/main/scripts/TagVersion.groovy</source>
50 <artifactId>maven-resources-plugin</artifactId>
51 <version>2.6</version>
54 <id>copy-dockerfile</id>
56 <goal>copy-resources</goal>
57 </goals><!-- here the phase you need -->
58 <phase>validate</phase>
60 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
63 <directory>src/main</directory>
65 <include>**/*</include>
67 <filtering>false</filtering>
76 <artifactId>exec-maven-plugin</artifactId>
77 <groupId>org.codehaus.mojo</groupId>
78 <version>1.5.0</version>
81 <id>change python permissions</id>
82 <phase>process-sources</phase>
87 <executable>/usr/bin/find</executable>
89 <argument>${basedir}/target/docker-stage/ansible-server</argument>
90 <argument>-name</argument>
91 <argument>*.py</argument>
92 <argument>-exec</argument>
93 <argument>chmod</argument>
94 <argument>+x</argument>
95 <argument>{}</argument>
96 <argument>;</argument>
111 <groupId>io.fabric8</groupId>
112 <artifactId>docker-maven-plugin</artifactId>
113 <version>0.16.5</version>
114 <inherited>false</inherited>
118 <name>${image.name}</name>
120 <cleanup>try</cleanup>
121 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
122 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
124 <tag>${project.docker.latestminortag.version}</tag>
125 <tag>${project.docker.latestfulltag.version}</tag>
126 <tag>${project.docker.latesttagtimestamp.version}</tag>
134 <id>generate-images</id>
135 <phase>package</phase>
143 <phase>deploy</phase>