I used to run this with --networking=host, but that's no longer viable.
I've tried both localhost and 127.0.0.1. I'm getting connection refused
options:
docker: true
definitions:
services:
redis:
image: redis
rabbitmq:
image: rabbitmq
pipelines:
branches:
master:
- step:
name: Build
services:
- redis
- rabbitmq
script:
- export IMAGE=$ECR/$BITBUCKET_REPO_SLUG
- docker build -t $IMAGE:$BITBUCKET_COMMIT .
- docker run -e REDIS_HOST=127.0.0.1 -e AMQP_URL=amqp://127.0.0.1:5672 --entrypoint rspec $IMAGE:$BITBUCKET_COMMIT app/spec
- docker push $IMAGE:$BITBUCKET_COMMIT
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.