Bind-mount host workspace for local podman sessions#191
Open
stbenjam wants to merge 1 commit intobbrowning:mainfrom
Open
Bind-mount host workspace for local podman sessions#191stbenjam wants to merge 1 commit intobbrowning:mainfrom
stbenjam wants to merge 1 commit intobbrowning:mainfrom
Conversation
For local (non-SSH) podman sessions, bind-mount the host workspace directory directly to /pvc/workspace instead of requiring git remote setup. This makes code immediately available in the container, which is especially important for large repos where git push is slow. SSH remote sessions continue to use the named volume + git remote flow. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7cb395f to
1406c09
Compare
stbenjam
commented
Apr 3, 2026
| # Bind-mount host workspace directly for local sessions (avoids | ||
| # the git-remote sync step, which is slow for large repos). | ||
| if not self._engine.is_remote: | ||
| mounts.extend(["-v", f"{config.workspace}:{CONTAINER_WORKSPACE}:z"]) |
Author
There was a problem hiding this comment.
I know bind mounts can be finicky with SELinux, so maybe this should be an opt-in thing?
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.
For local podman sessions, bind-mount the host workspace directory directly to /pvc/workspace instead of requiring git remote setup. This makes code immediately available in the container, which is especially important for large repos where git push is slow.
SSH remote sessions continue to use the named volume + git remote flow.