blob: 6dc554451ab8644df1275d8fa9bac8736b62dbff [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>
Michael Landodc856bb2018-08-13 13:27:52 +030020 <groupId>org.apache.maven.plugins</groupId>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030021 <artifactId>maven-clean-plugin</artifactId>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030022 <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>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030059 <configuration>
60 <charset>UTF-8</charset>
61 <files>
62 <file>
63 <path>
64 ${project.basedir}\sdc-cassandra\chef-repo\cookbooks\cassandra-actions\attributes\default.rb
65 </path>
66 <lines>
Yuli Shlosberg0566f582017-11-26 19:05:23 +020067 <line>normal['version'] ="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"</line>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030068 </lines>
69 </file>
70 </files>
71 </configuration>
72 <executions>
73 <execution>
74 <id>write-text-files</id>
75 <phase>prepare-package</phase>
76 <goals>
77 <goal>write-text-files</goal>
78 </goals>
79 </execution>
80 </executions>
81 </plugin>
dekstroza37843cb2018-05-18 14:42:24 +010082 <plugin>
83 <groupId>com.github.sylvainlaurent.maven</groupId>
84 <artifactId>yaml-json-validator-maven-plugin</artifactId>
85 <executions>
86 <execution>
87 <id>validate</id>
88 <phase>validate</phase>
89 <goals>
90 <goal>validate</goal>
91 </goals>
92 <configuration>
93 <validationSets>
94 <validationSet>
95 <includes>
96 <include>**/*.y*ml</include>
97 </includes>
98 </validationSet>
99 <validationSet>
100 <includes>
101 <include>**/*.json</include>
102 </includes>
103 </validationSet>
104 </validationSets>
105 </configuration>
106 </execution>
107 </executions>
108 </plugin>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300109 </plugins>
110 </build>
Michael Lando9dd269d2017-02-20 01:04:22 +0200111
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300112 <profiles>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300113 <profile>
114 <id>docker</id>
115 <activation>
116 <activeByDefault>false</activeByDefault>
117 </activation>
118 <build>
119 <plugins>
120 <plugin>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300121 <groupId>io.fabric8</groupId>
122 <artifactId>docker-maven-plugin</artifactId>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300123 <configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300124 <apiVersion>1.23</apiVersion>
Yuli Shlosberg44144952017-11-09 13:34:49 +0200125 <registry>nexus3.onap.org:10001</registry>
Idan Amit7cb00e62017-10-26 10:02:20 +0300126 <authConfig>
Idan Amitbc51da22017-10-26 16:56:53 +0300127 <pull>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200128 <username>docker</username>
129 <password>docker</password>
130 </pull>
131 </authConfig>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300132 <images>
Michael Lando9dd269d2017-02-20 01:04:22 +0200133
Tal Gitelman38211c82018-01-24 17:59:53 +0200134 <!-- Build init-elastic search image -->
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200135 <image>
Tal Gitelman38211c82018-01-24 17:59:53 +0200136 <name>onap/sdc-init-elasticsearch</name>
137 <alias>sdc-init-elasticsearch</alias>
138 <build>
139 <cleanup>try</cleanup>
140 <dockerFileDir>${project.basedir}/sdc-init-elasticsearch</dockerFileDir>
141 <tags>
142 <tag>${docker.tag}</tag>
Tal Gitelman38211c82018-01-24 17:59:53 +0200143 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
144 </tags>
145 </build>
146 </image>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200147
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300148 <!-- Build elastic search image -->
149 <image>
Idan Amit55dda1a2017-12-06 17:21:38 +0200150 <name>onap/sdc-elasticsearch</name>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300151 <alias>sdc-elasticsearch</alias>
152 <build>
153 <cleanup>try</cleanup>
154 <dockerFileDir>${project.basedir}/sdc-elasticsearch</dockerFileDir>
155 <tags>
156 <tag>${docker.tag}</tag>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300157 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
158 </tags>
159 </build>
160 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +0200161
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300162 <!-- Build kibana image -->
163 <image>
Idan Amit55dda1a2017-12-06 17:21:38 +0200164 <name>onap/sdc-kibana</name>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300165 <alias>sdc-kibana</alias>
166 <build>
167 <cleanup>try</cleanup>
168 <dockerFileDir>${project.basedir}/sdc-kibana</dockerFileDir>
169 <tags>
170 <tag>${docker.tag}</tag>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300171 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
172 </tags>
173 </build>
174 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +0200175
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300176 <!-- Build cassandra image -->
177 <image>
Idan Amit55dda1a2017-12-06 17:21:38 +0200178 <name>onap/sdc-cassandra</name>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300179 <alias>sdc-cassandra</alias>
180 <build>
181 <cleanup>try</cleanup>
182 <dockerFileDir>${project.basedir}/sdc-cassandra</dockerFileDir>
183 <tags>
184 <tag>${docker.tag}</tag>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300185 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
186 </tags>
187 </build>
188 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +0200189
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200190
Michael Landoed64b5e2017-06-09 03:19:04 +0300191
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300192 </images>
193 </configuration>
194 <executions>
195 <execution>
Michael Landoed64b5e2017-06-09 03:19:04 +0300196 <id>clean-images</id>
197 <phase>pre-clean</phase>
198 <goals>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300199 <goal>remove</goal>
Michael Landoed64b5e2017-06-09 03:19:04 +0300200 </goals>
201 <configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300202 <removeAll>true</removeAll>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200203 <image>onap/sdc-init-elasticsearch,onap/sdc-elasticsearch,onap/sdc-kibana,onap/sdc-cassandra</image>
Michael Landoed64b5e2017-06-09 03:19:04 +0300204 </configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300205 </execution>
Michael Lando9dd269d2017-02-20 01:04:22 +0200206
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300207 <execution>
208 <id>generate-images</id>
209 <phase>package</phase>
210 <goals>
211 <goal>build</goal>
212 </goals>
213 </execution>
Michael Lando9dd269d2017-02-20 01:04:22 +0200214
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300215 <execution>
Michael Landoed64b5e2017-06-09 03:19:04 +0300216 <id>push-images</id>
217 <phase>deploy</phase>
218 <goals>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300219 <goal>push</goal>
Michael Landoed64b5e2017-06-09 03:19:04 +0300220 </goals>
221 <configuration>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200222 <image>onap/sdc-init-elasticsearch,onap/sdc-elasticsearch,onap/sdc-kibana,onap/sdc-cassandra</image>
Michael Landoed64b5e2017-06-09 03:19:04 +0300223 </configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300224 </execution>
225 </executions>
226 </plugin>
227 </plugins>
228 </build>
229 </profile>
230 </profiles>
Michael Lando451a3402017-02-19 10:28:42 +0200231</project>