Feat: Added use_host_network param to get_source(), for Docker containers to use host's network#277
Conversation
WalkthroughThe Changes
Sequence Diagram(s)New Flow with
|
6be5e06 to
b2754eb
Compare
There was a problem hiding this comment.
This looks great, Niyas Hameed (@niyasrad)!
Thank you for this contribution. Any reason we should not merge as-is (assuming tests and lint checks pass)?
Since you already adding the description to the docstring, related docs will be updated automatically. 🙏
This comment was marked as outdated.
This comment was marked as outdated.
|
CodeRabbit (@coderabbitai) review |
Actions performedReview triggered.
|
There was a problem hiding this comment.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- airbyte/sources/util.py (3 hunks)
Files not reviewed due to errors (1)
- airbyte/sources/util.py (no review received)
Aaron ("AJ") Steers (@aaronsteers) You can merge as-is if the tests pass, and update the experimental version! I'm excited to use it further 😆 |
|
/test-pr
|
|
Tests passing! Ready to merge! Thanks Niyas Hameed (@niyasrad), for this contribution! |
Aaron ("AJ") Steers (aaronsteers)
left a comment
There was a problem hiding this comment.
Looks great! ✅
What
Adding the
use_host_networkparam so that theDockerExecutorcan run the containers with access to host's network.Why
I've been excited ever since the announcement of the
DockerExecutorexperimental feature, since i wanted to run all the Java connectors and test them out when i have time.I started out with PostgreSQL. I gave it my local postgres configuration and also tried the PUBLIC RNA postgres. But it failed to connect, and gave me the following error:
I made a change over the
get_source()function and it worked flawlessly afterwards.How
use_host_networkinget_source()as a parameter to control whether the Docker container should use the host network.DockerExecutorconfiguration to conditionally include the--network hostoption in the Docker run command.Summary by CodeRabbit