Rabbitmq install additional plugin during deployment as docker image

  docker, rabbitmq

I am trying to install rabbitmq plugin within the docker image

This is how my Dockerfile looks like:

FROM rabbitmq:3.6-management
RUN apt-get update && apt-get install -y curl
RUN curl https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/v3.8.0/rabbitmq_delayed_message_exchange-3.8.0.ez > $RABBITMQ_HOME/plugins/rabbitmq_delayed_message_exchange-0.0.1.ez
RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange

And this is the error that I am getting

RUN curl https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/v3.8.0/rabbitmq_delayed_message_exchange-3.8.0.ez > $RABBITMQ_HOME/plugins/rabbitmq_delayed_message_exchange-0.0.1.ez
 ---> Using cache
 ---> ca27d6de5d9f
Step 4/4 : RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange
 ---> Running in c9c2d301d142
[91mError: The following plugins could not be found:
  rabbitmq_delayed_message_exchange

[0mService 'rabbitmq' failed to build: The command '/bin/sh -c rabbitmq-plugins enable rabbitmq_delayed_message_exchange' returned a non-zero code: 70

I am not sure what am I doing wrong here :/

Source: Docker Questions

LEAVE A COMMENT