|
18 | 18 | <parent>
|
19 | 19 | <groupId>com.arpnetworking.build</groupId>
|
20 | 20 | <artifactId>arpnetworking-parent-pom</artifactId>
|
21 |
| - <version>2.0.0</version> |
| 21 | + <version>2.0.1</version> |
22 | 22 | <relativePath />
|
23 | 23 | </parent>
|
24 | 24 |
|
|
92 | 92 | <log4j.over.slf4j.version>1.7.25</log4j.over.slf4j.version>
|
93 | 93 | <metrics.aggregator.protocol.prometheus.version>1.0.0</metrics.aggregator.protocol.prometheus.version>
|
94 | 94 | <metrics.aggregator.protocol.version>1.0.6</metrics.aggregator.protocol.version>
|
95 |
| - <metrics.client.version>0.10.1</metrics.client.version> |
96 |
| - <metrics.client.http.version>0.9.4</metrics.client.http.version> |
97 |
| - <metrics.client.incubator.version>0.6.3</metrics.client.incubator.version> |
98 |
| - <metrics.jvm.extra.version>0.10.1</metrics.jvm.extra.version> |
| 95 | + <metrics.client.version>0.11.0</metrics.client.version> |
| 96 | + <metrics.client.http.version>0.11.0</metrics.client.http.version> |
| 97 | + <metrics.client.incubator.version>0.11.0</metrics.client.incubator.version> |
| 98 | + <metrics.jvm.extra.version>0.11.0</metrics.jvm.extra.version> |
99 | 99 | <oval.version>1.90</oval.version>
|
100 | 100 | <protobuf.version>3.8.0</protobuf.version>
|
101 | 101 | <scala.version>2.11</scala.version>
|
|
111 | 111 | <hamcrest.version>2.1</hamcrest.version>
|
112 | 112 | <junit.benchmarks.version>0.7.2</junit.benchmarks.version>
|
113 | 113 | <junit.version>4.12</junit.version>
|
114 |
| - <metrics.generator.version>1.2.3</metrics.generator.version> |
| 114 | + <metrics.generator.version>1.3.0</metrics.generator.version> |
115 | 115 | <mockito.version>2.23.4</mockito.version>
|
116 | 116 | <performance.test.version>1.2.1</performance.test.version>
|
117 | 117 | <statsd.client.timgroup>3.1.0</statsd.client.timgroup>
|
|
120 | 120 | <!-- Additional Plugins -->
|
121 | 121 | <aspectjtools.maven.plugin>1.9.2</aspectjtools.maven.plugin>
|
122 | 122 | <aspectj.maven.plugin.version>1.8</aspectj.maven.plugin.version>
|
123 |
| - <docker.maven.plugin.version>0.26.0</docker.maven.plugin.version> |
| 123 | + <build.helper.plugin.version>3.0.0</build.helper.plugin.version> |
| 124 | + <docker.maven.plugin.version>0.27.2</docker.maven.plugin.version> |
124 | 125 | <javassist.maven.plugin.version>0.2.2</javassist.maven.plugin.version>
|
125 | 126 | <maven.assembly.plugin.version>2.6</maven.assembly.plugin.version>
|
| 127 | + <maven.properties.plugin.version>1.0.0</maven.properties.plugin.version> |
126 | 128 | <rpm.maven.plugin.version>2.1.5</rpm.maven.plugin.version>
|
127 | 129 |
|
128 | 130 | <!-- Code Coverage -->
|
|
321 | 323 | </dependency>
|
322 | 324 | </dependencies>
|
323 | 325 | </plugin>
|
| 326 | + <plugin> |
| 327 | + <groupId>org.codehaus.mojo</groupId> |
| 328 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 329 | + <version>${build.helper.plugin.version}</version> |
| 330 | + <executions> |
| 331 | + <execution> |
| 332 | + <id>get-local-ip</id> |
| 333 | + <phase>initialize</phase> |
| 334 | + <goals> |
| 335 | + <goal>local-ip</goal> |
| 336 | + </goals> |
| 337 | + <configuration> |
| 338 | + <localIpProperty>kafka.advertised.address</localIpProperty> |
| 339 | + </configuration> |
| 340 | + </execution> |
| 341 | + </executions> |
| 342 | + </plugin> |
324 | 343 | <plugin>
|
325 | 344 | <groupId>io.fabric8</groupId>
|
326 | 345 | <artifactId>docker-maven-plugin</artifactId>
|
|
366 | 385 | </execution>
|
367 | 386 | </executions>
|
368 | 387 | <configuration>
|
| 388 | + <autoCreateCustomNetworks>true</autoCreateCustomNetworks> |
369 | 389 | <showLogs>true</showLogs>
|
370 | 390 | <images>
|
371 | 391 | <image>
|
372 | 392 | <name>arpnetworking/mad/kafka:${project.version}</name>
|
| 393 | + <alias>kafka</alias> |
373 | 394 | <build>
|
374 | 395 | <dockerFile>${project.basedir}/src/main/docker/kafka/Dockerfile</dockerFile>
|
375 | 396 | <tags>
|
376 | 397 | <tag>${buildNumber}</tag>
|
377 | 398 | </tags>
|
378 | 399 | </build>
|
379 | 400 | <run>
|
| 401 | + <network> |
| 402 | + <mode>custom</mode> |
| 403 | + <name>mad-net</name> |
| 404 | + <alias>kafka</alias> |
| 405 | + </network> |
| 406 | + <ports> |
| 407 | + <port>+kafka.ip:2181:2181</port> |
| 408 | + <port>+kafka.ip:9092:9092</port> |
| 409 | + </ports> |
380 | 410 | <env>
|
381 |
| - <AUTO_CREATE_TOPICS>true</AUTO_CREATE_TOPICS> |
382 |
| - <ADVERTISED_HOST>localhost</ADVERTISED_HOST> |
| 411 | + <ADVERTISED_HOST>${kafka.advertised.address}</ADVERTISED_HOST> |
383 | 412 | <ADVERTISED_PORT>9092</ADVERTISED_PORT>
|
| 413 | + <AUTO_CREATE_TOPICS>true</AUTO_CREATE_TOPICS> |
384 | 414 | </env>
|
385 |
| - <ports> |
386 |
| - <port>2181:2181</port> |
387 |
| - <port>9092:9092</port> |
388 |
| - </ports> |
389 | 415 | </run>
|
390 | 416 | </image>
|
391 | 417 | <image>
|
392 | 418 | <name>arpnetworking/mad:${project.version}</name>
|
| 419 | + <alias>mad</alias> |
393 | 420 | <build>
|
394 | 421 | <dockerFile>${project.build.directory}/docker-assembly/Dockerfile</dockerFile>
|
395 | 422 | <tags>
|
396 | 423 | <tag>${buildNumber}</tag>
|
397 | 424 | </tags>
|
398 | 425 | </build>
|
399 | 426 | <run>
|
400 |
| - <env> |
401 |
| - <ADDITIONAL_JAVA_OPTS>${debugJavaOptions}</ADDITIONAL_JAVA_OPTS> |
402 |
| - </env> |
| 427 | + <dependsOn> |
| 428 | + <container>kafka</container> |
| 429 | + </dependsOn> |
| 430 | + <network> |
| 431 | + <mode>custom</mode> |
| 432 | + <name>mad-net</name> |
| 433 | + <alias>mad</alias> |
| 434 | + </network> |
403 | 435 | <ports>
|
404 |
| - <port>${debugJavaPort}:${debugJavaPort}</port> |
405 |
| - <port>7090:7090</port> |
406 |
| - <port>8125:8125/udp</port> |
| 436 | + <port>+mad.ip:${debugJavaPort}:${debugJavaPort}</port> |
| 437 | + <port>+mad.ip:7090:7090</port> |
| 438 | + <port>+mad.ip:8125:8125/udp</port> |
407 | 439 | </ports>
|
| 440 | + <env> |
| 441 | + <JAVA_OPTS>${debugJavaOptions}</JAVA_OPTS> |
| 442 | + <KAFKA_SOURCE_BOOTSTRAP_HOST>kafka</KAFKA_SOURCE_BOOTSTRAP_HOST> |
| 443 | + </env> |
408 | 444 | <volumes>
|
409 | 445 | <bind>
|
410 | 446 | <volume>${project.basedir}/logs/docker:/opt/mad/logs</volume>
|
411 | 447 | </bind>
|
412 | 448 | </volumes>
|
413 | 449 | <wait>
|
414 | 450 | <http>
|
415 |
| - <url>http://${docker.host.address}:7090/ping</url> |
| 451 | + <url>http://${mad.ip}:7090/ping</url> |
416 | 452 | <method>GET</method>
|
417 | 453 | <status>200</status>
|
418 | 454 | </http>
|
|
426 | 462 | <skip>${skipDockerBuild}</skip>
|
427 | 463 | </configuration>
|
428 | 464 | </plugin>
|
| 465 | + <plugin> |
| 466 | + <groupId>org.codehaus.mojo</groupId> |
| 467 | + <artifactId>properties-maven-plugin</artifactId> |
| 468 | + <version>${maven.properties.plugin.version}</version> |
| 469 | + <executions> |
| 470 | + <execution> |
| 471 | + <phase>pre-integration-test</phase> |
| 472 | + <goals> |
| 473 | + <goal>write-project-properties</goal> |
| 474 | + </goals> |
| 475 | + <configuration> |
| 476 | + <outputFile> |
| 477 | + ${project.build.directory}/pre-integration-test.properties |
| 478 | + </outputFile> |
| 479 | + </configuration> |
| 480 | + </execution> |
| 481 | + </executions> |
| 482 | + </plugin> |
429 | 483 | </plugins>
|
430 | 484 | </build>
|
431 | 485 |
|
|
0 commit comments