blob: a278f8d1823c15d01b89b22fbf5aa465cc0f4cd3 [file] [log] [blame]
Michael Dürre4ddb1e92020-06-29 09:59:57 +02001<?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" 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>
4
5 <parent>
6 <groupId>org.onap.ccsdk.distribution</groupId>
Dan Timoney2d682e42020-07-14 09:46:02 -04007 <artifactId>distribution-alpine-root</artifactId>
Dan Timoney53525182024-08-07 17:10:10 -04008 <version>1.7.0-SNAPSHOT</version>
Michael Dürre4ddb1e92020-06-29 09:59:57 +02009 </parent>
10
11 <artifactId>distribution-j11-alpine</artifactId>
Michael Dürre4ddb1e92020-06-29 09:59:57 +020012 <packaging>pom</packaging>
13
14 <name>ccsdk-distribution :: alpine :: java11</name>
15 <description>Creates base alpine Docker container</description>
16 <organization>
17 <name>openECOMP</name>
18 </organization>
19
20 <properties>
21 <image.name>onap/ccsdk-alpine-j11-image</image.name>
Dan Timoney0b9839e2020-09-01 16:21:53 -040022 <base.image>onap/integration-java11</base.image>
Lukasz Rajewskid11b0692023-03-29 11:29:35 +000023 <base.image.version>12.0.0</base.image.version>
Michael Dürre4ddb1e92020-06-29 09:59:57 +020024 </properties>
25
26 <build>
27 <plugins>
Michael Dürre4ddb1e92020-06-29 09:59:57 +020028 <plugin>
Michael Dürre408cd422023-01-12 12:18:31 +010029 <groupId>org.codehaus.gmaven</groupId>
30 <artifactId>groovy-maven-plugin</artifactId>
31 <version>2.1.1</version>
Michael Dürre4ddb1e92020-06-29 09:59:57 +020032 <executions>
33 <execution>
34 <phase>validate</phase>
35 <goals>
36 <goal>execute</goal>
37 </goals>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050038 <configuration>
Michael Dürre4ddb1e92020-06-29 09:59:57 +020039 <source>${basedir}/../../src/main/scripts/TagVersion.groovy</source>
40 </configuration>
41 </execution>
42 </executions>
43 </plugin>
Michael Dürre4ddb1e92020-06-29 09:59:57 +020044 <plugin>
45 <artifactId>maven-resources-plugin</artifactId>
46 <version>2.6</version>
47 <executions>
48 <execution>
49 <id>copy-dockerfile</id>
50 <goals>
51 <goal>copy-resources</goal>
52 </goals><!-- here the phase you need -->
53 <phase>validate</phase>
54 <configuration>
55 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
56 <resources>
57 <resource>
58 <directory>src/main/docker</directory>
59 <includes>
60 <include>Dockerfile</include>
61 </includes>
62 <filtering>true</filtering>
63 </resource>
64 </resources>
65 </configuration>
66 </execution>
67 </executions>
68 </plugin>
69 </plugins>
70 </build>
71
72 <profiles>
73 <profile>
74 <id>docker</id>
75 <build>
76 <plugins>
77 <plugin>
78 <groupId>io.fabric8</groupId>
79 <artifactId>docker-maven-plugin</artifactId>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050080 <version>0.34.0</version>
Michael Dürre4ddb1e92020-06-29 09:59:57 +020081 <inherited>false</inherited>
82 <configuration>
Michael Dürre4ddb1e92020-06-29 09:59:57 +020083 <images>
84 <image>
85 <name>${image.name}</name>
86 <build>
87 <cleanup>try</cleanup>
Singal, Kapil (ks220y)643e0322021-03-28 22:21:54 -040088 <noCache>true</noCache>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050089 <contextDir>${basedir}/target/docker-stage</contextDir>
Michael Dürre4ddb1e92020-06-29 09:59:57 +020090 <dockerFile>Dockerfile</dockerFile>
91 <tags>
92 <tag>${project.docker.latestminortag.version}</tag>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050093 <tag>${project.docker.latestfulltag.version}</tag>
Michael Dürre4ddb1e92020-06-29 09:59:57 +020094 <tag>${project.docker.latesttagtimestamp.version}</tag>
95 </tags>
96 </build>
97 </image>
98 </images>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050099 <verbose>${docker.verbose}</verbose>
100 <skipPush>${docker.skip.push}</skipPush>
Michael Dürre4ddb1e92020-06-29 09:59:57 +0200101 </configuration>
102 <executions>
103 <execution>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -0500104 <id>build-push-images</id>
Michael Dürre4ddb1e92020-06-29 09:59:57 +0200105 <goals>
106 <goal>build</goal>
107 <goal>push</goal>
108 </goals>
109 </execution>
110 </executions>
111 </plugin>
Michael Dürre4ddb1e92020-06-29 09:59:57 +0200112 </plugins>
113 </build>
114 </profile>
115 </profiles>
116</project>