RabbitMQ is my favorite distributed messaging queue and I use it for every new project, sadly I constantly found myself struggling to set it up in Circle-CI since it's not included in the base image.
So this is what I use in my circle.yml
to get it working:
dependencies:
pre:
- echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list
- wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
- sudo apt-get update
- sudo apt-get install rabbitmq-server
- sudo service rabbitmq-server start