springtainer-activemq
Attention
This project will only receive dependency updates so long no code changes needed!
Dependency
<dependency>
<groupId>com.avides.springboot.springtainer</groupId>
<artifactId>springtainer-activemq</artifactId>
<version>1.2.0</version>
<scope>test</scope>
</dependency>
Configuration
Properties consumed (in bootstrap.properties
):
embedded.container.activemq.enabled
(default istrue
)embedded.container.activemq.startup-timeout
(default is30
)embedded.container.activemq.docker-image
(default isrmohr/activemq:5.15.9-alpine
)embedded.container.activemq.port
(default is61616
)
Properties provided (in application-it.properties
):
embedded.container.activemq.host
embedded.container.activemq.port
Example for minimal configuration in application-it.properties
:
spring.activemq.broker-url=tcp://${embedded.container.activemq.host}:${embedded.container.activemq.port}
Logging
To reduce logging insert this into the logback-configuration:
<!-- Springtainer -->
<logger name="com.github.dockerjava.jaxrs" level="WARN" />
<logger name="com.github.dockerjava.core.command" level="WARN" />
<logger name="org.apache.http" level="WARN" />
Labels
The container exports multiple labels to analyze running springtainers:
SPRINGTAINER_SERVICE=activemq
SPRINGTAINER_IMAGE=${embedded.container.activemq.docker-image}
SPRINGTAINER_STARTED=$currentTimestamp