noxdafox / rabbitmq-message-deduplication

RabbitMQ Plugin for filtering message duplicates
Mozilla Public License 2.0
271 stars 33 forks source link

How to install this plugin via docker-compose? #61

Closed henrique-barreto closed 3 years ago

henrique-barreto commented 4 years ago

Hello,

I have a docker-compose.yml that looks like this:

rabbitmq:
  image: rabbitmq:management
  ports:
    - "5672:5672"
    - "15672:15672"

I'm trying to run this message-deduplication plugin with the docker compose file. Is it possible?

deuzu commented 4 years ago

You have to create a Dockerfile:

FROM rabbitmq:3.7-management

RUN apt-get update && apt-get install -y curl

USER rabbitmq

RUN curl -L https://github.com/noxdafox/rabbitmq-message-deduplication/releases/download/0.4.3/elixir-1.8.2.ez -o $RABBITMQ_HOME/plugins/elixir-1.8.2.ez
RUN curl -L https://github.com/noxdafox/rabbitmq-message-deduplication/releases/download/0.4.3/rabbitmq_message_deduplication-v3.8.x-0.4.3.ez -o $RABBITMQ_HOME/plugins/rabbitmq_message_deduplication-v3.8.x-0.4.3.ez

USER root

RUN apt-get remove -y curl && apt-get autoremove -y

RUN rabbitmq-plugins enable rabbitmq_message_deduplication

and use it in your docker-compose.yaml:

rabbitmq:
    build: ./docker/rabbitmq
noxdafox commented 3 years ago

Thanks @deuzu!

Please use issues only to report bugs or request features. This is not the medium for asking general questions.