blob: 9839c71853ad8c3144683d1ab9fc26d9c1812e68 [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 Timoney8edec222020-04-07 11:51:20 -040024 <version>1.0.0-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>
33 <assembly.id>maven</assembly.id>
34 <image.name>onap/ccsdk-py-executor</image.name>
35 <docker.push.phase>deploy</docker.push.phase>
36 <docker.verbose>true</docker.verbose>
Brinda Santh807fbaa2019-09-23 10:10:58 -040037 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
38 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
Dan Timoney6ca10bd2020-02-24 15:23:37 -050039 <sonar.skip>true</sonar.skip>
Brinda Santh807fbaa2019-09-23 10:10:58 -040040 </properties>
41
42 <build>
43 <plugins>
44 <plugin>
45 <artifactId>maven-resources-plugin</artifactId>
46 <version>2.6</version>
47 <executions>
48 <execution>
49 <id>copy-dockerfile</id>
50 <goals>
51 <goal>copy-resources</goal>
52 </goals>
53 <phase>validate</phase>
54 <configuration>
55 <outputDirectory>${project.basedir}/target/docker-stage</outputDirectory>
56 <resources>
57 <resource>
58 <directory>docker</directory>
59 <includes>
60 <include>Dockerfile</include>
61 <include>start.sh</include>
62 </includes>
63 <filtering>true</filtering>
64 </resource>
65 </resources>
66 </configuration>
67 </execution>
68 </executions>
69 </plugin>
70 <plugin>
71 <artifactId>maven-assembly-plugin</artifactId>
72 <version>3.1.0</version>
73 <configuration>
74 <outputDirectory>${project.basedir}/target/docker-stage</outputDirectory>
75 <descriptors>
76 <descriptor>docker/distribution.xml</descriptor>
77 </descriptors>
78 <tarLongFileMode>posix</tarLongFileMode>
79 </configuration>
80 <executions>
81 <execution>
82 <id>${assembly.id}</id>
83 <phase>package</phase>
84 <goals>
85 <goal>single</goal>
86 </goals>
87 </execution>
88 </executions>
89 </plugin>
90 <plugin>
91 <groupId>org.codehaus.groovy.maven</groupId>
92 <artifactId>gmaven-plugin</artifactId>
93 <version>1.0</version>
94 <executions>
95 <execution>
96 <phase>validate</phase>
97 <goals>
98 <goal>execute</goal>
99 </goals>
100 <configuration>
101 <source>${basedir}/../../TagVersion.groovy</source>
102 </configuration>
103 </execution>
104 </executions>
105 </plugin>
106 </plugins>
107 </build>
108
109 <profiles>
110 <profile>
111 <id>docker</id>
112 <build>
113 <plugins>
114 <plugin>
115 <groupId>io.fabric8</groupId>
116 <artifactId>docker-maven-plugin</artifactId>
117 <version>0.26.1</version>
118 <inherited>false</inherited>
119 <configuration>
120 <images>
121 <image>
122 <name>${image.name}</name>
123 <build>
124 <cleanup>try</cleanup>
125 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
126 <tags>
127 <tag>${project.docker.latestminortag.version}</tag>
128 <tag>${project.docker.latestfulltag.version}</tag>
129 <tag>${project.docker.latesttagtimestamp.version}</tag>
130 </tags>
131 </build>
132 </image>
133 </images>
134 <verbose>true</verbose>
135 </configuration>
136 <executions>
137 <execution>
138 <id>generate-images</id>
139 <phase>package</phase>
140 <goals>
141 <goal>build</goal>
142 </goals>
143 </execution>
144 <execution>
145 <id>push-images</id>
146 <phase>${docker.push.phase}</phase>
147 <goals>
148 <goal>build</goal>
149 <goal>push</goal>
150 </goals>
151 </execution>
152 </executions>
153 </plugin>
154 </plugins>
155 </build>
156 </profile>
157 </profiles>
158</project>