Closed n00bc0der89 closed 4 years ago
It's not going to work if you run Renovate in a container but ask it to connect to localhost. Inside a container localhost IS the container - not your PC that's running Docker.
Is Bitbucket also running within a container? If so then perhaps you can expose it to Renovate from within Docker.
Otherwise you need to follow something like this: https://nickjanetakis.com/blog/docker-tip-65-get-your-docker-hosts-ip-address-from-in-a-container
Thanks rarkins, yeah i had both service running as a container. i could make the renovate locate the bitbucket server using the network mode bridge and using the docker provided IP for the bitbucket server within the renovate config.
Which Renovate are you using?
Renovate docker image
Used this command: docker run --rm -v "C:\Users\XYZ\renovateConfig\renovate.js:/usr/src/app/config.js" -e LOG_LEVEL=debug renovate/renovate
Which platform are you using?
Bitbucket Server I have self hosted this bitbucket server which is running on localhost:7990
Have you checked the logs? Don't forget to include them if relevant
Config file i am using -
Here, openjdk repo under doc project has a Dockerfile.
What would you like to do?
As i am pretty new to renovate and its config, I was expecting renovate to connect the local bitbucket server and scan the repo for the Dockerfile and analyse the version
However, i am facing below error