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> |
| 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 Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 51 | </build> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 52 | |
| 53 | <profiles> |
| 54 | <profile> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 55 | <id>docker-staging</id> |
| 56 | <properties> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 57 | <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag> |
| 58 | <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 59 | </properties> |
| 60 | </profile> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 61 | |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 62 | <profile> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 63 | <id>docker</id> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 64 | <activation> |
| 65 | <activeByDefault>false</activeByDefault> |
| 66 | </activation> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 67 | <build> |
| 68 | <plugins> |
| 69 | <plugin> |
| 70 | <artifactId>maven-resources-plugin</artifactId> |
| 71 | <version>3.0.2</version> |
| 72 | <executions> |
| 73 | <execution> |
Tal Gitelman | 68ccc45 | 2017-06-22 18:23:07 +0300 | [diff] [blame] | 74 | <id>copy-resources-apidocs</id> |
| 75 | <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/tools/swagger-ui/api-docs</directory> |
| 84 | <includes> |
| 85 | <include>api-docs.war</include> |
| 86 | </includes> |
| 87 | </resource> |
| 88 | </resources> |
| 89 | </configuration> |
| 90 | </execution> |
| 91 | <execution> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 92 | <id>copy-resources-be</id> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 93 | <phase>validate</phase> |
| 94 | <goals> |
| 95 | <goal>copy-resources</goal> |
| 96 | </goals> |
| 97 | <configuration> |
| 98 | <outputDirectory>${basedir}/sdc-backend</outputDirectory> |
| 99 | <resources> |
| 100 | <resource> |
| 101 | <directory>${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target</directory> |
| 102 | <includes> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 103 | <include>onboarding-be-${project.version}.war</include> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 104 | </includes> |
| 105 | </resource> |
| 106 | </resources> |
| 107 | </configuration> |
| 108 | </execution> |
| 109 | <execution> |
| 110 | <id>copy-resources-fe</id> |
Grinberg Moti | c3bda48 | 2017-02-23 11:24:34 +0200 | [diff] [blame] | 111 | <phase>validate</phase> |
| 112 | <goals> |
| 113 | <goal>copy-resources</goal> |
| 114 | </goals> |
| 115 | <configuration> |
| 116 | <outputDirectory>${basedir}/sdc-frontend</outputDirectory> |
| 117 | <resources> |
| 118 | <resource> |
| 119 | <directory>${project.parent.basedir}/openecomp-ui/target</directory> |
| 120 | <includes> |
| 121 | <include>onboarding-fe-${project.version}.war</include> |
| 122 | </includes> |
| 123 | </resource> |
| 124 | </resources> |
| 125 | </configuration> |
| 126 | </execution> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 127 | </executions> |
| 128 | </plugin> |
| 129 | |
| 130 | |
| 131 | |
| 132 | <plugin> |
| 133 | <groupId>io.fabric8</groupId> |
| 134 | <artifactId>docker-maven-plugin</artifactId> |
Michael Lando | 9dc5709 | 2017-02-20 23:46:47 +0200 | [diff] [blame] | 135 | <version>0.19.1</version> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 136 | |
| 137 | <configuration> |
| 138 | <verbose>true</verbose> |
| 139 | <apiVersion>1.23</apiVersion> |
| 140 | |
| 141 | <images> |
| 142 | |
| 143 | <!-- Build backend image --> |
| 144 | <image> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 145 | <name>openecomp/sdc-backend</name> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 146 | <alias>sdc-backend</alias> |
| 147 | <build> |
| 148 | <cleanup>try</cleanup> |
Michael Lando | 9dc5709 | 2017-02-20 23:46:47 +0200 | [diff] [blame] | 149 | <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 150 | <tags> |
| 151 | <tag>${docker.tag}</tag> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 152 | <tag>${docker.latest.tag}</tag> |
Michael Lando | 41c9860 | 2017-06-09 07:38:13 +0300 | [diff] [blame] | 153 | <tag>1.1-STAGING-latest</tag> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 154 | </tags> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 155 | </build> |
| 156 | </image> |
| 157 | |
| 158 | <!-- Build frontend image --> |
| 159 | <image> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 160 | <name>openecomp/sdc-frontend</name> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 161 | <alias>sdc-frontend</alias> |
| 162 | <build> |
| 163 | <cleanup>try</cleanup> |
Michael Lando | 9dc5709 | 2017-02-20 23:46:47 +0200 | [diff] [blame] | 164 | <dockerFileDir>${project.basedir}/sdc-frontend</dockerFileDir> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 165 | <tags> |
| 166 | <tag>${docker.tag}</tag> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 167 | <tag>${docker.latest.tag}</tag> |
Michael Lando | 41c9860 | 2017-06-09 07:38:13 +0300 | [diff] [blame] | 168 | <tag>1.1-STAGING-latest</tag> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 169 | </tags> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 170 | </build> |
| 171 | </image> |
| 172 | |
| 173 | <!-- Build elastic search image --> |
Michael Lando | 3677196 | 2017-03-01 10:05:34 +0200 | [diff] [blame] | 174 | <image> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 175 | <name>openecomp/sdc-elasticsearch</name> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 176 | <alias>sdc-elasticsearch</alias> |
| 177 | <build> |
| 178 | <cleanup>try</cleanup> |
Michael Lando | 9dc5709 | 2017-02-20 23:46:47 +0200 | [diff] [blame] | 179 | <dockerFileDir>${project.basedir}/sdc-elasticsearch</dockerFileDir> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 180 | <tags> |
| 181 | <tag>${docker.tag}</tag> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 182 | <tag>${docker.latest.tag}</tag> |
Michael Lando | 41c9860 | 2017-06-09 07:38:13 +0300 | [diff] [blame] | 183 | <tag>1.1-STAGING-latest</tag> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 184 | </tags> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 185 | </build> |
Michael Lando | 3677196 | 2017-03-01 10:05:34 +0200 | [diff] [blame] | 186 | </image> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 187 | |
| 188 | <!-- Build kibana image --> |
| 189 | <image> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 190 | <name>openecomp/sdc-kibana</name> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 191 | <alias>sdc-kibana</alias> |
| 192 | <build> |
| 193 | <cleanup>try</cleanup> |
Michael Lando | 9dc5709 | 2017-02-20 23:46:47 +0200 | [diff] [blame] | 194 | <dockerFileDir>${project.basedir}/sdc-kibana</dockerFileDir> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 195 | <tags> |
| 196 | <tag>${docker.tag}</tag> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 197 | <tag>${docker.latest.tag}</tag> |
Michael Lando | 41c9860 | 2017-06-09 07:38:13 +0300 | [diff] [blame] | 198 | <tag>1.1-STAGING-latest</tag> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 199 | </tags> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 200 | </build> |
| 201 | </image> |
| 202 | |
David Greenberg | 3d35bb3 | 2017-02-20 19:00:11 +0200 | [diff] [blame] | 203 | <!-- Build cassandra image --> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 204 | <image> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 205 | <name>openecomp/sdc-cassandra</name> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 206 | <alias>sdc-cassandra</alias> |
| 207 | <build> |
| 208 | <cleanup>try</cleanup> |
Michael Lando | 9dc5709 | 2017-02-20 23:46:47 +0200 | [diff] [blame] | 209 | <dockerFileDir>${project.basedir}/sdc-cassandra</dockerFileDir> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 210 | <tags> |
| 211 | <tag>${docker.tag}</tag> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 212 | <tag>${docker.latest.tag}</tag> |
Michael Lando | 41c9860 | 2017-06-09 07:38:13 +0300 | [diff] [blame] | 213 | <tag>1.1-STAGING-latest</tag> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 214 | </tags> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 215 | </build> |
| 216 | </image> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 217 | |
Grinberg Moti | c3bda48 | 2017-02-23 11:24:34 +0200 | [diff] [blame] | 218 | <!-- Build sanity image --> |
| 219 | <image> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 220 | <name>openecomp/sdc-sanity</name> |
Grinberg Moti | c3bda48 | 2017-02-23 11:24:34 +0200 | [diff] [blame] | 221 | <alias>sdc-sanity</alias> |
| 222 | <build> |
| 223 | <cleanup>try</cleanup> |
| 224 | <dockerFileDir>${project.basedir}/sdc-sanity</dockerFileDir> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 225 | <tags> |
| 226 | <tag>${docker.tag}</tag> |
ig6133 | 0f572ce | 2017-04-06 10:48:50 +0300 | [diff] [blame] | 227 | <tag>${docker.latest.tag}</tag> |
Michael Lando | 41c9860 | 2017-06-09 07:38:13 +0300 | [diff] [blame] | 228 | <tag>1.1-STAGING-latest</tag> |
ig6133 | 142d2e6 | 2017-04-02 17:14:00 +0300 | [diff] [blame] | 229 | </tags> |
Grinberg Moti | c3bda48 | 2017-02-23 11:24:34 +0200 | [diff] [blame] | 230 | </build> |
| 231 | </image> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 232 | |
| 233 | </images> |
| 234 | </configuration> |
| 235 | <executions> |
| 236 | <execution> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 237 | <id>clean-images</id> |
| 238 | <phase>pre-clean</phase> |
| 239 | <goals> |
| 240 | <goal>remove</goal> |
| 241 | </goals> |
| 242 | <configuration> |
| 243 | <removeAll>true</removeAll> |
Michael Lando | b3d4898 | 2017-06-11 14:22:02 +0300 | [diff] [blame] | 244 | <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] | 245 | </configuration> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 246 | </execution> |
| 247 | |
| 248 | <execution> |
| 249 | <id>generate-images</id> |
| 250 | <phase>package</phase> |
| 251 | <goals> |
| 252 | <goal>build</goal> |
| 253 | </goals> |
| 254 | </execution> |
| 255 | |
| 256 | <execution> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 257 | <id>push-images</id> |
| 258 | <phase>deploy</phase> |
| 259 | <goals> |
| 260 | <goal>build</goal> |
ml636r | a90804d | 2017-02-22 15:50:20 +0200 | [diff] [blame] | 261 | <goal>push</goal> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 262 | </goals> |
| 263 | <configuration> |
Michael Lando | b3d4898 | 2017-06-11 14:22:02 +0300 | [diff] [blame] | 264 | <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] | 265 | </configuration> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 266 | </execution> |
| 267 | </executions> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 268 | </plugin> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 269 | </plugins> |
| 270 | </build> |
| 271 | </profile> |
| 272 | </profiles> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 273 | </project> |