Home > database >  Enabling plugins (shovel and stream) while defining my rabbitmq docker container for testcontainers
Enabling plugins (shovel and stream) while defining my rabbitmq docker container for testcontainers

Time:02-05

Does anybody know how can I define a rabbitmq container object with the specified docker image and also enabling the shovel and stream plugins?

I need to use this against my integration tests in order to test out the functionalities.

My code for now is the following:

@Container
protected RabbitMQContainer container = new RabbitMQContainer(DockerImageName.parse("rabbitmq").withTag("3-management"));

CodePudding user response:

Have you tried RabbitMQContainer.withPluginsEnabled?

@Container
protected RabbitMQContainer container = new RabbitMQContainer(DockerImageName.parse("rabbitmq").withTag("3-management"))
   .withPluginsEnabled("rabbitmq_shovel", "rabbitmq_stream");
  • Related