blob: e5110561058fd749df92f5126494ee732d69fa0e [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Michael Landoed64b5e2017-06-09 03:19:04 +03002 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Michael Lando451a3402017-02-19 10:28:42 +02003
4 <modelVersion>4.0.0</modelVersion>
5
6 <artifactId>sdc-os-chef</artifactId>
7
8 <parent>
9 <groupId>org.openecomp.sdc</groupId>
10 <artifactId>sdc-main</artifactId>
Michael Landoebd7c8f2017-03-15 20:38:00 +020011 <version>1.1.0-SNAPSHOT</version>
Michael Lando451a3402017-02-19 10:28:42 +020012 </parent>
13
Michael Landoed64b5e2017-06-09 03:19:04 +030014
ig6133142d2e62017-04-02 17:14:00 +030015 <properties>
ig6133538b8262017-04-06 12:50:11 +030016 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
17 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
ig6133142d2e62017-04-02 17:14:00 +030018 </properties>
Michael Lando451a3402017-02-19 10:28:42 +020019
Michael Lando9dd269d2017-02-20 01:04:22 +020020 <build>
21 <plugins>
22 <plugin>
23 <groupId>com.google.code.maven-replacer-plugin</groupId>
24 <artifactId>replacer</artifactId>
25 <version>1.5.3</version>
26 <executions>
27 <execution>
28 <phase>prepare-package</phase>
29 <goals>
30 <goal>replace</goal>
31 </goals>
32 </execution>
33 </executions>
34
35 <configuration>
36 <basedir>${project.basedir}</basedir>
37 <includes>
38 <include>sdc-backend/Dockerfile</include>
39 <include>sdc-frontend/Dockerfile</include>
40 <include>scripts/docker_run.sh</include>
41 </includes>
42 <replacements>
43 <replacement>
44 <token>__SDC-RELEASE__</token>
45 <value>${project.version}</value>
46 </replacement>
47 </replacements>
48 </configuration>
49 </plugin>
50 </plugins>
Michael Lando451a3402017-02-19 10:28:42 +020051 </build>
Michael Lando9dd269d2017-02-20 01:04:22 +020052
53 <profiles>
54 <profile>
ig6133142d2e62017-04-02 17:14:00 +030055 <id>docker-staging</id>
56 <properties>
ig61330f572ce2017-04-06 10:48:50 +030057 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
58 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
ig6133142d2e62017-04-02 17:14:00 +030059 </properties>
60 </profile>
Michael Landoed64b5e2017-06-09 03:19:04 +030061
ig6133142d2e62017-04-02 17:14:00 +030062 <profile>
Michael Lando9dd269d2017-02-20 01:04:22 +020063 <id>docker</id>
Michael Landoed64b5e2017-06-09 03:19:04 +030064 <activation>
65 <activeByDefault>false</activeByDefault>
66 </activation>
Michael Lando9dd269d2017-02-20 01:04:22 +020067 <build>
68 <plugins>
69 <plugin>
70 <artifactId>maven-resources-plugin</artifactId>
71 <version>3.0.2</version>
72 <executions>
73 <execution>
74 <id>copy-resources-be</id>
Michael Lando9dd269d2017-02-20 01:04:22 +020075 <phase>validate</phase>
76 <goals>
77 <goal>copy-resources</goal>
78 </goals>
79 <configuration>
80 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
81 <resources>
82 <resource>
83 <directory>${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target</directory>
84 <includes>
Michael Landoed64b5e2017-06-09 03:19:04 +030085 <include>onboarding-be-${project.version}.war</include>
Michael Lando9dd269d2017-02-20 01:04:22 +020086 </includes>
87 </resource>
88 </resources>
89 </configuration>
90 </execution>
91 <execution>
92 <id>copy-resources-fe</id>
Grinberg Motic3bda482017-02-23 11:24:34 +020093 <phase>validate</phase>
94 <goals>
95 <goal>copy-resources</goal>
96 </goals>
97 <configuration>
98 <outputDirectory>${basedir}/sdc-frontend</outputDirectory>
99 <resources>
100 <resource>
101 <directory>${project.parent.basedir}/openecomp-ui/target</directory>
102 <includes>
103 <include>onboarding-fe-${project.version}.war</include>
104 </includes>
105 </resource>
106 </resources>
107 </configuration>
108 </execution>
Michael Lando9dd269d2017-02-20 01:04:22 +0200109 </executions>
110 </plugin>
111
112
113
114 <plugin>
115 <groupId>io.fabric8</groupId>
116 <artifactId>docker-maven-plugin</artifactId>
Michael Lando9dc57092017-02-20 23:46:47 +0200117 <version>0.19.1</version>
Michael Lando9dd269d2017-02-20 01:04:22 +0200118
119 <configuration>
120 <verbose>true</verbose>
121 <apiVersion>1.23</apiVersion>
122
123 <images>
124
125 <!-- Build backend image -->
126 <image>
ig61330f572ce2017-04-06 10:48:50 +0300127 <name>openecomp/sdc-backend</name>
Michael Lando9dd269d2017-02-20 01:04:22 +0200128 <alias>sdc-backend</alias>
129 <build>
130 <cleanup>try</cleanup>
Michael Lando9dc57092017-02-20 23:46:47 +0200131 <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
ig6133142d2e62017-04-02 17:14:00 +0300132 <tags>
133 <tag>${docker.tag}</tag>
ig61330f572ce2017-04-06 10:48:50 +0300134 <tag>${docker.latest.tag}</tag>
Michael Lando41c98602017-06-09 07:38:13 +0300135 <tag>1.1-STAGING-latest</tag>
ig6133142d2e62017-04-02 17:14:00 +0300136 </tags>
Michael Lando9dd269d2017-02-20 01:04:22 +0200137 </build>
138 </image>
139
140 <!-- Build frontend image -->
141 <image>
ig61330f572ce2017-04-06 10:48:50 +0300142 <name>openecomp/sdc-frontend</name>
Michael Lando9dd269d2017-02-20 01:04:22 +0200143 <alias>sdc-frontend</alias>
144 <build>
145 <cleanup>try</cleanup>
Michael Lando9dc57092017-02-20 23:46:47 +0200146 <dockerFileDir>${project.basedir}/sdc-frontend</dockerFileDir>
ig6133142d2e62017-04-02 17:14:00 +0300147 <tags>
148 <tag>${docker.tag}</tag>
ig61330f572ce2017-04-06 10:48:50 +0300149 <tag>${docker.latest.tag}</tag>
Michael Lando41c98602017-06-09 07:38:13 +0300150 <tag>1.1-STAGING-latest</tag>
ig6133142d2e62017-04-02 17:14:00 +0300151 </tags>
Michael Lando9dd269d2017-02-20 01:04:22 +0200152 </build>
153 </image>
154
155 <!-- Build elastic search image -->
Michael Lando36771962017-03-01 10:05:34 +0200156 <image>
ig61330f572ce2017-04-06 10:48:50 +0300157 <name>openecomp/sdc-elasticsearch</name>
Michael Lando9dd269d2017-02-20 01:04:22 +0200158 <alias>sdc-elasticsearch</alias>
159 <build>
160 <cleanup>try</cleanup>
Michael Lando9dc57092017-02-20 23:46:47 +0200161 <dockerFileDir>${project.basedir}/sdc-elasticsearch</dockerFileDir>
ig6133142d2e62017-04-02 17:14:00 +0300162 <tags>
163 <tag>${docker.tag}</tag>
ig61330f572ce2017-04-06 10:48:50 +0300164 <tag>${docker.latest.tag}</tag>
Michael Lando41c98602017-06-09 07:38:13 +0300165 <tag>1.1-STAGING-latest</tag>
ig6133142d2e62017-04-02 17:14:00 +0300166 </tags>
Michael Lando9dd269d2017-02-20 01:04:22 +0200167 </build>
Michael Lando36771962017-03-01 10:05:34 +0200168 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +0200169
170 <!-- Build kibana image -->
171 <image>
ig61330f572ce2017-04-06 10:48:50 +0300172 <name>openecomp/sdc-kibana</name>
Michael Lando9dd269d2017-02-20 01:04:22 +0200173 <alias>sdc-kibana</alias>
174 <build>
175 <cleanup>try</cleanup>
Michael Lando9dc57092017-02-20 23:46:47 +0200176 <dockerFileDir>${project.basedir}/sdc-kibana</dockerFileDir>
ig6133142d2e62017-04-02 17:14:00 +0300177 <tags>
178 <tag>${docker.tag}</tag>
ig61330f572ce2017-04-06 10:48:50 +0300179 <tag>${docker.latest.tag}</tag>
Michael Lando41c98602017-06-09 07:38:13 +0300180 <tag>1.1-STAGING-latest</tag>
ig6133142d2e62017-04-02 17:14:00 +0300181 </tags>
Michael Lando9dd269d2017-02-20 01:04:22 +0200182 </build>
183 </image>
184
David Greenberg3d35bb32017-02-20 19:00:11 +0200185 <!-- Build cassandra image -->
Michael Lando9dd269d2017-02-20 01:04:22 +0200186 <image>
ig61330f572ce2017-04-06 10:48:50 +0300187 <name>openecomp/sdc-cassandra</name>
Michael Lando9dd269d2017-02-20 01:04:22 +0200188 <alias>sdc-cassandra</alias>
189 <build>
190 <cleanup>try</cleanup>
Michael Lando9dc57092017-02-20 23:46:47 +0200191 <dockerFileDir>${project.basedir}/sdc-cassandra</dockerFileDir>
ig6133142d2e62017-04-02 17:14:00 +0300192 <tags>
193 <tag>${docker.tag}</tag>
ig61330f572ce2017-04-06 10:48:50 +0300194 <tag>${docker.latest.tag}</tag>
Michael Lando41c98602017-06-09 07:38:13 +0300195 <tag>1.1-STAGING-latest</tag>
ig6133142d2e62017-04-02 17:14:00 +0300196 </tags>
Michael Lando9dd269d2017-02-20 01:04:22 +0200197 </build>
198 </image>
Michael Landoed64b5e2017-06-09 03:19:04 +0300199
Grinberg Motic3bda482017-02-23 11:24:34 +0200200 <!-- Build sanity image -->
201 <image>
ig61330f572ce2017-04-06 10:48:50 +0300202 <name>openecomp/sdc-sanity</name>
Grinberg Motic3bda482017-02-23 11:24:34 +0200203 <alias>sdc-sanity</alias>
204 <build>
205 <cleanup>try</cleanup>
206 <dockerFileDir>${project.basedir}/sdc-sanity</dockerFileDir>
ig6133142d2e62017-04-02 17:14:00 +0300207 <tags>
208 <tag>${docker.tag}</tag>
ig61330f572ce2017-04-06 10:48:50 +0300209 <tag>${docker.latest.tag}</tag>
Michael Lando41c98602017-06-09 07:38:13 +0300210 <tag>1.1-STAGING-latest</tag>
ig6133142d2e62017-04-02 17:14:00 +0300211 </tags>
Grinberg Motic3bda482017-02-23 11:24:34 +0200212 </build>
213 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +0200214
215 </images>
216 </configuration>
217 <executions>
218 <execution>
Michael Landoed64b5e2017-06-09 03:19:04 +0300219 <id>clean-images</id>
220 <phase>pre-clean</phase>
221 <goals>
222 <goal>remove</goal>
223 </goals>
224 <configuration>
225 <removeAll>true</removeAll>
Michael Landob3d48982017-06-11 14:22:02 +0300226 <image>openecomp/sdc-backend,openecomp/sdc-frontend,openecomp/sdc-elasticsearch,openecomp/sdc-kibana,openecomp/sdc-sanity</image>
Michael Landoed64b5e2017-06-09 03:19:04 +0300227 </configuration>
Michael Lando9dd269d2017-02-20 01:04:22 +0200228 </execution>
229
230 <execution>
231 <id>generate-images</id>
232 <phase>package</phase>
233 <goals>
234 <goal>build</goal>
235 </goals>
236 </execution>
237
238 <execution>
Michael Landoed64b5e2017-06-09 03:19:04 +0300239 <id>push-images</id>
240 <phase>deploy</phase>
241 <goals>
242 <goal>build</goal>
ml636ra90804d2017-02-22 15:50:20 +0200243 <goal>push</goal>
Michael Landoed64b5e2017-06-09 03:19:04 +0300244 </goals>
245 <configuration>
Michael Landob3d48982017-06-11 14:22:02 +0300246 <image>openecomp/sdc-backend,openecomp/sdc-frontend,openecomp/sdc-elasticsearch,openecomp/sdc-kibana,openecomp/sdc-sanity</image>
Michael Landoed64b5e2017-06-09 03:19:04 +0300247 </configuration>
Michael Lando9dd269d2017-02-20 01:04:22 +0200248 </execution>
249 </executions>
Michael Lando9dd269d2017-02-20 01:04:22 +0200250 </plugin>
Michael Lando9dd269d2017-02-20 01:04:22 +0200251 </plugins>
252 </build>
253 </profile>
254 </profiles>
Michael Lando451a3402017-02-19 10:28:42 +0200255</project>