I want to test with gitlab-ci.yml
a rpc nameko server.
I can\'t succeed to make work the Rabitt inside .gitlab-ci.yml
::
ima
I used it the following way and it worked for me
image: "ruby:2.3.3" //not required by rabbitmq
services:
- rabbitmq:latest
variables:
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. :)