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.openecomp.sdnc.oam</groupId>
7 <artifactId>installation</artifactId>
8 <version>1.0.0-SNAPSHOT</version>
11 <modelVersion>4.0.0</modelVersion>
12 <packaging>pom</packaging>
13 <groupId>org.openecomp.sdnc.oam</groupId>
14 <artifactId>installation-dgbuilder</artifactId>
15 <version>1.0.0-SNAPSHOT</version>
17 <name>Installation - dgbuilder</name>
18 <description>Creates docker container for dgbuilder</description>
21 <image.name>ecomp/dgbuilder-sdnc-image</image.name>
30 <groupId>io.fabric8</groupId>
31 <artifactId>docker-maven-plugin</artifactId>
32 <version>0.16.5</version>
33 <inherited>false</inherited>
38 <name>${image.name}</name>
40 <cleanup>try</cleanup>
41 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
42 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
44 <tag>${project.version}</tag>
53 <id>generate-images</id>
54 <phase>process-sources</phase>
71 <artifactId>maven-resources-plugin</artifactId>
72 <version>2.6</version>
75 <id>copy-dockerfile</id>
77 <goal>copy-resources</goal>
78 </goals><!-- here the phase you need -->
79 <phase>validate</phase>
81 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
84 <directory>src/main/docker</directory>
86 <include>Dockerfile</include>
88 <filtering>true</filtering>
97 <artifactId>exec-maven-plugin</artifactId>
98 <groupId>org.codehaus.mojo</groupId>
102 <phase>generate-sources</phase>
107 <executable>/bin/mkdir</executable>
109 <argument>-p</argument>
110 <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc</argument>
115 <id>Copy dgbuilder</id>
116 <phase>generate-sources</phase>
121 <executable>/bin/cp</executable>
123 <argument>-r</argument>
124 <argument>../../dgbuilder</argument>
125 <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc</argument>
131 <id>dgbuilder createReleaseDir</id>
132 <phase>generate-sources</phase>
137 <executable>/bin/bash</executable>
139 <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc/dgbuilder/createReleaseDir</argument>
140 <argument>1702</argument>
141 <argument>dguser</argument>
142 <argument>change_email_id@dgbuilder.com</argument>
148 <id>change shell permissions</id>
149 <phase>process-sources</phase>
154 <executable>/usr/bin/find</executable>
156 <argument>${basedir}/target/docker-stage/opt/openecomp/sdnc</argument>
157 <argument>-name</argument>
158 <argument>*.sh</argument>
159 <argument>-exec</argument>
160 <argument>chmod</argument>
161 <argument>+x</argument>
162 <argument>{}</argument>
163 <argument>;</argument>
175 <name>openECOMP</name>