Repository navigation
feat: add support for containers - #97
Open
nmooscisco wants to merge 1 commit into
Open
nmooscisco wants to merge 1 commit into
nmooscisco wants to merge 1 commit into
Conversation
Many distributed systems dependencies are shipped as Docker/OCI container images from upstream, which makes it desirable to be able to repurpose them in a Patchbay test. Docker itself is somewhat annoying to use in this way, as a global daemon has to own all of the network namespaces, but Podman, a mostly Docker-compatible runtime, is able to attach containers to a caller-specified network namespace. In order to enable the use of Podman in both rootless mode and rootful modes, this patch introduces a mechanism for spawning a subprocess in the Podman user namespace via `podman unshare`, then creates Patchbay's user namespace as a child of Podman's. This then enables Patchbay to function as normal, and when a container is spawned, it can be attached to a Patchbay `Device`. This has been tested with both rootless and rootful Podman.
Member
|
Have you seen #45? How does this differ? |
Author
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Many distributed systems dependencies are shipped as Docker/OCI container images from upstream, which makes it desirable to be able to repurpose them in a Patchbay test. Docker itself is somewhat annoying to use in this way, as a global daemon has to own all of the network namespaces, but Podman, a mostly Docker-compatible runtime, is able to attach containers to a caller-specified network namespace.
In order to enable the use of Podman in both rootless mode and rootful modes, this patch introduces a mechanism for spawning a subprocess in the Podman user namespace via
podman unshare, then creates Patchbay's user namespace as a child of Podman's. This then enables Patchbay to function as normal, and when a container is spawned, it can be attached to a PatchbayDevice.This has been tested with both rootless and rootful Podman.