Secure connection from my container to an external database

I have an external database that I connect from my project.
It has firewall that blocks unlisted IPs.

So my question is:
How to get the IP of the container?

Is the IP address the same each time the test run?
What should I do if I don’t know my container IP?

What I’d do is to create an SSH session in CircleCI and do a wget to a web server under your control. You can then get the IP address of the server at Circle’s outside edge.

Or could you install the Lynx browser in the container and search for “what is my IP address”. The question of course is, is it static, or is there a range of exit IP addresses? I don’t know, but you can find out.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.