Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add connect_with_defaults #370

Merged
merged 1 commit into from
Feb 9, 2024
Merged

Conversation

jalaziz
Copy link
Contributor

@jalaziz jalaziz commented Jan 29, 2024

Add connect_with_defaults function that intelligently selects the best connection method to use based on the DOCKER_HOST and DOCKER_TLS_VERIFY environment variables. This mimics the logic of the Docker CLI.

Fixes #310

Add `connect_with_defaults` function that intelligently selects the best
connection method to use based on the `DOCKER_HOST` and
`DOCKER_TLS_VERIFY` environment variables. This mimics the logic of the
Docker CLI.
@jalaziz
Copy link
Contributor Author

jalaziz commented Jan 29, 2024

I have not tested this yet. Hope to do that sometime this coming week.

@fussybeaver
Copy link
Owner

Thanks for the contribution, I'm away from my computer for a week, but looking through the PR it looks good.

Maybe we can figure out how to test each branch somehow.

@jalaziz
Copy link
Contributor Author

jalaziz commented Feb 3, 2024

I think the best way to test the branches is to use the docker DinD image to launch different docker daemons and attempt to connect.

I'll try to set it up this weekend if I can find some time.

@fussybeaver fussybeaver merged commit 139cdaa into fussybeaver:master Feb 9, 2024
12 checks passed
@fussybeaver
Copy link
Owner

Adding tests in #373

@jalaziz jalaziz deleted the 310 branch February 9, 2024 21:23
@jalaziz
Copy link
Contributor Author

jalaziz commented Feb 9, 2024

Thank you and sorry for not getting to the tests myself 🙏🏼

@jalaziz
Copy link
Contributor Author

jalaziz commented Feb 15, 2024

Hate to be this person, but will there be a new release in the near future?

@fussybeaver
Copy link
Owner

Yeah, we're very close. My only reservation is that we now need to peg to a GitHub revision of the hyperlocal dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Universal" connection method?
2 participants