blob: bc6f903fd0bf3c3da61821b33fe87e56359b219c [file] [log] [blame]
Dan Timoney73be2112017-08-09 13:37:32 -04001<?xml version="1.0" encoding="UTF-8"?>
Dan Timoney912f98b2018-02-27 14:10:22 -05002<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 Timoney73be2112017-08-09 13:37:32 -04004
Dan Timoney74e4e8d2017-08-22 11:51:54 -04005 <parent>
6 <groupId>org.onap.ccsdk.distribution</groupId>
7 <artifactId>distribution-root</artifactId>
Timoney, Dan (dt5972)43a582e2019-03-21 16:32:05 -04008 <version>0.4.2-SNAPSHOT</version>
Dan Timoney74e4e8d2017-08-22 11:51:54 -04009 </parent>
Dan Timoney73be2112017-08-09 13:37:32 -040010
Dan Timoney74e4e8d2017-08-22 11:51:54 -040011 <artifactId>distribution-ubuntu</artifactId>
Timoney, Dan (dt5972)43a582e2019-03-21 16:32:05 -040012 <version>0.4.2-SNAPSHOT</version>
Dan Timoney912f98b2018-02-27 14:10:22 -050013 <packaging>pom</packaging>
Dan Timoney73be2112017-08-09 13:37:32 -040014
Dan Timoney912f98b2018-02-27 14:10:22 -050015 <name>ccsdk-distribution :: ubuntu</name>
Dan Timoney74e4e8d2017-08-22 11:51:54 -040016 <description>Creates base ubuntu Docker container</description>
Dan Timoney912f98b2018-02-27 14:10:22 -050017 <organization>
18 <name>openECOMP</name>
19 </organization>
Dan Timoney73be2112017-08-09 13:37:32 -040020
Dan Timoney74e4e8d2017-08-22 11:51:54 -040021 <properties>
22 <image.name>onap/ccsdk-ubuntu-image</image.name>
23 <ccsdk.project.version>${project.version}</ccsdk.project.version>
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -050024 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
25 <ccsdk.distribution.version>${project.version}</ccsdk.distribution.version>
Dan Timoney74e4e8d2017-08-22 11:51:54 -040026 </properties>
Dan Timoney73be2112017-08-09 13:37:32 -040027
Dan Timoney74e4e8d2017-08-22 11:51:54 -040028 <build>
29 <plugins>
Dan Timoney73be2112017-08-09 13:37:32 -040030
Dan Timoney74e4e8d2017-08-22 11:51:54 -040031 <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)268c4ba2019-02-12 14:35:10 -050041 <source>${basedir}/../src/main/scripts/TagVersion.groovy</source>
Dan Timoney74e4e8d2017-08-22 11:51:54 -040042 </configuration>
43 </execution>
44 </executions>
45 </plugin>
Dan Timoney73be2112017-08-09 13:37:32 -040046
Dan Timoney74e4e8d2017-08-22 11:51:54 -040047 <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 Timoney74e4e8d2017-08-22 11:51:54 -040073 </build>
Dan Timoney73be2112017-08-09 13:37:32 -040074
Dan Timoney74e4e8d2017-08-22 11:51:54 -040075 <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 Hrabos46805102019-03-28 03:22:04 -070083 <version>0.28.0</version>
Dan Timoney74e4e8d2017-08-22 11:51:54 -040084 <inherited>false</inherited>
85 <configuration>
Dan Timoney73be2112017-08-09 13:37:32 -040086
Dan Timoney74e4e8d2017-08-22 11:51:54 -040087 <images>
88 <image>
89 <name>${image.name}</name>
90 <build>
91 <cleanup>try</cleanup>
92 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
Timoney, Dan (dt5972)b1ac7252018-12-14 13:00:43 -050093 <dockerFile>Dockerfile</dockerFile>
Dan Timoney74e4e8d2017-08-22 11:51:54 -040094 <tags>
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -050095 <tag>${project.docker.latestminortag.version}</tag>
96 <tag>${project.docker.latestfulltag.version}</tag>
97 <tag>${project.docker.latesttagtimestamp.version}</tag>
Dan Timoney74e4e8d2017-08-22 11:51:54 -040098 </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 Timoney73be2112017-08-09 13:37:32 -0400127</project>