I'm trying to use my local docker-compose configuration to run functional tests over a bitbucket pipeline.
Important to say that I was able to download and install docker-compose on the container image and all the containers have been built successfully.
The problem is when one container tries to connect to another container it can't find it's address using the DNS. It seems that they don't share the same network and therefore, I can't access these containers.
here is the error
Trying to connect to server...
Server Error: getaddrinfo ENOTFOUND container1 container1:4000
I have read that bitbucket pipeline uses a bitbucket-pipeline docker plugin to restrict network access, but I can't figure out how to make these 2 containers communicate with each other - which seems like a trivial scenario for testing.
attaching here the docker-compose.yml and bitbucket-pipelines.yml configuration files
# Functional tests
I have created the following bitbucket-pipeline configuration like this:
custom: # defines that this can only be triggered manually or by a schedule
ManualBuild: # The name that is displayed in the list in the Bitbucket Cloud GUI
name: Run Functional Tests
- set -eu
# Add python pip and bash
- apt-get update && apt-get -y install python3-minimal python3-pip
# Install docker-compose via pip
- pip3 install docker-compose
- docker -v
- docker-compose -v
- cd ./services/tests
- docker-compose build tests
- docker-compose run tests
Hello friends! From the community that brought you Welcome Wednesday, Throwback Thursday and Friday Fun, welcome to Taco Tuesday, a weekly discussion about all things Trello. The best part? One Tac...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events