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

Add basic Podman support #64

Merged

Conversation

nathantypanski
Copy link
Contributor

@nathantypanski nathantypanski commented Dec 16, 2021

Previously, with Podman installed in rootless mode, it-depends crashes telling me I need to apt-get install docker.

Add some basic conditional logic to check for a Podman rootless socket and use it if present. If not found, _try_podman_socket() returns None, the previous value supplied by it-depends for base_url. This should make it backwards-compatible with existing it-depends users.

Resolves #63.

Happy to extend with docs or other changes as needed.

Previously, with Podman installed in rootless mode, it-depends
crashes telling me I need to `apt-get install` docker.

Add some basic conditional logic to check for a Podman rootless socket
and use it if present. If not found, _try_podman_socket() returns
`None`, the previous value supplied by it-depends for base_url. This
should make it backwards-compatible with existing it-depends users.
@CLAassistant
Copy link

CLAassistant commented Dec 16, 2021

CLA assistant check
All committers have signed the CLA.

@woodruffw woodruffw self-requested a review June 29, 2022 18:44
@woodruffw woodruffw added the enhancement New feature or request label Jun 29, 2022
@woodruffw
Copy link
Member

Sorry for the delay here! I'll review this today.

Copy link
Member

@woodruffw woodruffw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I think _try_podman_sock should probably be a module-level helper rather than an instance method (since it doesn't need any instance state), but we can handle that in a refactor.

@woodruffw woodruffw merged commit 67dc3f4 into trailofbits:master Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docker support broken for podman users
3 participants