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>0.6.1-SNAPSHOT</version>
11 <groupId>org.onap.ccsdk.distribution</groupId>
12 <artifactId>distribution-dgbuilder-docker</artifactId>
13 <version>0.6.1-SNAPSHOT</version>
14 <packaging>pom</packaging>
16 <name>ccsdk-distribution :: dgbuilder-docker</name>
17 <description>Creates docker container for dgbuilder</description>
23 <image.name>onap/ccsdk-dgbuilder-image</image.name>
24 <ccsdk.project.version>${project.version}</ccsdk.project.version>
25 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
33 <groupId>org.codehaus.groovy.maven</groupId>
34 <artifactId>gmaven-plugin</artifactId>
37 <phase>validate</phase>
42 <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 <groupId>org.codehaus.mojo</groupId>
75 <artifactId>exec-maven-plugin</artifactId>
76 <version>1.5.0</version>
79 <id>Make-stage-dir</id>
80 <phase>generate-sources</phase>
85 <executable>/bin/mkdir</executable>
87 <argument>-p</argument>
88 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
93 <id>Unzip dgbuilder</id>
94 <phase>generate-sources</phase>
99 <executable>/usr/bin/unzip</executable>
101 <argument>-d</argument>
102 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
103 <argument>../dgbuilder/target/*.zip</argument>
108 <id>Copy dgbuilder</id>
109 <phase>generate-sources</phase>
114 <executable>/bin/cp</executable>
116 <argument>-r</argument>
117 <argument>../dgbuilder</argument>
118 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
124 <id>dgbuilder createReleaseDir</id>
125 <phase>generate-sources</phase>
130 <executable>/bin/bash</executable>
132 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk/dgbuilder/createReleaseDir.sh</argument>
133 <argument>1702</argument>
134 <argument>dguser</argument>
135 <argument>change_email_id@dgbuilder.com</argument>
141 <id>change shell permissions</id>
142 <phase>process-sources</phase>
147 <executable>/usr/bin/find</executable>
149 <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument>
150 <argument>-name</argument>
151 <argument>*.sh</argument>
152 <argument>-exec</argument>
153 <argument>chmod</argument>
154 <argument>+x</argument>
155 <argument>{}</argument>
156 <argument>;</argument>
171 <groupId>io.fabric8</groupId>
172 <artifactId>docker-maven-plugin</artifactId>
173 <version>0.28.0</version>
174 <inherited>false</inherited>
179 <name>${image.name}</name>
181 <cleanup>try</cleanup>
182 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
183 <dockerFile>Dockerfile</dockerFile>
185 <tag>${project.docker.latestminortag.version}</tag>
186 <tag>${project.docker.latestfulltag.version}</tag>
187 <tag>${project.docker.latesttagtimestamp.version}</tag>
195 <id>generate-images</id>
196 <phase>package</phase>
204 <phase>deploy</phase>