Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 2 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 3 | |
| 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 Lando | ebd7c8f | 2017-03-15 20:38:00 +0200 | [diff] [blame] | 11 | <version>1.1.0-SNAPSHOT</version> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 12 | </parent> |
| 13 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 14 | |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 15 | <properties> |
ig6133 | 538b826 | 2017-04-06 12:50:11 +0300 | [diff] [blame] | 16 | <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag> |
| 17 | <docker.latest.tag>${project.version}-latest</docker.latest.tag> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 18 | </properties> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 19 | |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 20 | <build> |
| 21 | <plugins> |
| 22 | <plugin> |
Michael Lando | 2d3e1cb | 2017-07-25 22:53:44 +0300 | [diff] [blame] | 23 | <artifactId>maven-clean-plugin</artifactId> |
| 24 | <version>3.0.0</version> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 25 | <executions> |
| 26 | <execution> |
Michael Lando | 2d3e1cb | 2017-07-25 22:53:44 +0300 | [diff] [blame] | 27 | <id>clean.tosca.chef.os.folder</id> |
| 28 | <phase>clean</phase> |
| 29 | <goals> |
| 30 | <goal>clean</goal> |
| 31 | </goals> |
| 32 | <configuration> |
| 33 | <filesets> |
| 34 | <fileset> |
| 35 | <directory>${project.basedir}\sdc-cassandra\chef-repo\cookbooks\cassandra-actions\attributes\</directory> |
| 36 | <followSymlinks>false</followSymlinks> |
| 37 | <includes> |
| 38 | <include>**/default.rb</include> |
| 39 | </includes> |
| 40 | </fileset> |
| 41 | </filesets> |
| 42 | </configuration> |
| 43 | </execution> |
| 44 | </executions> |
| 45 | </plugin> |
| 46 | <plugin> |
| 47 | <groupId>ru.yaal.maven</groupId> |
| 48 | <artifactId>write-text-files-maven-plugin</artifactId> |
| 49 | <version>1.1</version> |
| 50 | <configuration> |
| 51 | <charset>UTF-8</charset> |
| 52 | <files> |
| 53 | <file> |
| 54 | <path>${project.basedir}\sdc-cassandra\chef-repo\cookbooks\cassandra-actions\attributes\default.rb</path> |
| 55 | <lines> |
| 56 | <line>normal['version'] = "${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"</line> |
| 57 | </lines> |
| 58 | </file> |
| 59 | </files> |
| 60 | </configuration> |
| 61 | <executions> |
| 62 | <execution> |
| 63 | <id>write-text-files</id> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 64 | <phase>prepare-package</phase> |
| 65 | <goals> |
Michael Lando | 2d3e1cb | 2017-07-25 22:53:44 +0300 | [diff] [blame] | 66 | <goal>write-text-files</goal> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 67 | </goals> |
| 68 | </execution> |
| 69 | </executions> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 70 | </plugin> |
| 71 | </plugins> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 72 | </build> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 73 | |
| 74 | <profiles> |
| 75 | <profile> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 76 | <id>docker-staging</id> |
| 77 | <properties> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 78 | <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag> |
| 79 | <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 80 | </properties> |
| 81 | </profile> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 82 | |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 83 | <profile> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 84 | <id>docker</id> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 85 | <activation> |
| 86 | <activeByDefault>false</activeByDefault> |
| 87 | </activation> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 88 | <build> |
| 89 | <plugins> |
| 90 | <plugin> |
| 91 | <artifactId>maven-resources-plugin</artifactId> |
| 92 | <version>3.0.2</version> |
| 93 | <executions> |
| 94 | <execution> |
Tal Gitelman | 68ccc45 | 2017-06-22 18:23:07 +0300 | [diff] [blame] | 95 | <id>copy-resources-apidocs</id> |
| 96 | <phase>validate</phase> |
| 97 | <goals> |
| 98 | <goal>copy-resources</goal> |
| 99 | </goals> |
| 100 | <configuration> |
| 101 | <outputDirectory>${basedir}/sdc-backend</outputDirectory> |
| 102 | <resources> |
| 103 | <resource> |
| 104 | <directory>${project.parent.basedir}/openecomp-be/tools/swagger-ui/api-docs</directory> |
| 105 | <includes> |
| 106 | <include>api-docs.war</include> |
| 107 | </includes> |
| 108 | </resource> |
| 109 | </resources> |
| 110 | </configuration> |
| 111 | </execution> |
| 112 | <execution> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 113 | <id>copy-resources-be</id> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 114 | <phase>validate</phase> |
| 115 | <goals> |
| 116 | <goal>copy-resources</goal> |
| 117 | </goals> |
| 118 | <configuration> |
| 119 | <outputDirectory>${basedir}/sdc-backend</outputDirectory> |
| 120 | <resources> |
| 121 | <resource> |
| 122 | <directory>${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target</directory> |
| 123 | <includes> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 124 | <include>onboarding-be-${project.version}.war</include> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 125 | </includes> |
| 126 | </resource> |
| 127 | </resources> |
| 128 | </configuration> |
| 129 | </execution> |
| 130 | <execution> |
| 131 | <id>copy-resources-fe</id> |
Grinberg Moti | c3bda48 | 2017-02-23 11:24:34 +0200 | [diff] [blame] | 132 | <phase>validate</phase> |
| 133 | <goals> |
| 134 | <goal>copy-resources</goal> |
| 135 | </goals> |
| 136 | <configuration> |
| 137 | <outputDirectory>${basedir}/sdc-frontend</outputDirectory> |
| 138 | <resources> |
| 139 | <resource> |
| 140 | <directory>${project.parent.basedir}/openecomp-ui/target</directory> |
| 141 | <includes> |
| 142 | <include>onboarding-fe-${project.version}.war</include> |
| 143 | </includes> |
| 144 | </resource> |
| 145 | </resources> |
| 146 | </configuration> |
| 147 | </execution> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 148 | </executions> |
| 149 | </plugin> |
| 150 | |
| 151 | |
| 152 | |
| 153 | <plugin> |
| 154 | <groupId>io.fabric8</groupId> |
| 155 | <artifactId>docker-maven-plugin</artifactId> |
Michael Lando | 9dc5709 | 2017-02-20 23:46:47 +0200 | [diff] [blame] | 156 | <version>0.19.1</version> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 157 | |
| 158 | <configuration> |
| 159 | <verbose>true</verbose> |
| 160 | <apiVersion>1.23</apiVersion> |
| 161 | |
| 162 | <images> |
| 163 | |
| 164 | <!-- Build backend image --> |
| 165 | <image> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 166 | <name>openecomp/sdc-backend</name> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 167 | <alias>sdc-backend</alias> |
| 168 | <build> |
| 169 | <cleanup>try</cleanup> |
Michael Lando | 9dc5709 | 2017-02-20 23:46:47 +0200 | [diff] [blame] | 170 | <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 171 | <tags> |
| 172 | <tag>${docker.tag}</tag> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 173 | <tag>${docker.latest.tag}</tag> |
Michael Lando | 41c9860 | 2017-06-09 07:38:13 +0300 | [diff] [blame] | 174 | <tag>1.1-STAGING-latest</tag> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 175 | </tags> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 176 | </build> |
| 177 | </image> |
| 178 | |
| 179 | <!-- Build frontend image --> |
| 180 | <image> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 181 | <name>openecomp/sdc-frontend</name> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 182 | <alias>sdc-frontend</alias> |
| 183 | <build> |
| 184 | <cleanup>try</cleanup> |
Michael Lando | 9dc5709 | 2017-02-20 23:46:47 +0200 | [diff] [blame] | 185 | <dockerFileDir>${project.basedir}/sdc-frontend</dockerFileDir> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 186 | <tags> |
| 187 | <tag>${docker.tag}</tag> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 188 | <tag>${docker.latest.tag}</tag> |
Michael Lando | 41c9860 | 2017-06-09 07:38:13 +0300 | [diff] [blame] | 189 | <tag>1.1-STAGING-latest</tag> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 190 | </tags> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 191 | </build> |
| 192 | </image> |
| 193 | |
| 194 | <!-- Build elastic search image --> |
Michael Lando | 3677196 | 2017-03-01 10:05:34 +0200 | [diff] [blame] | 195 | <image> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 196 | <name>openecomp/sdc-elasticsearch</name> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 197 | <alias>sdc-elasticsearch</alias> |
| 198 | <build> |
| 199 | <cleanup>try</cleanup> |
Michael Lando | 9dc5709 | 2017-02-20 23:46:47 +0200 | [diff] [blame] | 200 | <dockerFileDir>${project.basedir}/sdc-elasticsearch</dockerFileDir> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 201 | <tags> |
| 202 | <tag>${docker.tag}</tag> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 203 | <tag>${docker.latest.tag}</tag> |
Michael Lando | 41c9860 | 2017-06-09 07:38:13 +0300 | [diff] [blame] | 204 | <tag>1.1-STAGING-latest</tag> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 205 | </tags> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 206 | </build> |
Michael Lando | 3677196 | 2017-03-01 10:05:34 +0200 | [diff] [blame] | 207 | </image> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 208 | |
| 209 | <!-- Build kibana image --> |
| 210 | <image> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 211 | <name>openecomp/sdc-kibana</name> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 212 | <alias>sdc-kibana</alias> |
| 213 | <build> |
| 214 | <cleanup>try</cleanup> |
Michael Lando | 9dc5709 | 2017-02-20 23:46:47 +0200 | [diff] [blame] | 215 | <dockerFileDir>${project.basedir}/sdc-kibana</dockerFileDir> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 216 | <tags> |
| 217 | <tag>${docker.tag}</tag> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 218 | <tag>${docker.latest.tag}</tag> |
Michael Lando | 41c9860 | 2017-06-09 07:38:13 +0300 | [diff] [blame] | 219 | <tag>1.1-STAGING-latest</tag> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 220 | </tags> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 221 | </build> |
| 222 | </image> |
| 223 | |
David Greenberg | 3d35bb3 | 2017-02-20 19:00:11 +0200 | [diff] [blame] | 224 | <!-- Build cassandra image --> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 225 | <image> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 226 | <name>openecomp/sdc-cassandra</name> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 227 | <alias>sdc-cassandra</alias> |
| 228 | <build> |
| 229 | <cleanup>try</cleanup> |
Michael Lando | 9dc5709 | 2017-02-20 23:46:47 +0200 | [diff] [blame] | 230 | <dockerFileDir>${project.basedir}/sdc-cassandra</dockerFileDir> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 231 | <tags> |
| 232 | <tag>${docker.tag}</tag> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 233 | <tag>${docker.latest.tag}</tag> |
Michael Lando | 41c9860 | 2017-06-09 07:38:13 +0300 | [diff] [blame] | 234 | <tag>1.1-STAGING-latest</tag> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 235 | </tags> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 236 | </build> |
| 237 | </image> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 238 | |
Grinberg Moti | c3bda48 | 2017-02-23 11:24:34 +0200 | [diff] [blame] | 239 | <!-- Build sanity image --> |
Tal Gitelman | 6917638 | 2017-07-25 15:53:28 +0300 | [diff] [blame] | 240 | <!-- <image> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 241 | <name>openecomp/sdc-sanity</name> |
Grinberg Moti | c3bda48 | 2017-02-23 11:24:34 +0200 | [diff] [blame] | 242 | <alias>sdc-sanity</alias> |
| 243 | <build> |
| 244 | <cleanup>try</cleanup> |
| 245 | <dockerFileDir>${project.basedir}/sdc-sanity</dockerFileDir> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 246 | <tags> |
| 247 | <tag>${docker.tag}</tag> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 248 | <tag>${docker.latest.tag}</tag> |
Michael Lando | 41c9860 | 2017-06-09 07:38:13 +0300 | [diff] [blame] | 249 | <tag>1.1-STAGING-latest</tag> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 250 | </tags> |
Grinberg Moti | c3bda48 | 2017-02-23 11:24:34 +0200 | [diff] [blame] | 251 | </build> |
Tal Gitelman | 6917638 | 2017-07-25 15:53:28 +0300 | [diff] [blame] | 252 | </image> --> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 253 | |
| 254 | </images> |
| 255 | </configuration> |
| 256 | <executions> |
| 257 | <execution> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 258 | <id>clean-images</id> |
| 259 | <phase>pre-clean</phase> |
| 260 | <goals> |
| 261 | <goal>remove</goal> |
| 262 | </goals> |
| 263 | <configuration> |
| 264 | <removeAll>true</removeAll> |
Tal Gitelman | 6917638 | 2017-07-25 15:53:28 +0300 | [diff] [blame] | 265 | <image>openecomp/sdc-backend,openecomp/sdc-frontend,openecomp/sdc-elasticsearch,openecomp/sdc-kibana<!-- ,openecomp/sdc-sanity --></image> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 266 | </configuration> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 267 | </execution> |
| 268 | |
| 269 | <execution> |
| 270 | <id>generate-images</id> |
| 271 | <phase>package</phase> |
| 272 | <goals> |
| 273 | <goal>build</goal> |
| 274 | </goals> |
| 275 | </execution> |
| 276 | |
| 277 | <execution> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 278 | <id>push-images</id> |
| 279 | <phase>deploy</phase> |
| 280 | <goals> |
| 281 | <goal>build</goal> |
ml636r | a90804d | 2017-02-22 15:50:20 +0200 | [diff] [blame] | 282 | <goal>push</goal> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 283 | </goals> |
| 284 | <configuration> |
Tal Gitelman | 6917638 | 2017-07-25 15:53:28 +0300 | [diff] [blame] | 285 | <image>openecomp/sdc-backend,openecomp/sdc-frontend,openecomp/sdc-elasticsearch,openecomp/sdc-kibana<!-- ,openecomp/sdc-sanity --></image> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 286 | </configuration> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 287 | </execution> |
| 288 | </executions> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 289 | </plugin> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 290 | </plugins> |
| 291 | </build> |
| 292 | </profile> |
| 293 | </profiles> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 294 | </project> |