blob: 84a83dcf0e5e12ff29b102948fd53269d1daede3 [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 Timoney692718d2020-12-07 11:24:54 -05008 <version>1.1.1-SNAPSHOT</version>
Michael Dürre4ddb1e92020-06-29 09:59:57 +02009 </parent>
10
11 <artifactId>distribution-j11-alpine</artifactId>
Dan Timoney692718d2020-12-07 11:24:54 -050012 <version>1.1.1-SNAPSHOT</version>
Michael Dürre4ddb1e92020-06-29 09:59:57 +020013 <packaging>pom</packaging>
14
15 <name>ccsdk-distribution :: alpine :: java11</name>
16 <description>Creates base alpine Docker container</description>
17 <organization>
18 <name>openECOMP</name>
19 </organization>
20
21 <properties>
22 <image.name>onap/ccsdk-alpine-j11-image</image.name>
23 <ccsdk.project.version>${project.version}</ccsdk.project.version>
24 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
Dan Timoney0b9839e2020-09-01 16:21:53 -040025 <base.image>onap/integration-java11</base.image>
26 <base.image.version>7.1.0</base.image.version>
Michael Dürre4ddb1e92020-06-29 09:59:57 +020027 </properties>
28
29 <build>
30 <plugins>
31
32 <plugin>
33 <groupId>org.codehaus.groovy.maven</groupId>
34 <artifactId>gmaven-plugin</artifactId>
35 <executions>
36 <execution>
37 <phase>validate</phase>
38 <goals>
39 <goal>execute</goal>
40 </goals>
41 <configuration>
42 <source>${basedir}/../../src/main/scripts/TagVersion.groovy</source>
43 </configuration>
44 </execution>
45 </executions>
46 </plugin>
47
48 <plugin>
49 <artifactId>maven-resources-plugin</artifactId>
50 <version>2.6</version>
51 <executions>
52 <execution>
53 <id>copy-dockerfile</id>
54 <goals>
55 <goal>copy-resources</goal>
56 </goals><!-- here the phase you need -->
57 <phase>validate</phase>
58 <configuration>
59 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
60 <resources>
61 <resource>
62 <directory>src/main/docker</directory>
63 <includes>
64 <include>Dockerfile</include>
65 </includes>
66 <filtering>true</filtering>
67 </resource>
68 </resources>
69 </configuration>
70 </execution>
71 </executions>
72 </plugin>
73 </plugins>
74 </build>
75
76 <profiles>
77 <profile>
78 <id>docker</id>
79 <build>
80 <plugins>
81 <plugin>
82 <groupId>io.fabric8</groupId>
83 <artifactId>docker-maven-plugin</artifactId>
84 <version>0.28.0</version>
85 <inherited>false</inherited>
86 <configuration>
87
88 <images>
89 <image>
90 <name>${image.name}</name>
91 <build>
92 <cleanup>try</cleanup>
93 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
94 <dockerFile>Dockerfile</dockerFile>
95 <tags>
96 <tag>${project.docker.latestminortag.version}</tag>
97 <tag>${project.docker.latestfulltag.version}</tag>
98 <tag>${project.docker.latesttagtimestamp.version}</tag>
99 </tags>
100 </build>
101 </image>
102 </images>
103 </configuration>
104 <executions>
105 <execution>
106 <id>generate-images</id>
107 <phase>generate-sources</phase>
108 <goals>
109 <goal>build</goal>
110 </goals>
111 </execution>
112
113 <execution>
114 <id>push-images</id>
115 <phase>deploy</phase>
116 <goals>
117 <goal>build</goal>
118 <goal>push</goal>
119 </goals>
120 </execution>
121 </executions>
122 </plugin>
123
124 </plugins>
125 </build>
126 </profile>
127 </profiles>
128</project>