blob: e5b9dda5ac2dfb64948f66c42c731a38c3295088 [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 -->
Dan Timoney8edec222020-04-07 11:51:20 -040017
Brinda Santh807fbaa2019-09-23 10:10:58 -040018<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">
19 <modelVersion>4.0.0</modelVersion>
20
21 <parent>
22 <groupId>org.onap.ccsdk.cds</groupId>
Singal, Kapil (ks220y)8de37f92020-09-11 13:58:42 -040023 <artifactId>cds-ms</artifactId>
Dan Timoneybaea95f2021-04-29 08:33:42 -040024 <version>1.1.5-SNAPSHOT</version>
Brinda Santh807fbaa2019-09-23 10:10:58 -040025 </parent>
26
27 <artifactId>py-executor</artifactId>
28
Singal, Kapil (ks220y)8de37f92020-09-11 13:58:42 -040029 <name>MS Python Script Executor</name>
Brinda Santh807fbaa2019-09-23 10:10:58 -040030 <description>Micro-service providing python environment with gRPC binding for python script execution</description>
31
32 <properties>
Brinda Santh807fbaa2019-09-23 10:10:58 -040033 <image.name>onap/ccsdk-py-executor</image.name>
Dan Timoney6ca10bd2020-02-24 15:23:37 -050034 <sonar.skip>true</sonar.skip>
Brinda Santh807fbaa2019-09-23 10:10:58 -040035 </properties>
36
37 <build>
38 <plugins>
39 <plugin>
40 <artifactId>maven-resources-plugin</artifactId>
41 <version>2.6</version>
42 <executions>
43 <execution>
44 <id>copy-dockerfile</id>
45 <goals>
46 <goal>copy-resources</goal>
47 </goals>
48 <phase>validate</phase>
49 <configuration>
50 <outputDirectory>${project.basedir}/target/docker-stage</outputDirectory>
51 <resources>
52 <resource>
53 <directory>docker</directory>
54 <includes>
55 <include>Dockerfile</include>
56 <include>start.sh</include>
57 </includes>
58 <filtering>true</filtering>
59 </resource>
60 </resources>
61 </configuration>
62 </execution>
63 </executions>
64 </plugin>
65 <plugin>
66 <artifactId>maven-assembly-plugin</artifactId>
67 <version>3.1.0</version>
68 <configuration>
69 <outputDirectory>${project.basedir}/target/docker-stage</outputDirectory>
70 <descriptors>
71 <descriptor>docker/distribution.xml</descriptor>
72 </descriptors>
73 <tarLongFileMode>posix</tarLongFileMode>
74 </configuration>
75 <executions>
76 <execution>
77 <id>${assembly.id}</id>
78 <phase>package</phase>
79 <goals>
80 <goal>single</goal>
81 </goals>
82 </execution>
83 </executions>
84 </plugin>
85 <plugin>
86 <groupId>org.codehaus.groovy.maven</groupId>
87 <artifactId>gmaven-plugin</artifactId>
88 <version>1.0</version>
89 <executions>
90 <execution>
91 <phase>validate</phase>
92 <goals>
93 <goal>execute</goal>
94 </goals>
95 <configuration>
96 <source>${basedir}/../../TagVersion.groovy</source>
97 </configuration>
98 </execution>
99 </executions>
100 </plugin>
101 </plugins>
102 </build>
103
104 <profiles>
105 <profile>
106 <id>docker</id>
107 <build>
108 <plugins>
109 <plugin>
110 <groupId>io.fabric8</groupId>
111 <artifactId>docker-maven-plugin</artifactId>
Singal, Kapil (ks220y)fbbc9bc2020-09-16 10:49:28 -0400112 <version>0.34.0</version>
Brinda Santh807fbaa2019-09-23 10:10:58 -0400113 <inherited>false</inherited>
114 <configuration>
115 <images>
116 <image>
117 <name>${image.name}</name>
118 <build>
119 <cleanup>try</cleanup>
120 <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>