Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Dan Timoney | e787c2e | 2020-03-06 10:25:18 -0500 | [diff] [blame] | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 3 | <modelVersion>4.0.0</modelVersion> |
Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 4 | |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 5 | <parent> |
| 6 | <groupId>org.onap.ccsdk.parent</groupId> |
| 7 | <artifactId>odlparent-lite</artifactId> |
Dan Timoney | 1fefac5 | 2020-09-14 11:30:34 -0400 | [diff] [blame] | 8 | <version>2.1.0-SNAPSHOT</version> |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 9 | <relativePath/> |
| 10 | </parent> |
Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 11 | |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 12 | <groupId>org.onap.ccsdk.distribution</groupId> |
| 13 | <artifactId>distribution-odlsli-alpine</artifactId> |
Dan Timoney | 1fefac5 | 2020-09-14 11:30:34 -0400 | [diff] [blame] | 14 | <version>1.1.0-SNAPSHOT</version> |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 15 | <packaging>pom</packaging> |
Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 16 | |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 17 | <name>ccsdk-distribution :: odlsli-alpine</name> |
| 18 | <description>Creates Alpine-based ODLSLI Docker container</description> |
| 19 | <organization> |
| 20 | <name>openECOMP</name> |
| 21 | </organization> |
Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 22 | |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 23 | <properties> |
Dan Timoney | 22264e5 | 2020-07-14 09:46:02 -0400 | [diff] [blame] | 24 | <base.image.name>onap/ccsdk-odl-sodium-alpine-image</base.image.name> |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 25 | <image.name>onap/ccsdk-odlsli-alpine-image</image.name> |
| 26 | <ccsdk.project.version>${project.version}</ccsdk.project.version> |
| 27 | <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp> |
| 28 | <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy> |
| 29 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
| 30 | <opendaylight.root>opt/opendaylight</opendaylight.root> |
| 31 | <docker.push.phase>deploy</docker.push.phase> |
| 32 | <docker.verbose>true</docker.verbose> |
| 33 | <ansible.gpg.key>93C4A3FD7BB9C367</ansible.gpg.key> |
| 34 | <odl.features.extra>odl-restconf-all,odl-mdsal-all,odl-mdsal-apidocs, odl-daexim-all, odl-restconf-nb-rfc8040 |
| 35 | </odl.features.extra> |
| 36 | <ccsdk.odl.features> |
| 37 | ccsdk-sli-core-all,ccsdk-sli-adaptors-all,ccsdk-sli-northbound-all,ccsdk-sli-plugins-all,ccsdk-features-all |
| 38 | </ccsdk.odl.features> |
| 39 | <odl.boot.features.extra>${odl.features.extra},${ccsdk.odl.features}</odl.boot.features.extra> |
Sandeep Shah | 1ae396c | 2019-11-03 11:09:47 -0600 | [diff] [blame] | 40 | |
Dan Timoney | 1fefac5 | 2020-09-14 11:30:34 -0400 | [diff] [blame] | 41 | <ccsdk.features.version>1.1.0-SNAPSHOT</ccsdk.features.version> |
| 42 | <ccsdk.sli.core.version>1.1.0-SNAPSHOT</ccsdk.sli.core.version> |
| 43 | <ccsdk.sli.adaptors.version>1.1.0-SNAPSHOT</ccsdk.sli.adaptors.version> |
| 44 | <ccsdk.sli.northbound.version>1.1.0-SNAPSHOT</ccsdk.sli.northbound.version> |
| 45 | <ccsdk.sli.plugins.version>1.1.0-SNAPSHOT</ccsdk.sli.plugins.version> |
| 46 | <ccsdk.oran.a1adapter.version>1.1.0-SNAPSHOT</ccsdk.oran.a1adapter.version> |
Dan Timoney | 0f24452 | 2020-11-17 07:42:27 -0500 | [diff] [blame^] | 47 | <docker.autoCreateCustomNetworks>true</docker.autoCreateCustomNetworks> |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 48 | </properties> |
Sandeep Shah | b7c724b | 2019-04-27 03:05:08 -0500 | [diff] [blame] | 49 | |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 50 | <dependencies> |
Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 51 | <dependency> |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 52 | <groupId>${project.groupId}</groupId> |
| 53 | <artifactId>dependencies</artifactId> |
| 54 | <version>${project.version}</version> |
| 55 | <classifier>repo</classifier> |
| 56 | <type>zip</type> |
| 57 | </dependency> |
Timoney, Dan (dt5972) | a92a838 | 2019-04-02 10:35:09 -0700 | [diff] [blame] | 58 | |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 59 | <dependency> |
| 60 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 61 | <artifactId>dblib-installer</artifactId> |
| 62 | <version>${ccsdk.sli.core.version}</version> |
| 63 | <classifier>repo</classifier> |
| 64 | <type>zip</type> |
| 65 | </dependency> |
| 66 | <dependency> |
| 67 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 68 | <artifactId>filters-installer</artifactId> |
| 69 | <version>${ccsdk.sli.core.version}</version> |
| 70 | <classifier>repo</classifier> |
| 71 | <type>zip</type> |
| 72 | </dependency> |
| 73 | <dependency> |
| 74 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 75 | <artifactId>sli-installer</artifactId> |
| 76 | <version>${ccsdk.sli.core.version}</version> |
| 77 | <classifier>repo</classifier> |
| 78 | <type>zip</type> |
| 79 | </dependency> |
| 80 | <dependency> |
| 81 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 82 | <artifactId>sliapi-installer</artifactId> |
| 83 | <version>${ccsdk.sli.core.version}</version> |
| 84 | <classifier>repo</classifier> |
| 85 | <type>zip</type> |
| 86 | </dependency> |
| 87 | <dependency> |
| 88 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 89 | <artifactId>sliPluginUtils-installer</artifactId> |
| 90 | <version>${ccsdk.sli.core.version}</version> |
| 91 | <classifier>repo</classifier> |
| 92 | <type>zip</type> |
| 93 | </dependency> |
| 94 | <dependency> |
| 95 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 96 | <artifactId>utils-installer</artifactId> |
| 97 | <version>${ccsdk.sli.core.version}</version> |
| 98 | <classifier>repo</classifier> |
| 99 | <type>zip</type> |
| 100 | </dependency> |
| 101 | <dependency> |
| 102 | <groupId>org.onap.ccsdk.sli.core</groupId> |
| 103 | <artifactId>slicore-features-installer</artifactId> |
| 104 | <version>${ccsdk.sli.core.version}</version> |
| 105 | <classifier>repo</classifier> |
| 106 | <type>zip</type> |
| 107 | </dependency> |
| 108 | <dependency> |
| 109 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 110 | <artifactId>aai-service-installer</artifactId> |
| 111 | <version>${ccsdk.sli.adaptors.version}</version> |
| 112 | <classifier>repo</classifier> |
| 113 | <type>zip</type> |
| 114 | </dependency> |
| 115 | <dependency> |
| 116 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 117 | <artifactId>ansible-adapter-installer</artifactId> |
| 118 | <version>${ccsdk.sli.adaptors.version}</version> |
| 119 | <classifier>repo</classifier> |
| 120 | <type>zip</type> |
| 121 | </dependency> |
| 122 | <dependency> |
| 123 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 124 | <artifactId>base-http-installer</artifactId> |
| 125 | <version>${ccsdk.sli.adaptors.version}</version> |
| 126 | <classifier>repo</classifier> |
| 127 | <type>zip</type> |
| 128 | </dependency> |
| 129 | <dependency> |
| 130 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 131 | <artifactId>mdsal-resource-installer</artifactId> |
| 132 | <version>${ccsdk.sli.adaptors.version}</version> |
| 133 | <classifier>repo</classifier> |
| 134 | <type>zip</type> |
| 135 | </dependency> |
| 136 | <dependency> |
| 137 | <groupId>org.onap.ccsdk.sli.adaptors.messagerouter</groupId> |
| 138 | <artifactId>publisher.installer</artifactId> |
| 139 | <version>${ccsdk.sli.adaptors.version}</version> |
| 140 | <classifier>repo</classifier> |
| 141 | <type>zip</type> |
| 142 | </dependency> |
| 143 | <dependency> |
| 144 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 145 | <artifactId>netbox-client-installer</artifactId> |
| 146 | <version>${ccsdk.sli.adaptors.version}</version> |
| 147 | <classifier>repo</classifier> |
| 148 | <type>zip</type> |
| 149 | </dependency> |
| 150 | <dependency> |
| 151 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 152 | <artifactId>resource-assignment-installer</artifactId> |
| 153 | <version>${ccsdk.sli.adaptors.version}</version> |
| 154 | <classifier>repo</classifier> |
| 155 | <type>zip</type> |
| 156 | </dependency> |
| 157 | <dependency> |
| 158 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 159 | <artifactId>saltstack-adapter-installer</artifactId> |
| 160 | <version>${ccsdk.sli.adaptors.version}</version> |
| 161 | <classifier>repo</classifier> |
| 162 | <type>zip</type> |
| 163 | </dependency> |
| 164 | <dependency> |
| 165 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 166 | <artifactId>sql-resource-installer</artifactId> |
| 167 | <version>${ccsdk.sli.adaptors.version}</version> |
| 168 | <classifier>repo</classifier> |
| 169 | <type>zip</type> |
| 170 | </dependency> |
| 171 | <dependency> |
| 172 | <groupId>org.onap.ccsdk.sli.adaptors</groupId> |
| 173 | <artifactId>sliadaptors-features-installer</artifactId> |
| 174 | <version>${ccsdk.sli.adaptors.version}</version> |
| 175 | <classifier>repo</classifier> |
| 176 | <type>zip</type> |
| 177 | </dependency> |
Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 178 | |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 179 | <dependency> |
| 180 | <groupId>org.onap.ccsdk.sli.northbound</groupId> |
| 181 | <artifactId>asdcApi-installer</artifactId> |
| 182 | <version>${ccsdk.sli.northbound.version}</version> |
| 183 | <classifier>repo</classifier> |
| 184 | <type>zip</type> |
| 185 | </dependency> |
| 186 | <dependency> |
| 187 | <groupId>org.onap.ccsdk.sli.northbound</groupId> |
| 188 | <artifactId>dataChange-installer</artifactId> |
| 189 | <version>${ccsdk.sli.northbound.version}</version> |
| 190 | <classifier>repo</classifier> |
| 191 | <type>zip</type> |
| 192 | </dependency> |
| 193 | <dependency> |
| 194 | <groupId>org.onap.ccsdk.sli.northbound</groupId> |
| 195 | <artifactId>lcm-installer</artifactId> |
| 196 | <version>${ccsdk.sli.northbound.version}</version> |
| 197 | <classifier>repo</classifier> |
| 198 | <type>zip</type> |
| 199 | </dependency> |
| 200 | <dependency> |
| 201 | <groupId>org.onap.ccsdk.sli.northbound</groupId> |
| 202 | <artifactId>slinorthbound-features-installer</artifactId> |
| 203 | <version>${ccsdk.sli.northbound.version}</version> |
| 204 | <classifier>repo</classifier> |
| 205 | <type>zip</type> |
| 206 | </dependency> |
| 207 | <dependency> |
| 208 | <groupId>org.onap.ccsdk.sli.plugins</groupId> |
| 209 | <artifactId>properties-node-installer</artifactId> |
| 210 | <version>${ccsdk.sli.plugins.version}</version> |
| 211 | <classifier>repo</classifier> |
| 212 | <type>zip</type> |
| 213 | </dependency> |
| 214 | <dependency> |
| 215 | <groupId>org.onap.ccsdk.sli.plugins</groupId> |
| 216 | <artifactId>restapi-call-node-installer</artifactId> |
| 217 | <version>${ccsdk.sli.plugins.version}</version> |
| 218 | <classifier>repo</classifier> |
| 219 | <type>zip</type> |
| 220 | </dependency> |
| 221 | <dependency> |
| 222 | <groupId>org.onap.ccsdk.sli.plugins</groupId> |
| 223 | <artifactId>template-node-installer</artifactId> |
| 224 | <version>${ccsdk.sli.plugins.version}</version> |
| 225 | <classifier>repo</classifier> |
| 226 | <type>zip</type> |
| 227 | </dependency> |
| 228 | <dependency> |
| 229 | <groupId>org.onap.ccsdk.sli.plugins</groupId> |
| 230 | <artifactId>restconf-client-installer</artifactId> |
| 231 | <version>${ccsdk.sli.plugins.version}</version> |
| 232 | <classifier>repo</classifier> |
| 233 | <type>zip</type> |
| 234 | </dependency> |
| 235 | <dependency> |
| 236 | <groupId>org.onap.ccsdk.sli.plugins</groupId> |
| 237 | <artifactId>sshapi-call-node-installer</artifactId> |
| 238 | <version>${ccsdk.sli.plugins.version}</version> |
| 239 | <classifier>repo</classifier> |
| 240 | <type>zip</type> |
| 241 | </dependency> |
| 242 | <dependency> |
| 243 | <groupId>org.onap.ccsdk.sli.plugins</groupId> |
| 244 | <artifactId>sliplugins-features-installer</artifactId> |
| 245 | <version>${ccsdk.sli.plugins.version}</version> |
| 246 | <classifier>repo</classifier> |
| 247 | <type>zip</type> |
| 248 | </dependency> |
| 249 | <dependency> |
| 250 | <groupId>org.onap.ccsdk.features</groupId> |
| 251 | <artifactId>features-installer</artifactId> |
| 252 | <version>${ccsdk.features.version}</version> |
| 253 | <classifier>repo</classifier> |
| 254 | <type>zip</type> |
| 255 | </dependency> |
| 256 | <dependency> |
| 257 | <groupId>org.onap.ccsdk.features.sdnr.wt</groupId> |
| 258 | <artifactId>sdnr-wt-feature-aggregator-installer</artifactId> |
| 259 | <version>${ccsdk.features.version}</version> |
| 260 | <classifier>repo</classifier> |
| 261 | <type>zip</type> |
| 262 | </dependency> |
| 263 | <dependency> |
| 264 | <groupId>org.onap.ccsdk.features</groupId> |
| 265 | <artifactId>aafshiro-installer</artifactId> |
| 266 | <version>${ccsdk.features.version}</version> |
| 267 | <classifier>repo</classifier> |
| 268 | <type>zip</type> |
| 269 | </dependency> |
| 270 | <dependency> |
| 271 | <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId> |
| 272 | <artifactId>sdnr-northbound-features-installer</artifactId> |
| 273 | <version>${ccsdk.features.version}</version> |
| 274 | <classifier>repo</classifier> |
| 275 | <type>zip</type> |
| 276 | </dependency> |
| 277 | <dependency> |
Lathish | 0e5d6a0 | 2020-08-06 10:25:41 +0100 | [diff] [blame] | 278 | <groupId>org.onap.ccsdk.oran</groupId> |
| 279 | <artifactId>a1-adapter-northbound-installer</artifactId> |
| 280 | <version>${ccsdk.oran.a1adapter.version}</version> |
| 281 | <classifier>repo</classifier> |
| 282 | <type>zip</type> |
| 283 | </dependency> |
| 284 | <dependency> |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 285 | <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId> |
| 286 | <artifactId>oofpcipoc-installer</artifactId> |
| 287 | <version>${ccsdk.features.version}</version> |
| 288 | <classifier>repo</classifier> |
| 289 | <type>zip</type> |
| 290 | </dependency> |
| 291 | <dependency> |
RehanRaza | 600b944 | 2020-08-24 15:43:29 +0200 | [diff] [blame] | 292 | <groupId>org.onap.ccsdk.oran</groupId> |
| 293 | <artifactId>a1-adapter-installer</artifactId> |
| 294 | <version>${ccsdk.oran.a1adapter.version}</version> |
| 295 | <classifier>repo</classifier> |
| 296 | <type>zip</type> |
| 297 | </dependency> |
| 298 | <dependency> |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 299 | <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId> |
| 300 | <artifactId>CMNotify-installer</artifactId> |
| 301 | <version>${ccsdk.features.version}</version> |
| 302 | <classifier>repo</classifier> |
| 303 | <type>zip</type> |
| 304 | </dependency> |
Sandeep Shah | 025091f | 2020-08-20 10:37:52 -0500 | [diff] [blame] | 305 | <dependency> |
| 306 | <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId> |
| 307 | <artifactId>ranSlice-installer</artifactId> |
| 308 | <version>${ccsdk.features.version}</version> |
| 309 | <classifier>repo</classifier> |
| 310 | <type>zip</type> |
| 311 | </dependency> |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 312 | </dependencies> |
| 313 | |
| 314 | <build> |
| 315 | <extensions> |
| 316 | <extension> |
| 317 | <!-- this extension is required by wagon in order to pass the proxy --> |
| 318 | <groupId>org.apache.maven.wagon</groupId> |
| 319 | <artifactId>wagon-http-lightweight</artifactId> |
| 320 | <version>2.2</version> |
| 321 | </extension> |
| 322 | </extensions> |
| 323 | <plugins> |
Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 324 | |
| 325 | |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 326 | <plugin> |
| 327 | <groupId>org.codehaus.groovy.maven</groupId> |
| 328 | <artifactId>gmaven-plugin</artifactId> |
| 329 | <executions> |
| 330 | <execution> |
| 331 | <phase>validate</phase> |
| 332 | <goals> |
| 333 | <goal>execute</goal> |
| 334 | </goals> |
| 335 | <configuration> |
| 336 | <source>${basedir}/../../src/main/scripts/TagVersion.groovy</source> |
| 337 | </configuration> |
| 338 | </execution> |
| 339 | </executions> |
| 340 | </plugin> |
Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 341 | |
| 342 | |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 343 | <plugin> |
| 344 | <artifactId>maven-resources-plugin</artifactId> |
| 345 | <version>2.6</version> |
| 346 | <executions> |
| 347 | <execution> |
| 348 | <id>copy-dockerfile</id> |
| 349 | <goals> |
| 350 | <goal>copy-resources</goal> |
| 351 | </goals><!-- here the phase you need --> |
| 352 | <phase>validate</phase> |
| 353 | <configuration> |
| 354 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 355 | <resources> |
| 356 | <resource> |
| 357 | <directory>src/main/docker</directory> |
| 358 | <includes> |
| 359 | <include>Dockerfile</include> |
| 360 | </includes> |
| 361 | <filtering>true</filtering> |
| 362 | </resource> |
| 363 | </resources> |
| 364 | </configuration> |
| 365 | </execution> |
Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 366 | |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 367 | <execution> |
| 368 | <id>copy-scripts</id> |
| 369 | <goals> |
| 370 | <goal>copy-resources</goal> |
| 371 | </goals><!-- here the phase you need --> |
| 372 | <phase>validate</phase> |
| 373 | <configuration> |
| 374 | <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/bin</outputDirectory> |
| 375 | <resources> |
| 376 | <resource> |
| 377 | <directory>../src/main/scripts</directory> |
| 378 | <includes> |
| 379 | <include>*.sh</include> |
| 380 | </includes> |
| 381 | <filtering>false</filtering> |
| 382 | </resource> |
| 383 | </resources> |
| 384 | </configuration> |
| 385 | </execution> |
Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 386 | |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 387 | <execution> |
| 388 | <id>copy-odl-resources</id> |
| 389 | <goals> |
| 390 | <goal>copy-resources</goal> |
| 391 | </goals><!-- here the phase you need --> |
| 392 | <phase>validate</phase> |
| 393 | <configuration> |
| 394 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 395 | <resources> |
| 396 | <resource> |
| 397 | <directory>../src/main/resources</directory> |
| 398 | <includes> |
| 399 | <include>idmlight.db.mv.db</include> |
| 400 | <include>org.ops4j.pax.logging.cfg</include> |
| 401 | <include>install_ccsdk.yml</include> |
| 402 | <include>ansible-sources.list</include> |
| 403 | </includes> |
| 404 | <filtering>false</filtering> |
| 405 | </resource> |
| 406 | </resources> |
| 407 | </configuration> |
| 408 | </execution> |
| 409 | <execution> |
| 410 | <id>copy-config</id> |
| 411 | <goals> |
| 412 | <goal>copy-resources</goal> |
| 413 | </goals><!-- here the phase you need --> |
| 414 | <phase>validate</phase> |
| 415 | <configuration> |
| 416 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 417 | <resources> |
| 418 | <resource> |
| 419 | <directory>../src/main/resources</directory> |
| 420 | <includes> |
| 421 | <include>org.ops4j.pax.logging.cfg</include> |
| 422 | </includes> |
| 423 | <filtering>false</filtering> |
| 424 | </resource> |
| 425 | </resources> |
| 426 | </configuration> |
| 427 | </execution> |
| 428 | <execution> |
| 429 | <id>copy-data</id> |
| 430 | <goals> |
| 431 | <goal>copy-resources</goal> |
| 432 | </goals><!-- here the phase you need --> |
| 433 | <phase>validate</phase> |
| 434 | <configuration> |
| 435 | <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data</outputDirectory> |
| 436 | <resources> |
| 437 | <resource> |
| 438 | <directory>../src/main/resources</directory> |
| 439 | <includes> |
| 440 | <include>*.dump</include> |
| 441 | </includes> |
| 442 | <filtering>false</filtering> |
| 443 | </resource> |
| 444 | </resources> |
| 445 | </configuration> |
| 446 | </execution> |
| 447 | <execution> |
| 448 | <id>copy-properties</id> |
| 449 | <goals> |
| 450 | <goal>copy-resources</goal> |
| 451 | </goals><!-- here the phase you need --> |
| 452 | <phase>validate</phase> |
| 453 | <configuration> |
| 454 | <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/properties |
| 455 | </outputDirectory> |
| 456 | <resources> |
| 457 | <resource> |
| 458 | <directory>../src/main/properties</directory> |
| 459 | <includes> |
| 460 | <include>*.properties</include> |
| 461 | <include>*.vt</include> |
| 462 | </includes> |
| 463 | <filtering>false</filtering> |
| 464 | </resource> |
| 465 | </resources> |
| 466 | </configuration> |
| 467 | </execution> |
| 468 | <execution> |
| 469 | <id>copy-keystores</id> |
| 470 | <goals> |
| 471 | <goal>copy-resources</goal> |
| 472 | </goals><!-- here the phase you need --> |
| 473 | <phase>validate</phase> |
| 474 | <configuration> |
| 475 | <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/data/stores</outputDirectory> |
| 476 | <resources> |
| 477 | <resource> |
| 478 | <directory>../src/main/stores</directory> |
| 479 | <includes> |
| 480 | <include>*.jks</include> |
| 481 | </includes> |
| 482 | <filtering>false</filtering> |
| 483 | </resource> |
| 484 | </resources> |
| 485 | </configuration> |
| 486 | </execution> |
| 487 | </executions> |
| 488 | </plugin> |
| 489 | <plugin> |
| 490 | <groupId>org.apache.maven.plugins</groupId> |
| 491 | <artifactId>maven-dependency-plugin</artifactId> |
| 492 | <version>3.0.2</version> |
| 493 | <executions> |
| 494 | <execution> |
| 495 | <id>unpack features</id> |
| 496 | <phase>generate-sources</phase> |
| 497 | <goals> |
| 498 | <goal>unpack-dependencies</goal> |
| 499 | </goals> |
| 500 | <configuration> |
| 501 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 502 | <excludeTransitive>true</excludeTransitive> |
| 503 | </configuration> |
| 504 | </execution> |
| 505 | <execution> |
| 506 | <id>unpack dgs</id> |
| 507 | <phase>generate-sources</phase> |
| 508 | <goals> |
| 509 | <goal>unpack</goal> |
| 510 | </goals> |
| 511 | <configuration> |
| 512 | <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory> |
| 513 | <artifactItems> |
| 514 | <artifactItem> |
| 515 | <groupId>${project.groupId}</groupId> |
| 516 | <artifactId>platform-logic-installer</artifactId> |
| 517 | <version>${project.version}</version> |
| 518 | <type>zip</type> |
| 519 | </artifactItem> |
| 520 | </artifactItems> |
| 521 | </configuration> |
| 522 | </execution> |
| 523 | </executions> |
| 524 | </plugin> |
| 525 | <plugin> |
| 526 | <groupId>org.codehaus.mojo</groupId> |
| 527 | <artifactId>exec-maven-plugin</artifactId> |
| 528 | <version>1.5.0</version> |
| 529 | <executions> |
Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 530 | |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 531 | <execution> |
| 532 | <id>change shell permissions</id> |
| 533 | <phase>process-sources</phase> |
| 534 | <goals> |
| 535 | <goal>exec</goal> |
| 536 | </goals> |
| 537 | <configuration> |
| 538 | <executable>/usr/bin/find</executable> |
| 539 | <arguments> |
| 540 | <argument>${basedir}/target/docker-stage/opt/onap/ccsdk</argument> |
| 541 | <argument>-name</argument> |
| 542 | <argument>*.sh</argument> |
| 543 | <argument>-exec</argument> |
| 544 | <argument>chmod</argument> |
| 545 | <argument>+x</argument> |
| 546 | <argument>{}</argument> |
| 547 | <argument>;</argument> |
| 548 | </arguments> |
| 549 | </configuration> |
| 550 | </execution> |
| 551 | </executions> |
| 552 | </plugin> |
Dan Timoney | 0f24452 | 2020-11-17 07:42:27 -0500 | [diff] [blame^] | 553 | <plugin> |
| 554 | <groupId>org.apache.maven.plugins</groupId> |
| 555 | <artifactId>maven-failsafe-plugin</artifactId> |
| 556 | <executions> |
| 557 | <execution> |
| 558 | <goals> |
| 559 | <goal>integration-test</goal> |
| 560 | <goal>verify</goal> |
| 561 | </goals> |
| 562 | </execution> |
| 563 | </executions> |
| 564 | <configuration> |
| 565 | <skipITs>true</skipITs> |
| 566 | </configuration> |
| 567 | </plugin> |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 568 | </plugins> |
| 569 | </build> |
Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 570 | |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 571 | <profiles> |
| 572 | <profile> |
| 573 | <id>docker</id> |
| 574 | <build> |
| 575 | <plugins> |
| 576 | <plugin> |
Dan Timoney | 0f24452 | 2020-11-17 07:42:27 -0500 | [diff] [blame^] | 577 | <groupId>org.apache.maven.plugins</groupId> |
| 578 | <artifactId>maven-failsafe-plugin</artifactId> |
| 579 | <executions> |
| 580 | <execution> |
| 581 | <goals> |
| 582 | <goal>integration-test</goal> |
| 583 | <goal>verify</goal> |
| 584 | </goals> |
| 585 | </execution> |
| 586 | </executions> |
| 587 | <configuration> |
| 588 | <skipITs>false</skipITs> |
| 589 | <environmentVariables> |
| 590 | <ODLSLI_PORT>${odlsli.port}</ODLSLI_PORT> |
| 591 | </environmentVariables> |
| 592 | </configuration> |
| 593 | </plugin> |
| 594 | <plugin> |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 595 | <groupId>io.fabric8</groupId> |
| 596 | <artifactId>docker-maven-plugin</artifactId> |
| 597 | <version>0.28.0</version> |
| 598 | <inherited>false</inherited> |
| 599 | <configuration> |
| 600 | <images> |
| 601 | <image> |
| 602 | <name>${image.name}</name> |
| 603 | <build> |
| 604 | <cleanup>try</cleanup> |
| 605 | <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> |
| 606 | <dockerFile>Dockerfile</dockerFile> |
| 607 | <tags> |
| 608 | <tag>${project.docker.latestminortag.version}</tag> |
| 609 | <tag>${project.docker.latestfulltag.version}</tag> |
| 610 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
| 611 | </tags> |
| 612 | </build> |
| 613 | </image> |
| 614 | </images> |
| 615 | </configuration> |
| 616 | <executions> |
| 617 | <execution> |
| 618 | <id>generate-images</id> |
| 619 | <phase>package</phase> |
| 620 | <goals> |
| 621 | <goal>build</goal> |
| 622 | </goals> |
| 623 | </execution> |
Dan Timoney | 0f24452 | 2020-11-17 07:42:27 -0500 | [diff] [blame^] | 624 | <execution> |
| 625 | <id>start-it-instance</id> |
| 626 | <phase>pre-integration-test</phase> |
| 627 | <goals> |
| 628 | <goal>start</goal> |
| 629 | </goals> |
| 630 | <configuration> |
| 631 | <images> |
| 632 | <image> |
| 633 | <name>mariadb:10.5</name> |
| 634 | <alias>odlsli-db</alias> |
| 635 | <run> |
| 636 | <env> |
| 637 | <MYSQL_ROOT_PASSWORD>itsASecret</MYSQL_ROOT_PASSWORD> |
| 638 | <MYSQL_USER>sdnctl</MYSQL_USER> |
| 639 | <MYSQL_PASSWORD>gamma</MYSQL_PASSWORD> |
| 640 | <MYSQL_DATABASE>sdnctl</MYSQL_DATABASE> |
| 641 | </env> |
| 642 | <network> |
| 643 | <mode>custom</mode> |
| 644 | <name>onap</name> |
| 645 | <alias>dbhost</alias> |
| 646 | <alias>sdnctldb01</alias> |
| 647 | <alias>sdnctldb02</alias> |
| 648 | </network> |
| 649 | <ports> |
| 650 | <port>odlslidb.port:3306</port> |
| 651 | </ports> |
| 652 | <log> |
| 653 | <enabled>true</enabled> |
| 654 | </log> |
| 655 | </run> |
| 656 | </image> |
| 657 | <image> |
| 658 | <name>${image.name}:${project.docker.latesttagtimestamp.version}</name> |
| 659 | <alias>odlsli-container</alias> |
| 660 | <run> |
| 661 | <env> |
| 662 | <MYSQL_ROOT_PASSWORD>itsASecret</MYSQL_ROOT_PASSWORD> |
| 663 | <MYSQL_USER>sdnctl</MYSQL_USER> |
| 664 | <MYSQL_PASSWORD>gamma</MYSQL_PASSWORD> |
| 665 | <MYSQL_DATABASE>sdnctl</MYSQL_DATABASE> |
| 666 | <SDNC_CONFIG_DIR>/opt/onap/ccsdk/data/properties</SDNC_CONFIG_DIR> |
| 667 | <KARAF_CONSOLE_LOG_LEVEL>INFO</KARAF_CONSOLE_LOG_LEVEL> |
| 668 | </env> |
| 669 | <dependsOn> |
| 670 | <container>odlsli-db</container> |
| 671 | </dependsOn> |
| 672 | <network> |
| 673 | <mode>custom</mode> |
| 674 | <name>onap</name> |
| 675 | <alias>odlsli</alias> |
| 676 | </network>> |
| 677 | <ports> |
| 678 | <port>odlsli.port:8181</port> |
| 679 | </ports> |
| 680 | <wait> |
| 681 | <log>all warp coils are now operating at peak efficiency</log> |
| 682 | <time>120000</time> |
| 683 | </wait> |
| 684 | <log> |
| 685 | <enabled>true</enabled> |
| 686 | </log> |
| 687 | </run> |
| 688 | </image> |
| 689 | </images> |
| 690 | </configuration> |
| 691 | </execution> |
| 692 | <execution> |
| 693 | <id>stop-it-instance</id> |
| 694 | <phase>post-integration-test</phase> |
| 695 | <goals> |
| 696 | <goal>stop</goal> |
| 697 | </goals> |
| 698 | </execution> |
Dan Timoney | f85fb6f | 2020-03-05 16:14:55 -0500 | [diff] [blame] | 699 | <execution> |
| 700 | <id>push-images</id> |
| 701 | <phase>${docker.push.phase}</phase> |
| 702 | <goals> |
| 703 | <goal>build</goal> |
| 704 | <goal>push</goal> |
| 705 | </goals> |
| 706 | </execution> |
| 707 | </executions> |
| 708 | </plugin> |
| 709 | </plugins> |
| 710 | </build> |
| 711 | </profile> |
| 712 | </profiles> |
Timoney, Dan (dt5972) | b1ac725 | 2018-12-14 13:00:43 -0500 | [diff] [blame] | 713 | </project> |