Skip to content

Commit

Permalink
simplify 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuratczyk committed Jan 23, 2025
1 parent 43a8dec commit 4da5729
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions packaging/docker-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,4 @@ COPY --chown=rabbitmq:rabbitmq 10-defaults.conf 20-management_agent.disable_metr
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]

EXPOSE 4369 5671 5672 15691 15692 25672
CMD ["rabbitmq-server"]


RUN set eux; \
rabbitmq-plugins enable --offline rabbitmq_management; \
# make sure the metrics collector is re-enabled (disabled in the base image for Prometheus-style metrics by default)
rm -f /etc/rabbitmq/conf.d/20-management_agent.disable_metrics_collector.conf; \
# grab "rabbitmqadmin" from inside the "rabbitmq_management-X.Y.Z" plugin folder
# see https://github.com/docker-library/rabbitmq/issues/207
cp /plugins/rabbitmq_management-*/priv/www/cli/rabbitmqadmin /usr/local/bin/rabbitmqadmin; \
[ -s /usr/local/bin/rabbitmqadmin ]; \
chmod +x /usr/local/bin/rabbitmqadmin; \
apt-get update; \
apt-get install -y --no-install-recommends python3; \
rm -rf /var/lib/apt/lists/*; \
rabbitmqadmin --version

EXPOSE 15671 15672

0 comments on commit 4da5729

Please sign in to comment.