Dan Timoney | 73be211 | 2017-08-09 13:37:32 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Dan Timoney | 912f98b | 2018-02-27 14:10:22 -0500 | [diff] [blame] | 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> |
Dan Timoney | 73be211 | 2017-08-09 13:37:32 -0400 | [diff] [blame] | 4 | |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 5 | <parent> |
| 6 | <groupId>org.onap.ccsdk.distribution</groupId> |
| 7 | <artifactId>distribution-root</artifactId> |
Timoney, Dan (dt5972) | 3948e2a | 2019-09-12 10:04:46 -0400 | [diff] [blame] | 8 | <version>0.7.0-SNAPSHOT</version> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 9 | </parent> |
Dan Timoney | 73be211 | 2017-08-09 13:37:32 -0400 | [diff] [blame] | 10 | |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 11 | <artifactId>distribution-ubuntu</artifactId> |
Timoney, Dan (dt5972) | 3948e2a | 2019-09-12 10:04:46 -0400 | [diff] [blame] | 12 | <version>0.7.0-SNAPSHOT</version> |
Dan Timoney | 912f98b | 2018-02-27 14:10:22 -0500 | [diff] [blame] | 13 | <packaging>pom</packaging> |
Dan Timoney | 73be211 | 2017-08-09 13:37:32 -0400 | [diff] [blame] | 14 | |
Dan Timoney | 912f98b | 2018-02-27 14:10:22 -0500 | [diff] [blame] | 15 | <name>ccsdk-distribution :: ubuntu</name> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 16 | <description>Creates base ubuntu Docker container</description> |
Dan Timoney | 912f98b | 2018-02-27 14:10:22 -0500 | [diff] [blame] | 17 | <organization> |
| 18 | <name>openECOMP</name> |
| 19 | </organization> |
Dan Timoney | 73be211 | 2017-08-09 13:37:32 -0400 | [diff] [blame] | 20 | |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 21 | <properties> |
| 22 | <image.name>onap/ccsdk-ubuntu-image</image.name> |
| 23 | <ccsdk.project.version>${project.version}</ccsdk.project.version> |
Timoney, Dan (dt5972) | 268c4ba | 2019-02-12 14:35:10 -0500 | [diff] [blame] | 24 | <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp> |
| 25 | <ccsdk.distribution.version>${project.version}</ccsdk.distribution.version> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 26 | </properties> |
Dan Timoney | 73be211 | 2017-08-09 13:37:32 -0400 | [diff] [blame] | 27 | |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 28 | <build> |
| 29 | <plugins> |
Dan Timoney | 73be211 | 2017-08-09 13:37:32 -0400 | [diff] [blame] | 30 | |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 31 | <plugin> |
| 32 | <groupId>org.codehaus.groovy.maven</groupId> |
| 33 | <artifactId>gmaven-plugin</artifactId> |
| 34 | <executions> |
| 35 | <execution> |
| 36 | <phase>validate</phase> |
| 37 | <goals> |
| 38 | <goal>execute</goal> |
| 39 | </goals> |
| 40 | <configuration> |
Timoney, Dan (dt5972) | 268c4ba | 2019-02-12 14:35:10 -0500 | [diff] [blame] | 41 | <source>${basedir}/../src/main/scripts/TagVersion.groovy</source> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 42 | </configuration> |
| 43 | </execution> |
| 44 | </executions> |
| 45 | </plugin> |
Dan Timoney | 73be211 | 2017-08-09 13:37:32 -0400 | [diff] [blame] | 46 | |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 47 | <plugin> |
| 48 | <artifactId>maven-resources-plugin</artifactId> |
| 49 | <version>2.6</version> |
| 50 | <executions> |
| 51 | <execution> |
| 52 | <id>copy-dockerfile</id> |
| 53 | <goals> |
| 54 | <goal>copy-resources</goal> |
| 55 | </goals><!-- here the phase you need --> |
| 56 | <phase>validate</phase> |
| 57 | <configuration> |
| 58 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 59 | <resources> |
| 60 | <resource> |
| 61 | <directory>src/main/docker</directory> |
| 62 | <includes> |
| 63 | <include>Dockerfile</include> |
| 64 | </includes> |
| 65 | <filtering>true</filtering> |
| 66 | </resource> |
| 67 | </resources> |
| 68 | </configuration> |
| 69 | </execution> |
| 70 | </executions> |
| 71 | </plugin> |
| 72 | </plugins> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 73 | </build> |
Dan Timoney | 73be211 | 2017-08-09 13:37:32 -0400 | [diff] [blame] | 74 | |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 75 | <profiles> |
| 76 | <profile> |
| 77 | <id>docker</id> |
| 78 | <build> |
| 79 | <plugins> |
| 80 | <plugin> |
| 81 | <groupId>io.fabric8</groupId> |
| 82 | <artifactId>docker-maven-plugin</artifactId> |
Simon Hrabos | 4680510 | 2019-03-28 03:22:04 -0700 | [diff] [blame] | 83 | <version>0.28.0</version> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 84 | <inherited>false</inherited> |
| 85 | <configuration> |
Dan Timoney | 73be211 | 2017-08-09 13:37:32 -0400 | [diff] [blame] | 86 | |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 87 | <images> |
| 88 | <image> |
| 89 | <name>${image.name}</name> |
| 90 | <build> |
| 91 | <cleanup>try</cleanup> |
| 92 | <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> |
Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 93 | <dockerFile>Dockerfile</dockerFile> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 94 | <tags> |
Timoney, Dan (dt5972) | 268c4ba | 2019-02-12 14:35:10 -0500 | [diff] [blame] | 95 | <tag>${project.docker.latestminortag.version}</tag> |
| 96 | <tag>${project.docker.latestfulltag.version}</tag> |
| 97 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 98 | </tags> |
| 99 | </build> |
| 100 | </image> |
| 101 | </images> |
| 102 | </configuration> |
| 103 | <executions> |
| 104 | <execution> |
| 105 | <id>generate-images</id> |
| 106 | <phase>generate-sources</phase> |
| 107 | <goals> |
| 108 | <goal>build</goal> |
| 109 | </goals> |
| 110 | </execution> |
| 111 | |
| 112 | <execution> |
| 113 | <id>push-images</id> |
| 114 | <phase>deploy</phase> |
| 115 | <goals> |
| 116 | <goal>build</goal> |
| 117 | <goal>push</goal> |
| 118 | </goals> |
| 119 | </execution> |
| 120 | </executions> |
| 121 | </plugin> |
| 122 | |
| 123 | </plugins> |
| 124 | </build> |
| 125 | </profile> |
| 126 | </profiles> |
Dan Timoney | 73be211 | 2017-08-09 13:37:32 -0400 | [diff] [blame] | 127 | </project> |