Public | Automated Build

Last pushed: a year ago
Short Description
RabbitMQ Server
Full Description

dockerfiles-centos-rabbitmq

CentOS 7 dockerfile for rabbitmq. A user is created with a random password, please see docker output (run or logs) for the current password of user admin.

To build:

Copy the sources down -

# docker build -rm -t <username>/rabbitmq:centos7 .

To run:

# docker run -d -p 5672:5672 -p 15672:15672 <username>/rabbitmq:centos7

Confirm the RabbitMQ server started:

# docker logs 276c0221d0b93a

            RabbitMQ 3.1.5. Copyright (C) 2007-2013 GoPivotal, Inc.
##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
##  ##
##########  Logs: /var/log/rabbitmq/rabbit@276c0221d0b9.log
######  ##        /var/log/rabbitmq/rabbit@276c0221d0b9-sasl.log
##########
              Starting broker... completed with 6 plugins.

Look at the ports associated with the container:

# docker ps
CONTAINER ID        IMAGE                      COMMAND                CREATED             STATUS              PORTS                                              NAMES
01ad9b20d68e        admiller/rabbitmq:centos7   /usr/sbin/rabbitmq-s   9 minutes ago       Up 9 minutes        0.0.0.0:15672->15672/tcp, 0.0.0.0:5672->5672/tcp   grave_albat

To test:

Download the rabbitmqadmin tool from the management interface.

# wget localhost:15672/cli/rabbitmqadmin

# chmod +x rabbitmqadmin 

# ./rabbitmqadmin help subcommands

# ./rabbitmqadmin list users
+-------+------------------------------+---------------+
| name  |        password_hash         |     tags      |
+-------+------------------------------+---------------+
| guest | CkDOzIkuFmtJNeg2AL6T1LiUfmQ= | administrator |
+-------+------------------------------+---------------+
Docker Pull Command
Owner
cakkineni
Source Repository

Comments (0)