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.2.0-SNAPSHOT</version>
11 <artifactId>saltstack-server</artifactId>
12 <packaging>pom</packaging>
14 <name>ccsdk-distribution :: ${project.artifactId}</name>
15 <description>Creates base saltstack-server Docker container</description>
18 <image.name>onap/ccsdk-saltstack-server-image</image.name>
25 <groupId>org.codehaus.groovy.maven</groupId>
26 <artifactId>gmaven-plugin</artifactId>
27 <version>1.0</version>
30 <phase>validate</phase>
35 <source>${basedir}/../src/main/scripts/TagVersion.groovy</source>
42 <artifactId>maven-resources-plugin</artifactId>
43 <version>2.6</version>
46 <id>copy-dockerfile</id>
48 <goal>copy-resources</goal>
49 </goals><!-- here the phase you need -->
50 <phase>validate</phase>
52 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
55 <directory>src/main/docker</directory>
57 <include>Dockerfile</include>
59 <filtering>true</filtering>
75 <groupId>io.fabric8</groupId>
76 <artifactId>docker-maven-plugin</artifactId>
77 <version>0.34.0</version>
78 <inherited>false</inherited>
82 <name>${image.name}</name>
84 <cleanup>try</cleanup>
85 <noCache>true</noCache>
86 <contextDir>${basedir}/target/docker-stage</contextDir>
87 <dockerFile>Dockerfile</dockerFile>
89 <tag>${project.docker.latestminortag.version}</tag>
90 <tag>${project.docker.latestfulltag.version}</tag>
91 <tag>${project.docker.latesttagtimestamp.version}</tag>
96 <verbose>${docker.verbose}</verbose>
97 <skipPush>${docker.skip.push}</skipPush>
101 <id>build-push-images</id>