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-odl-sodium</artifactId>
8 <version>1.1.1-SNAPSHOT</version>
11 <artifactId>distribution-odl-sodium-docker</artifactId>
12 <packaging>pom</packaging>
14 <name>ccsdk-distribution :: opendaylight :: sodium :: docker</name>
15 <description>Creates OpenDaylight container</description>
21 <image.name>onap/ccsdk-odl-sodium-alpine-image</image.name>
22 <odl.karaf.artifactId>onap-karaf</odl.karaf.artifactId>
29 <groupId>org.codehaus.groovy.maven</groupId>
30 <artifactId>gmaven-plugin</artifactId>
31 <version>1.0</version>
34 <phase>validate</phase>
39 <source>${basedir}/../../../src/main/scripts/TagVersion.groovy</source>
46 <groupId>org.apache.maven.plugins</groupId>
47 <artifactId>maven-dependency-plugin</artifactId>
48 <version>3.0.0</version>
51 <id>get-odl-distribution</id>
52 <phase>validate</phase>
59 <groupId>org.opendaylight.integration</groupId>
60 <artifactId>${odl.karaf.artifactId}</artifactId>
61 <version>${ccsdk.opendaylight.version}</version>
64 <overWrite>true</overWrite>
65 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
68 <overWriteReleases>false</overWriteReleases>
69 <overWriteSnapshots>true</overWriteSnapshots>
70 <overWriteIfNewer>true</overWriteIfNewer>
77 <artifactId>maven-resources-plugin</artifactId>
78 <version>2.6</version>
81 <id>copy-dockerfile</id>
83 <goal>copy-resources</goal>
84 </goals><!-- here the phase you need -->
85 <phase>validate</phase>
87 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
90 <directory>src/main/docker</directory>
92 <include>Dockerfile</include>
94 <filtering>true</filtering>
97 <directory>src/main/odlscripts</directory>
101 <filtering>false</filtering>
118 <groupId>io.fabric8</groupId>
119 <artifactId>docker-maven-plugin</artifactId>
120 <version>0.34.0</version>
121 <inherited>false</inherited>
125 <name>${image.name}</name>
127 <cleanup>try</cleanup>
128 <noCache>true</noCache>
129 <contextDir>${basedir}/target/docker-stage</contextDir>
130 <dockerFile>Dockerfile</dockerFile>
132 <tag>${project.docker.latestminortag.version}</tag>
133 <tag>${project.docker.latestfulltag.version}</tag>
134 <tag>${project.docker.latesttagtimestamp.version}</tag>
139 <verbose>${docker.verbose}</verbose>
140 <skipPush>${docker.skip.push}</skipPush>
144 <id>build-push-images</id>