Public Repository

Last pushed: a year ago
Short Description
Rabbitmq confd image for deploying a cluster-ready RabbiMQ 3.6 on Rancher
Full Description

RabbitMQ 3.6 Rancher Docker image

This template creates and scales out a RabbitMQ 3.6 cluster.

Dockerfile is at https://github.com/ddmng/catalog-dockerfiles/tree/master/rabbitmq/0.1.0

How it works

The entrypoint calls confd to create /etc/rabbitmq/rabbitmq.config file; in the cluster_nodes directive lists all the running rabbitmq containers so that the node connects to the others and creates or joins the cluster at startup time.

After deploying the first container, you can scale the service adding new container via Rancher UI.

To access the management interface, point a balancer on the 15672 port of this service.

Environment variables

The following environment variables are passed to confd in order to set up RabbitMQ's configuration file:

  • RABBITMQ_CLUSTER_PARTITION_HANDLING: RabbitMQ's cluster handling setting: default set to autoheal
  • RABBITMQ_NET_TICKTIME: adjusts the frequency of both tick messages and detection of failures: default set to 60
  • RABBITMQ_ERLANG_COOKIE: cookie to allow nodes communication: default set to defaultcookiepleasechange

Other two variables are available to fine-tune the cluster or test confd configuration:

  • ALTERNATE_CONF: overrides the whole default confd RabbitMQ template: default set to empty
  • CONFD_ARGS: additional confd args along with default --backend rancher --prefix /2015-07-25: default set to --interval 5

Links

For 0.1.0 version see PR:

For 0.2.0 take a look at https://github.com/ddmng/catalog-dockerfiles/pull/1

Docker Pull Command
Owner
rdaneel

Comments (1)
zway
9 months ago

Having issues with Rancher 1.2.0. Seems that it's not waiting for the datavolume containers to come online before starting the base and conf containers. Get:
(Expected state running but got error: instance is not running : Dependencies readiness error)