I have a public docker image which has redis and maven. My Junit testcases access redis-server via unix domain socket. This image has been working fine on gitlab pipeline for more than 1 yr now.
Today I started setting up a pipeline on bitbucket and for some reason my tests now fail with
"Failed connecting to /var/run/redis/redis.sock"
Caused by: java.net.SocketException: No such file or directory
The same docker image I can pull and check locally via redis-cli that it can connect to redis-server via the same UDS.
So in a nutshell
-works on locally running docker
-works on gitlab pipeline
-does not work with bitbucket pipeline.
Does bitbucket pipeline launches these dockers in a special manner that applications do not see anything outside home directory ?
Any known work arrounds... I guess I can test with localhost:6379 but that leaves a bad taste.
Thank you for reaching out to the community.
Would it be possible for you to confirm if you're running your public Docker image (with the redis and maven) as a service container on Pipelines?
Or you're using it as a base Docker image?
If you're using it as a service similar to the public documentation here, I'm afraid it will only be accessible on localhost:6379.
Thanks for the confirmation.
I've tried pulling your public Docker image locally and I did see redis is installed in your Docker image using the redis-cli command.
In this case, would it be possible for you to debug your Pipelines build locally using your public Docker image and perform the JUnit testcases?
Ideally, if it is working locally in a non-interactive shell, it should work as well on Pipelines.
Let me know how it goes.
Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...
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