This information includes some details to run the Tanzu RabbitMQ OCI image.
Follow these steps:
ImportantThe Tanzu RabbitMQ OCI is a container image that you can run in a container runtime of your choice. This allows for a quick and lightweight deployment of a standalone Tanzu RabbitMQ or a small RabbitMQ cluster using multiple containers. It is important to note that this Tanzu RabbitMQ solution should really only be used if you don't have a Kubernetes environment available or you are using non-Kubernetes container orchestration. Your first choice solution should be the Kubernetes operator for RabbitMQ, which offers complete management of RabbitMQ clusters. For more information about the Tanzu RabbitMQ for Kubernetes offering or to get a quote, visit the Tanzu RabbitMQ Product Page.
The following is a list of some common container runtimes that you can use to run the Tanzu RabbitMQ OCI image.
docker
with podman
in commands.)docker
with nerdctl
in commands.)The following list are some reasons for choosing Podman as your runtime container.
Complete the following steps to access the login credentials and docker images for your release.
--oom-score-adj
parameter (mandatory).-e
parameter: for the erlang cookie. The file can also be copied to the container. For single containers it doesn't matter (optional).-h
parameter to provide the rabbitmq hostname. This parameter is only relevant for clustering (optional)./var/lib/rabbitmq/
./etc/rabbitmq/conf.d/90-userDefinedConfiguration.conf
./etc/rabbitmq/enabled_plugins
./etc/rabbitmq-tls/server_certificate.pem
, /etc/rabbitmq-tls/server_key.pem
and /etc/rabbitmq-tls/ca_certificate.pem
Run the Tanzu RabbitMQ OCI image by running one of the following commands depending on the variant that you are using. These examples are for the 3.13.3 release.
AMD64
docker run rabbitmq.packages.broadcom.com/vmware-tanzu-rabbitmq:3.13.3
ARM64
docker run rabbitmq.packages.broadcom.com/vmware-tanzu-rabbitmq-arm64:3.13.3
AMD64 with FIPS enabled
docker run rabbitmq.packages.broadcom.com/vmware-tanzu-rabbitmq-fips:3.13.3
ARM64 with FIPS enabled
docker run rabbitmq.packages.broadcom.com/vmware-tanzu-rabbitmq-arm64-fips:3.13.3
Run the Tanzu RabbitMQ OCI image with the appropriate tag. The tags are -arm64,
-fips, and
-arm64-fips` The full commands are included here, you will only be running one of these commands based on the variant you are using. These examples are for the 3.13.3 release.
**AMD64**
podman run rabbitmq.packages.broadcom.com/vmware-tanzu-rabbitmq:3.13.3
ARM64
podman run rabbitmq.packages.broadcom.com/vmware-tanzu-rabbitmq-arm64:3.13.3
AMD64 with FIPS enabled
podman run rabbitmq.packages.broadcom.com/vmware-tanzu-rabbitmq-fips:3.13.3
ARM64 with FIPS enabled
podman run rabbitmq.packages.broadcom.com/vmware-tanzu-rabbitmq-arm64-fips:3.13.3
The following example runs the OCI image (container runtime is podman) using the configuration parameters list in Configuration.
podman run --cgroups=no-conmon --rm --sdnotify=conmon -d --replace -it --oom-
score-adj=200 --name rabbitmq -p 4369:4369 -p 5672:5672 -p 5671:5671 -p 5552:5552 -p
5551:5551 -p 15672:15672 -p 15671:15671 -p 25672:25672 -v
/data/rabbitmq/etc:/etc/rabbitmq -v /data/rabbitmq/logs:/var/log/rabbitmq -v
/data/rabbitmq/data:/var/lib/rabbitmq/ -e
RABBITMQ_ERLANG_COOKIE=RXFKEYUZJMKCJJVPXHON -h rmq3 -d
rabbitmq.packages.broadcom.com/vmware-tanzu-rabbitmq:3.13.3
To turn on systemd services so that every time your machine restarts your RabbitMQ cluster is up and running:
podman generate systemd --name rabbitmq --files --new
To allow for systemd services to start at boot without login (and continue running after logout) for individual users, turn on "lingering" using loginctl enable-linger <username>
. For more information, go to the podman-generate-systemd manpages.
$XDG_RUNTIME_DIR
defines the base directory relative to which user-specific non-essential runtime files and other file objects (such as sockets, named pipes, and so on) should be stored. The directory MUST be owned by the user, and the owner MUST be the only one that has read and write access to it. It is a Unix access mode, which MUST be 0700.
In full:
podman generate systemd --name rabbitmq --files --new
loginctl enable-linger $USER
export XDG_RUNTIME_DIR=/run/user/$(id -u)
systemctl --user daemon-reload
systemctl --user enable container-rabbitmq.service
systemctl --user restart container-rabbitmq.service
Follow these instructions to setup and configure Warm Standby Replication.
Go to: