Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/springtainer/springtainer-rabbitmq
RabbitMQ as docker-container for springboot testing
https://github.com/springtainer/springtainer-rabbitmq
rabbitmq spring spring-boot testcontainers testing
Last synced: about 1 month ago
JSON representation
RabbitMQ as docker-container for springboot testing
- Host: GitHub
- URL: https://github.com/springtainer/springtainer-rabbitmq
- Owner: springtainer
- License: mit
- Created: 2018-03-14T13:41:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-26T22:15:26.000Z (over 1 year ago)
- Last Synced: 2024-09-26T20:59:04.681Z (about 2 months ago)
- Topics: rabbitmq, spring, spring-boot, testcontainers, testing
- Language: Java
- Homepage:
- Size: 55.7 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# springtainer-rabbitmq
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.avides.springboot.springtainer/springtainer-rabbitmq/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.avides.springboot.springtainer/springtainer-rabbitmq)
[![Build](https://github.com/springtainer/springtainer-rabbitmq/workflows/release/badge.svg)](https://github.com/springtainer/springtainer-rabbitmq/actions)
[![Nightly build](https://github.com/springtainer/springtainer-rabbitmq/workflows/nightly/badge.svg)](https://github.com/springtainer/springtainer-rabbitmq/actions)
[![Coverage report](https://sonarcloud.io/api/project_badges/measure?project=springtainer_springtainer-rabbitmq&metric=coverage)](https://sonarcloud.io/dashboard?id=springtainer_springtainer-rabbitmq)
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=springtainer_springtainer-rabbitmq&metric=alert_status)](https://sonarcloud.io/dashboard?id=springtainer_springtainer-rabbitmq)
[![Technical dept](https://sonarcloud.io/api/project_badges/measure?project=springtainer_springtainer-rabbitmq&metric=sqale_index)](https://sonarcloud.io/dashboard?id=springtainer_springtainer-rabbitmq)### Dependency
```xml
com.avides.springboot.springtainer
springtainer-rabbitmq
1.4.0
test```
### Configuration
Properties consumed (in `bootstrap.properties`):
- `embedded.container.rabbitmq.enabled` (default is `true`)
- `embedded.container.rabbitmq.startup-timeout` (default is `30`)
- `embedded.container.rabbitmq.docker-image` (default is `rabbitmq:3.11.10-alpine`)
- `embedded.container.rabbitmq.port` (default is `5672`)
- `embedded.container.rabbitmq.virtual-host` (default is `/`)
- `embedded.container.rabbitmq.username` (default is `guest`)
- `embedded.container.rabbitmq.password` (default is `guest`)Properties provided (in `application-it.properties`):
- `embedded.container.rabbitmq.host`
- `embedded.container.rabbitmq.port`Example for minimal configuration in `application-it.properties`:
```
spring.rabbitmq.addresses=${embedded.container.rabbitmq.host}:${embedded.container.rabbitmq.port}
```## Logging
To reduce logging insert this into the logback-configuration:
```xml
```
## Labels
The container exports multiple labels to analyze running springtainers:
- `SPRINGTAINER_SERVICE=rabbitmq`
- `SPRINGTAINER_IMAGE=${embedded.container.rabbitmq.docker-image}`
- `SPRINGTAINER_STARTED=$currentTimestamp`