Add Dockerfile for MultiCloud Framework
[multicloud/framework.git] / multivimbroker / pom.xml
1 <?xml version="1.0"?>
2 <!--
3  Copyright (c) 2017 Wind River Systems, Inc.
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        http://www.apache.org/licenses/LICENSE-2.0
9
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 -->
14 <project 
15     xmlns="http://maven.apache.org/POM/4.0.0" 
16     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">
17     <parent>
18         <groupId>org.onap.oparent</groupId>
19         <artifactId>oparent</artifactId>
20         <version>1.0.0-SNAPSHOT</version>
21         <relativePath>../oparent</relativePath>
22     </parent>
23     <modelVersion>4.0.0</modelVersion>
24     <groupId>org.onap.multicloud.framework</groupId>
25     <artifactId>multicloud-framework</artifactId>
26     <version>1.0.0-SNAPSHOT</version>
27     <packaging>pom</packaging>
28     <name>multicloud/framework</name>
29     <description>multivim broker</description>
30     <build>
31         <plugins>
32             <plugin>
33                 <artifactId>maven-assembly-plugin</artifactId>
34                 <configuration>
35                     <appendAssemblyId>false</appendAssemblyId>
36                     <descriptors>
37                         <descriptor>assembly.xml</descriptor>
38                     </descriptors>
39                 </configuration>
40                 <executions>
41                     <execution>
42                         <id>make-assembly</id>
43                         <phase>package</phase>
44                         <goals>
45                             <goal>single</goal>
46                         </goals>
47                     </execution>
48                 </executions>
49             </plugin>
50         </plugins>
51     </build>
52     <profiles>
53         <profile>
54             <id>docker</id>
55             <build>
56                 <plugins>
57                     <plugin>
58                         <groupId>io.fabric8</groupId>
59                         <artifactId>docker-maven-plugin</artifactId>
60                         <version>0.16.5</version>
61                         <inherited>false</inherited>
62                         <configuration>
63                             <images>
64                                 <image>
65                                     <name>onap/multicloud/multicloud-framework</name>
66                                     <build>
67                                         <cleanup>try</cleanup>
68                                         <dockerFileDir>${basedir}/docker/</dockerFileDir>
69                                         <dockerFile>${basedir}/docker/Dockerfile</dockerFile>
70                                         <tags>
71                                             <tag>${project.version}-STAGING-latest</tag>
72                                         </tags>
73                                     </build>
74                                 </image>
75                             </images>
76                         </configuration>
77                         <executions>
78                             <execution>
79                                 <id>generate-images</id>
80                                 <phase>package</phase>
81                                 <goals>
82                                     <goal>build</goal>
83                                 </goals>
84                             </execution>
85                             <execution>
86                                 <id>push-images</id>
87                                 <phase>deploy</phase>
88                                 <goals>
89                                     <goal>build</goal>
90                                     <goal>push</goal>
91                                 </goals>
92                             </execution>
93                         </executions>
94                     </plugin>
95                 </plugins>
96             </build>
97         </profile>
98     </profiles>
99 </project>