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/maven-v4_0_0.xsd">
5 <groupId>org.onap.ccsdk.parent</groupId>
6 <artifactId>odlparent-lite</artifactId>
7 <version>1.2.2-SNAPSHOT</version>
10 <modelVersion>4.0.0</modelVersion>
11 <packaging>pom</packaging>
12 <groupId>org.onap.ccsdk.distribution</groupId>
13 <artifactId>ansible-server</artifactId>
14 <version>0.4.2-SNAPSHOT</version>
16 <name>ccsdk :: distribution :: ${project.artifactId}</name>
17 <description>Creates ansible-server Docker container</description>
20 <image.name>onap/ccsdk-ansible-server-image</image.name>
21 <ccsdk.project.version>${project.version}</ccsdk.project.version>
22 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
23 <ccsdk.distribution.version>${project.version}</ccsdk.distribution.version>
24 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
25 <docker.verbose>true</docker.verbose>
32 <groupId>org.codehaus.groovy.maven</groupId>
33 <artifactId>gmaven-plugin</artifactId>
36 <phase>validate</phase>
41 <source>${basedir}/../src/main/scripts/TagVersion.groovy</source>
48 <artifactId>maven-resources-plugin</artifactId>
49 <version>2.6</version>
52 <id>copy-dockerfile</id>
54 <goal>copy-resources</goal>
55 </goals><!-- here the phase you need -->
56 <phase>validate</phase>
58 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
61 <directory>src/main</directory>
63 <include>**/*</include>
65 <filtering>false</filtering>
74 <artifactId>exec-maven-plugin</artifactId>
75 <groupId>org.codehaus.mojo</groupId>
76 <version>1.5.0</version>
79 <id>change python permissions</id>
80 <phase>process-sources</phase>
85 <executable>/usr/bin/find</executable>
87 <argument>${basedir}/target/docker-stage/ansible-server</argument>
88 <argument>-name</argument>
89 <argument>*.py</argument>
90 <argument>-exec</argument>
91 <argument>chmod</argument>
92 <argument>+x</argument>
93 <argument>{}</argument>
94 <argument>;</argument>
99 <id>change shell permissions</id>
100 <phase>process-sources</phase>
105 <executable>/usr/bin/find</executable>
107 <argument>${basedir}/target/docker-stage/ansible-server</argument>
108 <argument>-name</argument>
109 <argument>*.sh</argument>
110 <argument>-exec</argument>
111 <argument>chmod</argument>
112 <argument>+x</argument>
113 <argument>{}</argument>
114 <argument>;</argument>
129 <groupId>io.fabric8</groupId>
130 <artifactId>docker-maven-plugin</artifactId>
131 <version>0.28.0</version>
132 <inherited>false</inherited>
136 <name>${image.name}</name>
138 <cleanup>try</cleanup>
139 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
140 <dockerFile>Dockerfile</dockerFile>
142 <tag>${project.docker.latestminortag.version}</tag>
143 <tag>${project.docker.latestfulltag.version}</tag>
144 <tag>${project.docker.latesttagtimestamp.version}</tag>
152 <id>generate-images</id>
153 <phase>package</phase>
161 <phase>deploy</phase>