blob: f5ec32e6c09dc28e4cb58db2809235fa67b3df66 [file] [log] [blame]
Ganesh Chandrasekaran8ba2cee2019-02-12 15:01:25 +09001<?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>
Timoney, Dan (dt5972)39e159f2022-10-21 12:40:14 -04008 <version>1.5.0-SNAPSHOT</version>
Ganesh Chandrasekaran8ba2cee2019-02-12 15:01:25 +09009 </parent>
10
11 <artifactId>saltstack-server</artifactId>
Ganesh Chandrasekaran8ba2cee2019-02-12 15:01:25 +090012 <packaging>pom</packaging>
13
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050014 <name>ccsdk-distribution :: ${project.artifactId}</name>
Ganesh Chandrasekaran8ba2cee2019-02-12 15:01:25 +090015 <description>Creates base saltstack-server Docker container</description>
16
17 <properties>
18 <image.name>onap/ccsdk-saltstack-server-image</image.name>
Ganesh Chandrasekaran8ba2cee2019-02-12 15:01:25 +090019 </properties>
20
21 <build>
22 <plugins>
23
24 <plugin>
25 <groupId>org.codehaus.groovy.maven</groupId>
26 <artifactId>gmaven-plugin</artifactId>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050027 <version>1.0</version>
Ganesh Chandrasekaran8ba2cee2019-02-12 15:01:25 +090028 <executions>
29 <execution>
30 <phase>validate</phase>
31 <goals>
32 <goal>execute</goal>
33 </goals>
34 <configuration>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050035 <source>${basedir}/../src/main/scripts/TagVersion.groovy</source>
Ganesh Chandrasekaran8ba2cee2019-02-12 15:01:25 +090036 </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)b6e7d962020-12-17 14:37:06 -050077 <version>0.34.0</version>
Ganesh Chandrasekaran8ba2cee2019-02-12 15:01:25 +090078 <inherited>false</inherited>
79 <configuration>
Ganesh Chandrasekaran8ba2cee2019-02-12 15:01:25 +090080 <images>
81 <image>
82 <name>${image.name}</name>
83 <build>
84 <cleanup>try</cleanup>
Singal, Kapil (ks220y)643e0322021-03-28 22:21:54 -040085 <noCache>true</noCache>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050086 <contextDir>${basedir}/target/docker-stage</contextDir>
Ganesh Chandrasekaran8ba2cee2019-02-12 15:01:25 +090087 <dockerFile>Dockerfile</dockerFile>
88 <tags>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050089 <tag>${project.docker.latestminortag.version}</tag>
90 <tag>${project.docker.latestfulltag.version}</tag>
91 <tag>${project.docker.latesttagtimestamp.version}</tag>
Ganesh Chandrasekaran8ba2cee2019-02-12 15:01:25 +090092 </tags>
93 </build>
94 </image>
95 </images>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -050096 <verbose>${docker.verbose}</verbose>
97 <skipPush>${docker.skip.push}</skipPush>
Ganesh Chandrasekaran8ba2cee2019-02-12 15:01:25 +090098 </configuration>
99 <executions>
100 <execution>
Singal, Kapil (ks220y)b6e7d962020-12-17 14:37:06 -0500101 <id>build-push-images</id>
Ganesh Chandrasekaran8ba2cee2019-02-12 15:01:25 +0900102 <goals>
103 <goal>build</goal>
104 <goal>push</goal>
105 </goals>
106 </execution>
107 </executions>
108 </plugin>
Ganesh Chandrasekaran8ba2cee2019-02-12 15:01:25 +0900109 </plugins>
110 </build>
111 </profile>
112 </profiles>
113</project>