Michael Dürre | 4ddb1e9 | 2020-06-29 09:59:57 +0200 | [diff] [blame] | 1 | <?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 Timoney | 2d682e4 | 2020-07-14 09:46:02 -0400 | [diff] [blame] | 7 | <artifactId>distribution-alpine-root</artifactId> |
Dan Timoney | 971d4c0 | 2023-02-28 07:42:25 -0500 | [diff] [blame] | 8 | <version>1.5.1-SNAPSHOT</version> |
Michael Dürre | 4ddb1e9 | 2020-06-29 09:59:57 +0200 | [diff] [blame] | 9 | </parent> |
| 10 | |
| 11 | <artifactId>distribution-j11-alpine</artifactId> |
Michael Dürre | 4ddb1e9 | 2020-06-29 09:59:57 +0200 | [diff] [blame] | 12 | <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 Timoney | 0b9839e | 2020-09-01 16:21:53 -0400 | [diff] [blame] | 22 | <base.image>onap/integration-java11</base.image> |
Dan Timoney | ba87fe4 | 2021-02-22 10:27:28 -0500 | [diff] [blame] | 23 | <base.image.version>8.0.0</base.image.version> |
Michael Dürre | 4ddb1e9 | 2020-06-29 09:59:57 +0200 | [diff] [blame] | 24 | </properties> |
| 25 | |
| 26 | <build> |
| 27 | <plugins> |
Michael Dürre | 4ddb1e9 | 2020-06-29 09:59:57 +0200 | [diff] [blame] | 28 | <plugin> |
Michael Dürre | 408cd42 | 2023-01-12 12:18:31 +0100 | [diff] [blame] | 29 | <groupId>org.codehaus.gmaven</groupId> |
| 30 | <artifactId>groovy-maven-plugin</artifactId> |
| 31 | <version>2.1.1</version> |
Michael Dürre | 4ddb1e9 | 2020-06-29 09:59:57 +0200 | [diff] [blame] | 32 | <executions> |
| 33 | <execution> |
| 34 | <phase>validate</phase> |
| 35 | <goals> |
| 36 | <goal>execute</goal> |
| 37 | </goals> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 38 | <configuration> |
Michael Dürre | 4ddb1e9 | 2020-06-29 09:59:57 +0200 | [diff] [blame] | 39 | <source>${basedir}/../../src/main/scripts/TagVersion.groovy</source> |
| 40 | </configuration> |
| 41 | </execution> |
| 42 | </executions> |
| 43 | </plugin> |
Michael Dürre | 4ddb1e9 | 2020-06-29 09:59:57 +0200 | [diff] [blame] | 44 | <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) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 80 | <version>0.34.0</version> |
Michael Dürre | 4ddb1e9 | 2020-06-29 09:59:57 +0200 | [diff] [blame] | 81 | <inherited>false</inherited> |
| 82 | <configuration> |
Michael Dürre | 4ddb1e9 | 2020-06-29 09:59:57 +0200 | [diff] [blame] | 83 | <images> |
| 84 | <image> |
| 85 | <name>${image.name}</name> |
| 86 | <build> |
| 87 | <cleanup>try</cleanup> |
Singal, Kapil (ks220y) | 643e032 | 2021-03-28 22:21:54 -0400 | [diff] [blame] | 88 | <noCache>true</noCache> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 89 | <contextDir>${basedir}/target/docker-stage</contextDir> |
Michael Dürre | 4ddb1e9 | 2020-06-29 09:59:57 +0200 | [diff] [blame] | 90 | <dockerFile>Dockerfile</dockerFile> |
| 91 | <tags> |
| 92 | <tag>${project.docker.latestminortag.version}</tag> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 93 | <tag>${project.docker.latestfulltag.version}</tag> |
Michael Dürre | 4ddb1e9 | 2020-06-29 09:59:57 +0200 | [diff] [blame] | 94 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
| 95 | </tags> |
| 96 | </build> |
| 97 | </image> |
| 98 | </images> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 99 | <verbose>${docker.verbose}</verbose> |
| 100 | <skipPush>${docker.skip.push}</skipPush> |
Michael Dürre | 4ddb1e9 | 2020-06-29 09:59:57 +0200 | [diff] [blame] | 101 | </configuration> |
| 102 | <executions> |
| 103 | <execution> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 104 | <id>build-push-images</id> |
Michael Dürre | 4ddb1e9 | 2020-06-29 09:59:57 +0200 | [diff] [blame] | 105 | <goals> |
| 106 | <goal>build</goal> |
| 107 | <goal>push</goal> |
| 108 | </goals> |
| 109 | </execution> |
| 110 | </executions> |
| 111 | </plugin> |
Michael Dürre | 4ddb1e9 | 2020-06-29 09:59:57 +0200 | [diff] [blame] | 112 | </plugins> |
| 113 | </build> |
| 114 | </profile> |
| 115 | </profiles> |
| 116 | </project> |