This project is no longer actively supported!
<dependency>
<groupId>com.avides.springboot.springtainer</groupId>
<artifactId>springtainer-activemq</artifactId>
<version>2.0.0</version>
<scope>test</scope>
</dependency>
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}
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" />
The container exports multiple labels to analyze running springtainers:
SPRINGTAINER_SERVICE=activemq
SPRINGTAINER_IMAGE=${embedded.container.activemq.docker-image}
SPRINGTAINER_STARTED=$currentTimestamp