1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ Copyright © 2018-2019 AT&T Intellectual Property.
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
9 ~ http://www.apache.org/licenses/LICENSE-2.0
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.
17 <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>
21 <groupId>org.onap.ccsdk.cds</groupId>
22 <artifactId>ms</artifactId>
23 <version>0.7.1-SNAPSHOT</version>
26 <artifactId>py-executor</artifactId>
28 <name>Python Script Executor</name>
29 <description>Micro-service providing python environment with gRPC binding for python script execution</description>
32 <assembly.id>maven</assembly.id>
33 <image.name>onap/ccsdk-py-executor</image.name>
34 <docker.push.phase>deploy</docker.push.phase>
35 <docker.verbose>true</docker.verbose>
36 <ccsdk.project.version>${project.version}</ccsdk.project.version>
37 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
38 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
39 <sonar.skip>true</sonar.skip>
45 <artifactId>maven-resources-plugin</artifactId>
46 <version>2.6</version>
49 <id>copy-dockerfile</id>
51 <goal>copy-resources</goal>
53 <phase>validate</phase>
55 <outputDirectory>${project.basedir}/target/docker-stage</outputDirectory>
58 <directory>docker</directory>
60 <include>Dockerfile</include>
61 <include>start.sh</include>
63 <filtering>true</filtering>
71 <artifactId>maven-assembly-plugin</artifactId>
72 <version>3.1.0</version>
74 <outputDirectory>${project.basedir}/target/docker-stage</outputDirectory>
76 <descriptor>docker/distribution.xml</descriptor>
78 <tarLongFileMode>posix</tarLongFileMode>
82 <id>${assembly.id}</id>
83 <phase>package</phase>
91 <groupId>org.codehaus.groovy.maven</groupId>
92 <artifactId>gmaven-plugin</artifactId>
93 <version>1.0</version>
96 <phase>validate</phase>
101 <source>${basedir}/../../TagVersion.groovy</source>
115 <groupId>io.fabric8</groupId>
116 <artifactId>docker-maven-plugin</artifactId>
117 <version>0.26.1</version>
118 <inherited>false</inherited>
122 <name>${image.name}</name>
124 <cleanup>try</cleanup>
125 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
127 <tag>${project.docker.latestminortag.version}</tag>
128 <tag>${project.docker.latestfulltag.version}</tag>
129 <tag>${project.docker.latesttagtimestamp.version}</tag>
134 <verbose>true</verbose>
138 <id>generate-images</id>
139 <phase>package</phase>
146 <phase>${docker.push.phase}</phase>