blob: a5d69f1697b914ee0b220a480e121aa26763087e [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>
82 </plugins>
83 </build>
Michael Lando9dd269d2017-02-20 01:04:22 +020084
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030085 <profiles>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030086 <profile>
87 <id>docker</id>
88 <activation>
89 <activeByDefault>false</activeByDefault>
90 </activation>
91 <build>
92 <plugins>
93 <plugin>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030094 <groupId>io.fabric8</groupId>
95 <artifactId>docker-maven-plugin</artifactId>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030096 <configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030097 <apiVersion>1.23</apiVersion>
Yuli Shlosberg44144952017-11-09 13:34:49 +020098 <registry>nexus3.onap.org:10001</registry>
Idan Amit7cb00e62017-10-26 10:02:20 +030099 <authConfig>
Idan Amitbc51da22017-10-26 16:56:53 +0300100 <pull>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200101 <username>docker</username>
102 <password>docker</password>
103 </pull>
104 </authConfig>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300105 <images>
Michael Lando9dd269d2017-02-20 01:04:22 +0200106
Tal Gitelman38211c82018-01-24 17:59:53 +0200107 <!-- Build init-elastic search image -->
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200108 <image>
Tal Gitelman38211c82018-01-24 17:59:53 +0200109 <name>onap/sdc-init-elasticsearch</name>
110 <alias>sdc-init-elasticsearch</alias>
111 <build>
112 <cleanup>try</cleanup>
113 <dockerFileDir>${project.basedir}/sdc-init-elasticsearch</dockerFileDir>
114 <tags>
115 <tag>${docker.tag}</tag>
Tal Gitelman38211c82018-01-24 17:59:53 +0200116 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
117 </tags>
118 </build>
119 </image>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200120
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300121 <!-- Build elastic search image -->
122 <image>
Idan Amit55dda1a2017-12-06 17:21:38 +0200123 <name>onap/sdc-elasticsearch</name>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300124 <alias>sdc-elasticsearch</alias>
125 <build>
126 <cleanup>try</cleanup>
127 <dockerFileDir>${project.basedir}/sdc-elasticsearch</dockerFileDir>
128 <tags>
129 <tag>${docker.tag}</tag>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300130 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
131 </tags>
132 </build>
133 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +0200134
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300135 <!-- Build kibana image -->
136 <image>
Idan Amit55dda1a2017-12-06 17:21:38 +0200137 <name>onap/sdc-kibana</name>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300138 <alias>sdc-kibana</alias>
139 <build>
140 <cleanup>try</cleanup>
141 <dockerFileDir>${project.basedir}/sdc-kibana</dockerFileDir>
142 <tags>
143 <tag>${docker.tag}</tag>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300144 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
145 </tags>
146 </build>
147 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +0200148
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300149 <!-- Build cassandra image -->
150 <image>
Idan Amit55dda1a2017-12-06 17:21:38 +0200151 <name>onap/sdc-cassandra</name>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300152 <alias>sdc-cassandra</alias>
153 <build>
154 <cleanup>try</cleanup>
155 <dockerFileDir>${project.basedir}/sdc-cassandra</dockerFileDir>
156 <tags>
157 <tag>${docker.tag}</tag>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300158 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
159 </tags>
160 </build>
161 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +0200162
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200163
Michael Landoed64b5e2017-06-09 03:19:04 +0300164
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300165 </images>
166 </configuration>
167 <executions>
168 <execution>
Michael Landoed64b5e2017-06-09 03:19:04 +0300169 <id>clean-images</id>
170 <phase>pre-clean</phase>
171 <goals>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300172 <goal>remove</goal>
Michael Landoed64b5e2017-06-09 03:19:04 +0300173 </goals>
174 <configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300175 <removeAll>true</removeAll>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200176 <image>onap/sdc-init-elasticsearch,onap/sdc-elasticsearch,onap/sdc-kibana,onap/sdc-cassandra</image>
Michael Landoed64b5e2017-06-09 03:19:04 +0300177 </configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300178 </execution>
Michael Lando9dd269d2017-02-20 01:04:22 +0200179
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300180 <execution>
181 <id>generate-images</id>
182 <phase>package</phase>
183 <goals>
184 <goal>build</goal>
185 </goals>
186 </execution>
Michael Lando9dd269d2017-02-20 01:04:22 +0200187
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300188 <execution>
Michael Landoed64b5e2017-06-09 03:19:04 +0300189 <id>push-images</id>
190 <phase>deploy</phase>
191 <goals>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300192 <goal>push</goal>
Michael Landoed64b5e2017-06-09 03:19:04 +0300193 </goals>
194 <configuration>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200195 <image>onap/sdc-init-elasticsearch,onap/sdc-elasticsearch,onap/sdc-kibana,onap/sdc-cassandra</image>
Michael Landoed64b5e2017-06-09 03:19:04 +0300196 </configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300197 </execution>
198 </executions>
199 </plugin>
200 </plugins>
201 </build>
202 </profile>
203 </profiles>
Michael Lando451a3402017-02-19 10:28:42 +0200204</project>