blob: 75ee600702eb2641b78683cbdf9170dac5778a0d [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>
Dan Timoney53525182024-08-07 17:10:10 -04008 <version>1.7.0-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>
Dan Timoney912f98b2018-02-27 14:10:22 -050012 <packaging>pom</packaging>
Dan Timoney73be2112017-08-09 13:37:32 -040013
Dan Timoney912f98b2018-02-27 14:10:22 -050014 <name>ccsdk-distribution :: ubuntu</name>
Dan Timoney74e4e8d2017-08-22 11:51:54 -040015 <description>Creates base ubuntu Docker container</description>
Dan Timoney912f98b2018-02-27 14:10:22 -050016 <organization>
17 <name>openECOMP</name>
18 </organization>
Dan Timoney73be2112017-08-09 13:37:32 -040019
Dan Timoney74e4e8d2017-08-22 11:51:54 -040020 <properties>
21 <image.name>onap/ccsdk-ubuntu-image</image.name>
Dan Timoney74e4e8d2017-08-22 11:51:54 -040022 </properties>
Dan Timoney73be2112017-08-09 13:37:32 -040023
Dan Timoney74e4e8d2017-08-22 11:51:54 -040024 <build>
25 <plugins>
Dan Timoney74e4e8d2017-08-22 11:51:54 -040026 <plugin>
Dan Timoney23db0692023-02-24 21:04:26 +000027 <groupId>org.codehaus.gmaven</groupId>
28 <artifactId>groovy-maven-plugin</artifactId>
29 <version>2.1.1</version>
Dan Timoney74e4e8d2017-08-22 11:51:54 -040030 <executions>
31 <execution>
32 <phase>validate</phase>
33 <goals>
34 <goal>execute</goal>
35 </goals>
36 <configuration>
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -050037 <source>${basedir}/../src/main/scripts/TagVersion.groovy</source>
Dan Timoney74e4e8d2017-08-22 11:51:54 -040038 </configuration>
39 </execution>
40 </executions>
41 </plugin>
Dan Timoney73be2112017-08-09 13:37:32 -040042
Dan Timoney74e4e8d2017-08-22 11:51:54 -040043 <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 Timoney74e4e8d2017-08-22 11:51:54 -040069 </build>
Dan Timoney73be2112017-08-09 13:37:32 -040070
Dan Timoney74e4e8d2017-08-22 11:51:54 -040071 <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)b6e7d962020-12-17 14:37:06 -050079 <version>0.34.0</version>
Dan Timoney74e4e8d2017-08-22 11:51:54 -040080 <inherited>false</inherited>
81 <configuration>
Dan Timoney74e4e8d2017-08-22 11:51:54 -040082 <images>
83 <image>
84 <name>${image.name}</name>
85 <build>
86 <cleanup>try</cleanup>
Singal, Kapil (ks220y)643e0322021-03-28 22:21:54 -040087 <noCache>true</noCache>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050088 <contextDir>${basedir}/target/docker-stage</contextDir>
Timoney, Dan (dt5972)b1ac7252018-12-14 13:00:43 -050089 <dockerFile>Dockerfile</dockerFile>
Dan Timoney74e4e8d2017-08-22 11:51:54 -040090 <tags>
Timoney, Dan (dt5972)268c4ba2019-02-12 14:35:10 -050091 <tag>${project.docker.latestminortag.version}</tag>
92 <tag>${project.docker.latestfulltag.version}</tag>
93 <tag>${project.docker.latesttagtimestamp.version}</tag>
Dan Timoney74e4e8d2017-08-22 11:51:54 -040094 </tags>
95 </build>
96 </image>
97 </images>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050098 <verbose>${docker.verbose}</verbose>
99 <skipPush>${docker.skip.push}</skipPush>
Dan Timoney74e4e8d2017-08-22 11:51:54 -0400100 </configuration>
101 <executions>
102 <execution>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -0500103 <id>build-push-images</id>
Dan Timoney74e4e8d2017-08-22 11:51:54 -0400104 <goals>
105 <goal>build</goal>
106 <goal>push</goal>
107 </goals>
108 </execution>
109 </executions>
110 </plugin>
Dan Timoney74e4e8d2017-08-22 11:51:54 -0400111 </plugins>
112 </build>
113 </profile>
114 </profiles>
Dan Timoney73be2112017-08-09 13:37:32 -0400115</project>