Skip to content

Bind-mount host workspace for local podman sessions#191

Open
stbenjam wants to merge 1 commit intobbrowning:mainfrom
stbenjam:workspace-bind-mount
Open

Bind-mount host workspace for local podman sessions#191
stbenjam wants to merge 1 commit intobbrowning:mainfrom
stbenjam:workspace-bind-mount

Conversation

@stbenjam
Copy link
Copy Markdown

@stbenjam stbenjam commented Apr 3, 2026

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.

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>
@stbenjam stbenjam force-pushed the workspace-bind-mount branch from 7cb395f to 1406c09 Compare April 3, 2026 16:10
# 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"])
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I know bind mounts can be finicky with SELinux, so maybe this should be an opt-in thing?

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.

1 participant