Quantcast
Viewing all articles
Browse latest Browse all 2

Answer by Yeasin Ar Rahman for How to use Rabbit inside a gitlab-ci.yml file?

I used it the following way and it worked for me

image: "ruby:2.3.3" //not required by rabbitmqservices:  - rabbitmq:latestvariables:  RABBITMQ_DEFAULT_USER: guest  RABBITMQ_DEFAULT_PASS: guest  AMQP_URL: 'amqp://guest:guest@rabbitmq:5672'

Now you can use the AMQP_URL env variable to connect to the rabbimq server. The general rule of thumb is any services declared will have the name (e.g. rabbitmq from rabbitmq:latest) as host or url or server. However in case you are running it in your own server or kubernetes cluster it will be localhost or 127.0.0.1. In my humble opinion that might be issue in your code. Hope it helps. :)


Viewing all articles
Browse latest Browse all 2

Trending Articles