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