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"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
6 <groupId>org.onap.ccsdk.parent</groupId>
7 <artifactId>odlparent-lite</artifactId>
8 <version>1.1.3</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.3.3-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 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
25 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
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/docker</directory>
63 <include>Dockerfile</include>
65 <filtering>true</filtering>
74 <goal>copy-resources</goal>
75 </goals><!-- here the phase you need -->
76 <phase>validate</phase>
78 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory>
81 <directory>src/main/scripts</directory>
85 <filtering>false</filtering>
94 <goal>copy-resources</goal>
95 </goals><!-- here the phase you need -->
96 <phase>validate</phase>
98 <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/Playbooks</outputDirectory>
101 <directory>src/main/yml</directory>
105 <filtering>false</filtering>
114 <artifactId>exec-maven-plugin</artifactId>
115 <groupId>org.codehaus.mojo</groupId>
116 <version>1.5.0</version>
119 <id>change python permissions</id>
120 <phase>process-sources</phase>
125 <executable>/usr/bin/find</executable>
127 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
128 <argument>-name</argument>
129 <argument>*.py</argument>
130 <argument>-exec</argument>
131 <argument>chmod</argument>
132 <argument>+x</argument>
133 <argument>{}</argument>
134 <argument>;</argument>
139 <id>change shell permissions</id>
140 <phase>process-sources</phase>
145 <executable>/usr/bin/find</executable>
147 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
148 <argument>-name</argument>
149 <argument>*.sh</argument>
150 <argument>-exec</argument>
151 <argument>chmod</argument>
152 <argument>+x</argument>
153 <argument>{}</argument>
154 <argument>;</argument>
169 <groupId>io.fabric8</groupId>
170 <artifactId>docker-maven-plugin</artifactId>
171 <version>0.16.5</version>
172 <inherited>false</inherited>
176 <name>${image.name}</name>
178 <cleanup>try</cleanup>
179 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
180 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
182 <tag>${project.docker.latestminortag.version}</tag>
183 <tag>${project.docker.latestfulltag.version}</tag>
184 <tag>${project.docker.latesttagtimestamp.version}</tag>
192 <id>generate-images</id>
193 <phase>package</phase>
201 <phase>deploy</phase>