Ganesh Chandrasekaran | 8ba2cee | 2019-02-12 15:01:25 +0900 | [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> |
| 7 | <artifactId>distribution-root</artifactId> |
Dan Timoney | 3a8135c | 2024-10-09 10:48:01 -0400 | [diff] [blame^] | 8 | <version>2.0.1-SNAPSHOT</version> |
Ganesh Chandrasekaran | 8ba2cee | 2019-02-12 15:01:25 +0900 | [diff] [blame] | 9 | </parent> |
| 10 | |
| 11 | <artifactId>saltstack-server</artifactId> |
Ganesh Chandrasekaran | 8ba2cee | 2019-02-12 15:01:25 +0900 | [diff] [blame] | 12 | <packaging>pom</packaging> |
| 13 | |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 14 | <name>ccsdk-distribution :: ${project.artifactId}</name> |
Ganesh Chandrasekaran | 8ba2cee | 2019-02-12 15:01:25 +0900 | [diff] [blame] | 15 | <description>Creates base saltstack-server Docker container</description> |
| 16 | |
| 17 | <properties> |
| 18 | <image.name>onap/ccsdk-saltstack-server-image</image.name> |
Ganesh Chandrasekaran | 8ba2cee | 2019-02-12 15:01:25 +0900 | [diff] [blame] | 19 | </properties> |
| 20 | |
| 21 | <build> |
| 22 | <plugins> |
| 23 | |
| 24 | <plugin> |
Dan Timoney | 23db069 | 2023-02-24 21:04:26 +0000 | [diff] [blame] | 25 | <groupId>org.codehaus.gmaven</groupId> |
| 26 | <artifactId>groovy-maven-plugin</artifactId> |
| 27 | <version>2.1.1</version> |
Ganesh Chandrasekaran | 8ba2cee | 2019-02-12 15:01:25 +0900 | [diff] [blame] | 28 | <executions> |
| 29 | <execution> |
| 30 | <phase>validate</phase> |
| 31 | <goals> |
| 32 | <goal>execute</goal> |
| 33 | </goals> |
| 34 | <configuration> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 35 | <source>${basedir}/../src/main/scripts/TagVersion.groovy</source> |
Ganesh Chandrasekaran | 8ba2cee | 2019-02-12 15:01:25 +0900 | [diff] [blame] | 36 | </configuration> |
| 37 | </execution> |
| 38 | </executions> |
| 39 | </plugin> |
| 40 | |
| 41 | <plugin> |
| 42 | <artifactId>maven-resources-plugin</artifactId> |
| 43 | <version>2.6</version> |
| 44 | <executions> |
| 45 | <execution> |
| 46 | <id>copy-dockerfile</id> |
| 47 | <goals> |
| 48 | <goal>copy-resources</goal> |
| 49 | </goals><!-- here the phase you need --> |
| 50 | <phase>validate</phase> |
| 51 | <configuration> |
| 52 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 53 | <resources> |
| 54 | <resource> |
| 55 | <directory>src/main/docker</directory> |
| 56 | <includes> |
| 57 | <include>Dockerfile</include> |
| 58 | </includes> |
| 59 | <filtering>true</filtering> |
| 60 | </resource> |
| 61 | </resources> |
| 62 | </configuration> |
| 63 | </execution> |
| 64 | </executions> |
| 65 | </plugin> |
| 66 | </plugins> |
| 67 | </build> |
| 68 | |
| 69 | <profiles> |
| 70 | <profile> |
| 71 | <id>docker</id> |
| 72 | <build> |
| 73 | <plugins> |
| 74 | <plugin> |
| 75 | <groupId>io.fabric8</groupId> |
| 76 | <artifactId>docker-maven-plugin</artifactId> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 77 | <version>0.34.0</version> |
Ganesh Chandrasekaran | 8ba2cee | 2019-02-12 15:01:25 +0900 | [diff] [blame] | 78 | <inherited>false</inherited> |
| 79 | <configuration> |
Ganesh Chandrasekaran | 8ba2cee | 2019-02-12 15:01:25 +0900 | [diff] [blame] | 80 | <images> |
| 81 | <image> |
| 82 | <name>${image.name}</name> |
| 83 | <build> |
| 84 | <cleanup>try</cleanup> |
Singal, Kapil (ks220y) | 643e032 | 2021-03-28 22:21:54 -0400 | [diff] [blame] | 85 | <noCache>true</noCache> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 86 | <contextDir>${basedir}/target/docker-stage</contextDir> |
Ganesh Chandrasekaran | 8ba2cee | 2019-02-12 15:01:25 +0900 | [diff] [blame] | 87 | <dockerFile>Dockerfile</dockerFile> |
| 88 | <tags> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 89 | <tag>${project.docker.latestminortag.version}</tag> |
| 90 | <tag>${project.docker.latestfulltag.version}</tag> |
| 91 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
Ganesh Chandrasekaran | 8ba2cee | 2019-02-12 15:01:25 +0900 | [diff] [blame] | 92 | </tags> |
| 93 | </build> |
| 94 | </image> |
| 95 | </images> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 96 | <verbose>${docker.verbose}</verbose> |
| 97 | <skipPush>${docker.skip.push}</skipPush> |
Ganesh Chandrasekaran | 8ba2cee | 2019-02-12 15:01:25 +0900 | [diff] [blame] | 98 | </configuration> |
| 99 | <executions> |
| 100 | <execution> |
Singal, Kapil (ks220y) | b6e7d96 | 2020-12-17 14:37:06 -0500 | [diff] [blame] | 101 | <id>build-push-images</id> |
Ganesh Chandrasekaran | 8ba2cee | 2019-02-12 15:01:25 +0900 | [diff] [blame] | 102 | <goals> |
| 103 | <goal>build</goal> |
| 104 | <goal>push</goal> |
| 105 | </goals> |
| 106 | </execution> |
| 107 | </executions> |
| 108 | </plugin> |
Ganesh Chandrasekaran | 8ba2cee | 2019-02-12 15:01:25 +0900 | [diff] [blame] | 109 | </plugins> |
| 110 | </build> |
| 111 | </profile> |
| 112 | </profiles> |
| 113 | </project> |