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> |
Dan Timoney | 486bd17 | 2021-03-22 13:52:45 -0400 | [diff] [blame^] | 8 | <version>1.2.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> |
Dan Timoney | 912f98b | 2018-02-27 14:10:22 -0500 | [diff] [blame] | 12 | <packaging>pom</packaging> |
Dan Timoney | 73be211 | 2017-08-09 13:37:32 -0400 | [diff] [blame] | 13 | |
Dan Timoney | 912f98b | 2018-02-27 14:10:22 -0500 | [diff] [blame] | 14 | <name>ccsdk-distribution :: ubuntu</name> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 15 | <description>Creates base ubuntu Docker container</description> |
Dan Timoney | 912f98b | 2018-02-27 14:10:22 -0500 | [diff] [blame] | 16 | <organization> |
| 17 | <name>openECOMP</name> |
| 18 | </organization> |
Dan Timoney | 73be211 | 2017-08-09 13:37:32 -0400 | [diff] [blame] | 19 | |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 20 | <properties> |
| 21 | <image.name>onap/ccsdk-ubuntu-image</image.name> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 22 | </properties> |
Dan Timoney | 73be211 | 2017-08-09 13:37:32 -0400 | [diff] [blame] | 23 | |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 24 | <build> |
| 25 | <plugins> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 26 | <plugin> |
| 27 | <groupId>org.codehaus.groovy.maven</groupId> |
| 28 | <artifactId>gmaven-plugin</artifactId> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 29 | <version>1.0</version> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 30 | <executions> |
| 31 | <execution> |
| 32 | <phase>validate</phase> |
| 33 | <goals> |
| 34 | <goal>execute</goal> |
| 35 | </goals> |
| 36 | <configuration> |
Timoney, Dan (dt5972) | 268c4ba | 2019-02-12 14:35:10 -0500 | [diff] [blame] | 37 | <source>${basedir}/../src/main/scripts/TagVersion.groovy</source> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 38 | </configuration> |
| 39 | </execution> |
| 40 | </executions> |
| 41 | </plugin> |
Dan Timoney | 73be211 | 2017-08-09 13:37:32 -0400 | [diff] [blame] | 42 | |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 43 | <plugin> |
| 44 | <artifactId>maven-resources-plugin</artifactId> |
| 45 | <version>2.6</version> |
| 46 | <executions> |
| 47 | <execution> |
| 48 | <id>copy-dockerfile</id> |
| 49 | <goals> |
| 50 | <goal>copy-resources</goal> |
| 51 | </goals><!-- here the phase you need --> |
| 52 | <phase>validate</phase> |
| 53 | <configuration> |
| 54 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 55 | <resources> |
| 56 | <resource> |
| 57 | <directory>src/main/docker</directory> |
| 58 | <includes> |
| 59 | <include>Dockerfile</include> |
| 60 | </includes> |
| 61 | <filtering>true</filtering> |
| 62 | </resource> |
| 63 | </resources> |
| 64 | </configuration> |
| 65 | </execution> |
| 66 | </executions> |
| 67 | </plugin> |
| 68 | </plugins> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 69 | </build> |
Dan Timoney | 73be211 | 2017-08-09 13:37:32 -0400 | [diff] [blame] | 70 | |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 71 | <profiles> |
| 72 | <profile> |
| 73 | <id>docker</id> |
| 74 | <build> |
| 75 | <plugins> |
| 76 | <plugin> |
| 77 | <groupId>io.fabric8</groupId> |
| 78 | <artifactId>docker-maven-plugin</artifactId> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 79 | <version>0.34.0</version> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 80 | <inherited>false</inherited> |
| 81 | <configuration> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 82 | <images> |
| 83 | <image> |
| 84 | <name>${image.name}</name> |
| 85 | <build> |
| 86 | <cleanup>try</cleanup> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 87 | <contextDir>${basedir}/target/docker-stage</contextDir> |
Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 88 | <dockerFile>Dockerfile</dockerFile> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 89 | <tags> |
Timoney, Dan (dt5972) | 268c4ba | 2019-02-12 14:35:10 -0500 | [diff] [blame] | 90 | <tag>${project.docker.latestminortag.version}</tag> |
| 91 | <tag>${project.docker.latestfulltag.version}</tag> |
| 92 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 93 | </tags> |
| 94 | </build> |
| 95 | </image> |
| 96 | </images> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 97 | <verbose>${docker.verbose}</verbose> |
| 98 | <skipPush>${docker.skip.push}</skipPush> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 99 | </configuration> |
| 100 | <executions> |
| 101 | <execution> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 102 | <id>build-push-images</id> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 103 | <goals> |
| 104 | <goal>build</goal> |
| 105 | <goal>push</goal> |
| 106 | </goals> |
| 107 | </execution> |
| 108 | </executions> |
| 109 | </plugin> |
Dan Timoney | 74e4e8d | 2017-08-22 11:51:54 -0400 | [diff] [blame] | 110 | </plugins> |
| 111 | </build> |
| 112 | </profile> |
| 113 | </profiles> |
Dan Timoney | 73be211 | 2017-08-09 13:37:32 -0400 | [diff] [blame] | 114 | </project> |