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.4.0-SNAPSHOT</version>
11 <groupId>org.onap.ccsdk.distribution</groupId>
12 <artifactId>distribution-dgbuilder-docker</artifactId>
13 <packaging>pom</packaging>
15 <name>ccsdk-distribution :: dgbuilder-docker</name>
16 <description>Creates docker container for dgbuilder</description>
22 <image.name>onap/ccsdk-dgbuilder-image</image.name>
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/TagSnapshotVersion.groovy</source>
45 <artifactId>maven-resources-plugin</artifactId>
46 <version>2.6</version>
49 <id>copy-dockerfile</id>
51 <goal>copy-resources</goal>
52 </goals><!-- here the phase you need -->
53 <phase>validate</phase>
55 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
58 <directory>src/main/docker</directory>
60 <include>Dockerfile</include>
62 <filtering>true</filtering>
70 <groupId>org.apache.maven.plugins</groupId>
71 <artifactId>maven-antrun-plugin</artifactId>
72 <version>1.8</version>
75 <id>make-stage-dir</id>
76 <phase>generate-sources</phase>
79 <mkdir dir="${basedir}/target/docker-stage/opt/onap/ccsdk"/>
87 <id>unzip-dgbuilder</id>
88 <phase>generate-sources</phase>
91 <unzip dest="${basedir}/target/docker-stage/opt/onap/ccsdk">
92 <fileset dir="${basedir}/../dgbuilder/target/">
93 <include name="**/*.zip"/>
103 <id>copy-dgbuilder</id>
104 <phase>generate-sources</phase>
107 <copy todir="${basedir}/target/docker-stage/opt/onap/ccsdk/dgbuilder">
108 <fileset dir="${basedir}/../dgbuilder" excludes="target/**"/>
117 <id>change shell permissions</id>
118 <phase>process-sources</phase>
121 <chmod dir="${basedir}/target/docker-stage/opt/onap/ccsdk" perm="+x" includes="**/*.sh"/>
138 <family>unix</family>
144 <groupId>org.codehaus.mojo</groupId>
145 <artifactId>exec-maven-plugin</artifactId>
146 <version>1.5.0</version>
148 <!-- TODO: Need to see alternate for below, so that it can execute on Windows Environment -->
150 <id>dgbuilder-createReleaseDir</id>
151 <phase>generate-sources</phase>
156 <executable>/bin/bash</executable>
158 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk/dgbuilder/createReleaseDir.sh</argument>
159 <argument>1702</argument>
160 <argument>dguser</argument>
161 <argument>change_email_id@dgbuilder.com</argument>
175 <groupId>io.fabric8</groupId>
176 <artifactId>docker-maven-plugin</artifactId>
177 <version>0.34.0</version>
178 <inherited>false</inherited>
182 <name>${image.name}</name>
184 <cleanup>try</cleanup>
185 <noCache>true</noCache>
186 <contextDir>${basedir}/target/docker-stage</contextDir>
187 <dockerFile>Dockerfile</dockerFile>
189 <tag>${project.docker.latestminortag.snapshot.version}</tag>
190 <tag>${project.docker.latestfulltag.snapshot.version}</tag>
191 <tag>${project.docker.latesttagtimestamp.snapshot.version}</tag>
196 <verbose>${docker.verbose}</verbose>
197 <skipPush>${docker.skip.push}</skipPush>
201 <id>build-push-images</id>