blob: f4441b63fba0efb548c6c003185a5b7c9d84298c [file] [log] [blame]
Alexis de Talhouët50f466c2019-04-12 18:49:29 -04001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ Copyright © 2019 Bell Canada.
4 ~
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at
8 ~
9 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License.
16 -->
Dan Timoney8edec222020-04-07 11:51:20 -040017
Alexis de Talhouët3a80a2a2019-09-06 13:05:21 +000018<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">
Alexis de Talhouët50f466c2019-04-12 18:49:29 -040019 <modelVersion>4.0.0</modelVersion>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +000020
Alexis de Talhouët50f466c2019-04-12 18:49:29 -040021 <parent>
22 <groupId>org.onap.ccsdk.cds</groupId>
Singal, Kapil (ks220y)8de37f92020-09-11 13:58:42 -040023 <artifactId>cds-ms</artifactId>
Dan Timoneyc243c622021-08-03 11:47:50 -040024 <version>1.1.6-SNAPSHOT</version>
Alexis de Talhouët50f466c2019-04-12 18:49:29 -040025 <relativePath>..</relativePath>
26 </parent>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +000027
Alexis de Talhouët50f466c2019-04-12 18:49:29 -040028 <artifactId>command-executor</artifactId>
29 <packaging>pom</packaging>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +000030
Singal, Kapil (ks220y)8de37f92020-09-11 13:58:42 -040031 <name>MS Command Executor</name>
Alexis de Talhouët50f466c2019-04-12 18:49:29 -040032 <description>Micro-service providing python environment with gRPC binding for command execution</description>
33
34 <properties>
Alexis de Talhouët50f466c2019-04-12 18:49:29 -040035 <image.name>onap/ccsdk-commandexecutor</image.name>
Alexis de Talhouët50f466c2019-04-12 18:49:29 -040036 </properties>
37
38 <build>
39 <plugins>
40 <plugin>
41 <artifactId>maven-resources-plugin</artifactId>
42 <version>2.6</version>
43 <executions>
44 <execution>
45 <id>copy-dockerfile</id>
46 <goals>
47 <goal>copy-resources</goal>
48 </goals>
49 <phase>validate</phase>
50 <configuration>
51 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
52 <resources>
53 <resource>
54 <directory>src/main/docker</directory>
55 <includes>
56 <include>Dockerfile</include>
57 <include>start.sh</include>
58 </includes>
59 <filtering>true</filtering>
60 </resource>
61 </resources>
62 </configuration>
63 </execution>
64 </executions>
65 </plugin>
Alexis de Talhouëtee120a52019-04-12 18:51:26 -040066 <plugin>
67 <artifactId>maven-assembly-plugin</artifactId>
68 <version>3.1.0</version>
69 <configuration>
70 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
71 <descriptors>
72 <descriptor>src/main/docker/distribution.xml</descriptor>
73 </descriptors>
74 <tarLongFileMode>posix</tarLongFileMode>
75 </configuration>
76 <executions>
77 <execution>
78 <id>${assembly.id}</id>
79 <phase>package</phase>
80 <goals>
81 <goal>single</goal>
82 </goals>
83 </execution>
84 </executions>
85 </plugin>
Alexis de Talhouët50f466c2019-04-12 18:49:29 -040086 <plugin>
87 <groupId>org.codehaus.groovy.maven</groupId>
88 <artifactId>gmaven-plugin</artifactId>
89 <version>1.0</version>
90 <executions>
91 <execution>
92 <phase>validate</phase>
93 <goals>
94 <goal>execute</goal>
95 </goals>
96 <configuration>
97 <source>${basedir}/../../TagVersion.groovy</source>
98 </configuration>
99 </execution>
100 </executions>
101 </plugin>
102 </plugins>
103 </build>
104
105 <profiles>
106 <profile>
107 <id>docker</id>
108 <build>
109 <plugins>
110 <plugin>
111 <groupId>io.fabric8</groupId>
112 <artifactId>docker-maven-plugin</artifactId>
Singal, Kapil (ks220y)fbbc9bc2020-09-16 10:49:28 -0400113 <version>0.34.0</version>
Alexis de Talhouët50f466c2019-04-12 18:49:29 -0400114 <inherited>false</inherited>
115 <configuration>
116 <images>
117 <image>
118 <name>${image.name}</name>
119 <build>
120 <cleanup>try</cleanup>
121 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
122 <tags>
Alexis de Talhouëtf2136a42019-04-24 10:05:02 -0400123 <tag>${project.docker.latestminortag.version}</tag>
Alexis de Talhouët50f466c2019-04-12 18:49:29 -0400124 <tag>${project.docker.latestfulltag.version}</tag>
Alexis de Talhouëtf2136a42019-04-24 10:05:02 -0400125 <tag>${project.docker.latesttagtimestamp.version}</tag>
Alexis de Talhouët50f466c2019-04-12 18:49:29 -0400126 </tags>
127 </build>
128 </image>
129 </images>
Singal, Kapil (ks220y)fbbc9bc2020-09-16 10:49:28 -0400130 <verbose>${docker.verbose}</verbose>
131 <skipPush>${docker.skip.push}</skipPush>
Alexis de Talhouët50f466c2019-04-12 18:49:29 -0400132 </configuration>
133 <executions>
134 <execution>
Singal, Kapil (ks220y)fbbc9bc2020-09-16 10:49:28 -0400135 <id>build-push-images</id>
Alexis de Talhouët50f466c2019-04-12 18:49:29 -0400136 <goals>
137 <goal>build</goal>
138 <goal>push</goal>
139 </goals>
140 </execution>
141 </executions>
142 </plugin>
143 </plugins>
144 </build>
145 </profile>
146 </profiles>
147</project>