Release version 1.1.0 docker containers and roll to next version
[ccsdk/cds.git] / ms / py-executor / pom.xml
1 <?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   -->
17
18 <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>
23         <artifactId>cds-ms</artifactId>
24         <version>1.1.1-SNAPSHOT</version>
25     </parent>
26
27     <artifactId>py-executor</artifactId>
28
29     <name>MS Python Script Executor</name>
30     <description>Micro-service providing python environment with gRPC binding for python script execution</description>
31
32     <properties>
33         <image.name>onap/ccsdk-py-executor</image.name>
34         <sonar.skip>true</sonar.skip>
35     </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>
112                         <version>0.34.0</version>
113                         <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>
129                             <verbose>${docker.verbose}</verbose>
130                             <skipPush>${docker.skip.push}</skipPush>
131                         </configuration>
132                         <executions>
133                             <execution>
134                                 <id>build-push-images</id>
135                                 <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>