blob: 860b8a61ec5b7eaa774936727d11caa7dad6dad6 [file] [log] [blame]
Brinda Santh807fbaa2019-09-23 10:10:58 -04001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ Copyright © 2018-2019 AT&T Intellectual Property.
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 -->
Brinda Santh807fbaa2019-09-23 10:10:58 -040017<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">
18 <modelVersion>4.0.0</modelVersion>
19
20 <parent>
21 <groupId>org.onap.ccsdk.cds</groupId>
Singal, Kapil (ks220y)8de37f92020-09-11 13:58:42 -040022 <artifactId>cds-ms</artifactId>
Timoney, Dan (dt5972)61dcd852022-10-28 10:11:36 -040023 <version>1.5.0-SNAPSHOT</version>
Brinda Santh807fbaa2019-09-23 10:10:58 -040024 </parent>
25
26 <artifactId>py-executor</artifactId>
27
Singal, Kapil (ks220y)11687d22021-03-19 15:08:22 -040028 <name>MS Python Executor</name>
Brinda Santh807fbaa2019-09-23 10:10:58 -040029 <description>Micro-service providing python environment with gRPC binding for python script execution</description>
30
31 <properties>
Brinda Santh807fbaa2019-09-23 10:10:58 -040032 <image.name>onap/ccsdk-py-executor</image.name>
Dan Timoney6ca10bd2020-02-24 15:23:37 -050033 <sonar.skip>true</sonar.skip>
Brinda Santh807fbaa2019-09-23 10:10:58 -040034 </properties>
35
36 <build>
37 <plugins>
38 <plugin>
39 <artifactId>maven-resources-plugin</artifactId>
40 <version>2.6</version>
41 <executions>
42 <execution>
43 <id>copy-dockerfile</id>
44 <goals>
45 <goal>copy-resources</goal>
46 </goals>
47 <phase>validate</phase>
48 <configuration>
49 <outputDirectory>${project.basedir}/target/docker-stage</outputDirectory>
50 <resources>
51 <resource>
52 <directory>docker</directory>
53 <includes>
54 <include>Dockerfile</include>
55 <include>start.sh</include>
56 </includes>
57 <filtering>true</filtering>
58 </resource>
59 </resources>
60 </configuration>
61 </execution>
62 </executions>
63 </plugin>
64 <plugin>
65 <artifactId>maven-assembly-plugin</artifactId>
66 <version>3.1.0</version>
67 <configuration>
68 <outputDirectory>${project.basedir}/target/docker-stage</outputDirectory>
69 <descriptors>
70 <descriptor>docker/distribution.xml</descriptor>
71 </descriptors>
72 <tarLongFileMode>posix</tarLongFileMode>
73 </configuration>
74 <executions>
75 <execution>
76 <id>${assembly.id}</id>
77 <phase>package</phase>
78 <goals>
79 <goal>single</goal>
80 </goals>
81 </execution>
82 </executions>
83 </plugin>
84 <plugin>
Dan Timoneyc0aebdf2023-03-09 10:20:51 -050085 <groupId>org.codehaus.gmaven</groupId>
86 <artifactId>groovy-maven-plugin</artifactId>
87 <version>2.1.1</version>
Brinda Santh807fbaa2019-09-23 10:10:58 -040088 <executions>
89 <execution>
90 <phase>validate</phase>
91 <goals>
92 <goal>execute</goal>
93 </goals>
94 <configuration>
95 <source>${basedir}/../../TagVersion.groovy</source>
96 </configuration>
97 </execution>
98 </executions>
99 </plugin>
100 </plugins>
101 </build>
102
103 <profiles>
104 <profile>
105 <id>docker</id>
106 <build>
107 <plugins>
108 <plugin>
109 <groupId>io.fabric8</groupId>
110 <artifactId>docker-maven-plugin</artifactId>
Singal, Kapil (ks220y)fbbc9bc2020-09-16 10:49:28 -0400111 <version>0.34.0</version>
Brinda Santh807fbaa2019-09-23 10:10:58 -0400112 <inherited>false</inherited>
113 <configuration>
114 <images>
115 <image>
116 <name>${image.name}</name>
117 <build>
118 <cleanup>try</cleanup>
Singal, Kapil (ks220y)11687d22021-03-19 15:08:22 -0400119 <noCache>true</noCache>
Brinda Santh807fbaa2019-09-23 10:10:58 -0400120 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
121 <tags>
122 <tag>${project.docker.latestminortag.version}</tag>
123 <tag>${project.docker.latestfulltag.version}</tag>
124 <tag>${project.docker.latesttagtimestamp.version}</tag>
125 </tags>
126 </build>
127 </image>
128 </images>
Singal, Kapil (ks220y)fbbc9bc2020-09-16 10:49:28 -0400129 <verbose>${docker.verbose}</verbose>
130 <skipPush>${docker.skip.push}</skipPush>
Brinda Santh807fbaa2019-09-23 10:10:58 -0400131 </configuration>
132 <executions>
133 <execution>
Singal, Kapil (ks220y)fbbc9bc2020-09-16 10:49:28 -0400134 <id>build-push-images</id>
Brinda Santh807fbaa2019-09-23 10:10:58 -0400135 <goals>
136 <goal>build</goal>
137 <goal>push</goal>
138 </goals>
139 </execution>
140 </executions>
141 </plugin>
142 </plugins>
143 </build>
144 </profile>
145 </profiles>
146</project>