Timoney, Daniel (dt5972) | 324ee36 | 2017-02-15 10:37:53 -0500 | [diff] [blame] | 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"> |
| 4 | |
| 5 | <parent> |
| 6 | <groupId>org.openecomp.sdnc.oam</groupId> |
| 7 | <artifactId>installation</artifactId> |
Timoney, Daniel (dt5972) | 6d831ce | 2017-02-20 11:13:38 -0500 | [diff] [blame^] | 8 | <version>1.0.0-SNAPSHOT</version> |
Timoney, Daniel (dt5972) | 324ee36 | 2017-02-15 10:37:53 -0500 | [diff] [blame] | 9 | </parent> |
| 10 | |
| 11 | <modelVersion>4.0.0</modelVersion> |
| 12 | <packaging>pom</packaging> |
| 13 | <groupId>org.openecomp.sdnc.oam</groupId> |
| 14 | <artifactId>installation-ubuntu</artifactId> |
Timoney, Daniel (dt5972) | 6d831ce | 2017-02-20 11:13:38 -0500 | [diff] [blame^] | 15 | <version>1.0.0-SNAPSHOT</version> |
Timoney, Daniel (dt5972) | 324ee36 | 2017-02-15 10:37:53 -0500 | [diff] [blame] | 16 | |
| 17 | <name>Installation - ubuntu</name> |
| 18 | <description>Creates base ubuntu Docker container</description> |
| 19 | |
| 20 | <properties> |
| 21 | <image.name>ecomp/ubuntu-sdnc-image</image.name> |
| 22 | </properties> |
| 23 | |
| 24 | |
| 25 | <build> |
| 26 | <plugins> |
| 27 | |
| 28 | |
| 29 | <plugin> |
| 30 | <groupId>io.fabric8</groupId> |
| 31 | <artifactId>docker-maven-plugin</artifactId> |
| 32 | <version>0.16.5</version> |
| 33 | <inherited>false</inherited> |
| 34 | <configuration> |
| 35 | |
| 36 | <images> |
| 37 | <image> |
| 38 | <name>${image.name}</name> |
| 39 | <build> |
| 40 | <cleanup>try</cleanup> |
| 41 | <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> |
| 42 | <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile> |
| 43 | <tags> |
| 44 | <tag>${project.version}</tag> |
| 45 | <tag>latest</tag> |
| 46 | </tags> |
| 47 | </build> |
| 48 | </image> |
| 49 | </images> |
| 50 | </configuration> |
| 51 | <executions> |
| 52 | <execution> |
| 53 | <id>generate-images</id> |
| 54 | <phase>generate-sources</phase> |
| 55 | <goals> |
| 56 | <goal>build</goal> |
| 57 | </goals> |
| 58 | </execution> |
| 59 | |
| 60 | <execution> |
| 61 | <id>push-images</id> |
| 62 | <phase>deploy</phase> |
| 63 | <goals> |
| 64 | <goal>build</goal> |
| 65 | <goal>push</goal> |
| 66 | </goals> |
| 67 | </execution> |
| 68 | </executions> |
| 69 | </plugin> |
| 70 | |
| 71 | <plugin> |
| 72 | <artifactId>maven-resources-plugin</artifactId> |
| 73 | <version>2.6</version> |
| 74 | <executions> |
| 75 | <execution> |
| 76 | <id>copy-dockerfile</id> |
| 77 | <goals> |
| 78 | <goal>copy-resources</goal> |
| 79 | </goals><!-- here the phase you need --> |
| 80 | <phase>validate</phase> |
| 81 | <configuration> |
| 82 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 83 | <resources> |
| 84 | <resource> |
| 85 | <directory>src/main/docker</directory> |
| 86 | <includes> |
| 87 | <include>Dockerfile</include> |
| 88 | </includes> |
| 89 | <filtering>true</filtering> |
| 90 | </resource> |
| 91 | </resources> |
| 92 | </configuration> |
| 93 | </execution> |
| 94 | </executions> |
| 95 | </plugin> |
| 96 | </plugins> |
| 97 | |
| 98 | </build> |
| 99 | <organization> |
| 100 | <name>openECOMP</name> |
| 101 | </organization> |
| 102 | </project> |