gpt4 book ai didi

docker - 如何将插件添加到RabbitMQ Docker镜像?

转载 作者:行者123 更新时间:2023-12-04 03:35:45 26 4
gpt4 key购买 nike

我正在使用https://hub.docker.com/_/rabbitmq/中的rabbitmq:3-management,但是它缺少我需要rabbitmq_delayed_message_exchange的插件。

如果该插件在镜像中不可用,如何启用它?

最佳答案

FROM rabbitmq:3.7-management

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

RUN curl https://dl.bintray.com/rabbitmq/community-plugins/3.7.x/rabbitmq_delayed_message_exchange/rabbitmq_delayed_message_exchange-20171201-3.7.x.zip > rabbitmq_delayed_message_exchange-20171201-3.7.x.zip && \
unzip rabbitmq_delayed_message_exchange-20171201-3.7.x.zip && \
rm -f rabbitmq_delayed_message_exchange-20171201-3.7.x.zip && \
mv rabbitmq_delayed_message_exchange-20171201-3.7.x.ez plugins/

RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange

关于docker - 如何将插件添加到RabbitMQ Docker镜像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52819237/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com