blob: ac28c26f1f8b41a294d08f929442c1277bacd848 [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"
Yuli Shlosberg9dde9262017-09-12 14:11:48 +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
Yuli Shlosberg9dde9262017-09-12 14:11:48 +03004 <modelVersion>4.0.0</modelVersion>
Michael Lando451a3402017-02-19 10:28:42 +02005
Yuli Shlosberg9dde9262017-09-12 14:11:48 +03006 <artifactId>sdc-os-chef</artifactId>
Tal Gitelman0c3b1892017-10-04 16:56:23 +03007 <packaging>pom</packaging>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +02008
Michael Lando451a3402017-02-19 10:28:42 +02009
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030010 <parent>
11 <groupId>org.openecomp.sdc</groupId>
12 <artifactId>sdc-main</artifactId>
Michael Landod8a0dea2018-06-02 19:23:27 +030013 <version>1.3.0-SNAPSHOT</version>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030014 </parent>
Michael Lando451a3402017-02-19 10:28:42 +020015
Michael Landoed64b5e2017-06-09 03:19:04 +030016
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030017 <build>
18 <plugins>
19 <plugin>
20 <artifactId>maven-clean-plugin</artifactId>
21 <version>3.0.0</version>
22 <executions>
23 <execution>
24 <id>clean.tosca.chef.os.folder</id>
25 <phase>clean</phase>
26 <goals>
27 <goal>clean</goal>
28 </goals>
29 <configuration>
30 <filesets>
Yuli Shlosberg0566f582017-11-26 19:05:23 +020031 <fileset>
32 <directory>${project.basedir}/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/attributes/</directory>
33 <followSymlinks>false</followSymlinks>
34 <includes>
35 <include>**/default.rb</include>
36 </includes>
37 </fileset>
Tal Gitelman15c2ce72017-10-18 19:47:40 +030038 <!-- Sanity jar -->
39 <fileset>
40 <directory>${project.basedir}/sdc-sanity</directory>
41 <followSymlinks>false</followSymlinks>
42 <includes>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +020043 <include>*.jar</include>
44 </includes>
Tal Gitelman15c2ce72017-10-18 19:47:40 +030045 </fileset>
46 <!-- Sanity test suites -->
47 <fileset>
48 <directory>${project.basedir}/sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/testSuites</directory>
49 <followSymlinks>false</followSymlinks>
50 </fileset>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030051 </filesets>
52 </configuration>
53 </execution>
54 </executions>
55 </plugin>
56 <plugin>
57 <groupId>ru.yaal.maven</groupId>
58 <artifactId>write-text-files-maven-plugin</artifactId>
59 <version>1.1</version>
60 <configuration>
61 <charset>UTF-8</charset>
62 <files>
63 <file>
64 <path>
65 ${project.basedir}\sdc-cassandra\chef-repo\cookbooks\cassandra-actions\attributes\default.rb
66 </path>
67 <lines>
Yuli Shlosberg0566f582017-11-26 19:05:23 +020068 <line>normal['version'] ="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"</line>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030069 </lines>
70 </file>
71 </files>
72 </configuration>
73 <executions>
74 <execution>
75 <id>write-text-files</id>
76 <phase>prepare-package</phase>
77 <goals>
78 <goal>write-text-files</goal>
79 </goals>
80 </execution>
81 </executions>
82 </plugin>
83 </plugins>
84 </build>
Michael Lando9dd269d2017-02-20 01:04:22 +020085
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030086 <profiles>
Avi Zivc175a0d2018-03-15 13:21:44 +020087 <!--<profile>-->
88 <!--<id>docker-staging</id>-->
89 <!--<properties>-->
90 <!--<docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>-->
91 <!--<docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>-->
92 <!--</properties>-->
93 <!--</profile>-->
Michael Landoed64b5e2017-06-09 03:19:04 +030094
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030095 <profile>
96 <id>docker</id>
97 <activation>
98 <activeByDefault>false</activeByDefault>
99 </activation>
100 <build>
101 <plugins>
102 <plugin>
103 <artifactId>maven-resources-plugin</artifactId>
104 <version>3.0.2</version>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200105
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300106 </plugin>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200107
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300108 <plugin>
109 <groupId>io.fabric8</groupId>
110 <artifactId>docker-maven-plugin</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200111 <version>${fabric8.version}</version>
Michael Lando9dd269d2017-02-20 01:04:22 +0200112
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300113 <configuration>
114 <verbose>true</verbose>
115 <apiVersion>1.23</apiVersion>
Yuli Shlosberg44144952017-11-09 13:34:49 +0200116 <registry>nexus3.onap.org:10001</registry>
Idan Amit7cb00e62017-10-26 10:02:20 +0300117 <authConfig>
Idan Amitbc51da22017-10-26 16:56:53 +0300118 <pull>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200119 <username>docker</username>
120 <password>docker</password>
121 </pull>
122 </authConfig>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300123 <images>
Michael Lando9dd269d2017-02-20 01:04:22 +0200124
Tal Gitelman38211c82018-01-24 17:59:53 +0200125 <!-- Build init-elastic search image -->
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200126 <image>
Tal Gitelman38211c82018-01-24 17:59:53 +0200127 <name>onap/sdc-init-elasticsearch</name>
128 <alias>sdc-init-elasticsearch</alias>
129 <build>
130 <cleanup>try</cleanup>
131 <dockerFileDir>${project.basedir}/sdc-init-elasticsearch</dockerFileDir>
132 <tags>
133 <tag>${docker.tag}</tag>
Tal Gitelman38211c82018-01-24 17:59:53 +0200134 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
135 </tags>
136 </build>
137 </image>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200138
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300139 <!-- Build elastic search image -->
140 <image>
Idan Amit55dda1a2017-12-06 17:21:38 +0200141 <name>onap/sdc-elasticsearch</name>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300142 <alias>sdc-elasticsearch</alias>
143 <build>
144 <cleanup>try</cleanup>
145 <dockerFileDir>${project.basedir}/sdc-elasticsearch</dockerFileDir>
146 <tags>
147 <tag>${docker.tag}</tag>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300148 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
149 </tags>
150 </build>
151 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +0200152
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300153 <!-- Build kibana image -->
154 <image>
Idan Amit55dda1a2017-12-06 17:21:38 +0200155 <name>onap/sdc-kibana</name>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300156 <alias>sdc-kibana</alias>
157 <build>
158 <cleanup>try</cleanup>
159 <dockerFileDir>${project.basedir}/sdc-kibana</dockerFileDir>
160 <tags>
161 <tag>${docker.tag}</tag>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300162 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
163 </tags>
164 </build>
165 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +0200166
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300167 <!-- Build cassandra image -->
168 <image>
Idan Amit55dda1a2017-12-06 17:21:38 +0200169 <name>onap/sdc-cassandra</name>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300170 <alias>sdc-cassandra</alias>
171 <build>
172 <cleanup>try</cleanup>
173 <dockerFileDir>${project.basedir}/sdc-cassandra</dockerFileDir>
174 <tags>
175 <tag>${docker.tag}</tag>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300176 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
177 </tags>
178 </build>
179 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +0200180
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200181
Michael Landoed64b5e2017-06-09 03:19:04 +0300182
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300183 </images>
184 </configuration>
185 <executions>
186 <execution>
Michael Landoed64b5e2017-06-09 03:19:04 +0300187 <id>clean-images</id>
188 <phase>pre-clean</phase>
189 <goals>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300190 <goal>remove</goal>
Michael Landoed64b5e2017-06-09 03:19:04 +0300191 </goals>
192 <configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300193 <removeAll>true</removeAll>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200194 <image>onap/sdc-init-elasticsearch,onap/sdc-elasticsearch,onap/sdc-kibana,onap/sdc-cassandra</image>
Michael Landoed64b5e2017-06-09 03:19:04 +0300195 </configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300196 </execution>
Michael Lando9dd269d2017-02-20 01:04:22 +0200197
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300198 <execution>
199 <id>generate-images</id>
200 <phase>package</phase>
201 <goals>
202 <goal>build</goal>
203 </goals>
204 </execution>
Michael Lando9dd269d2017-02-20 01:04:22 +0200205
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300206 <execution>
Michael Landoed64b5e2017-06-09 03:19:04 +0300207 <id>push-images</id>
208 <phase>deploy</phase>
209 <goals>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300210 <goal>push</goal>
Michael Landoed64b5e2017-06-09 03:19:04 +0300211 </goals>
212 <configuration>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200213 <image>onap/sdc-init-elasticsearch,onap/sdc-elasticsearch,onap/sdc-kibana,onap/sdc-cassandra</image>
Michael Landoed64b5e2017-06-09 03:19:04 +0300214 </configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300215 </execution>
216 </executions>
217 </plugin>
218 </plugins>
219 </build>
220 </profile>
221 </profiles>
Michael Lando451a3402017-02-19 10:28:42 +0200222</project>