Skip to content

Fix VSCode dev container rebuild hang#463

Merged
greenc-FNAL merged 1 commit intomainfrom
maintenance/devcontainer-improvements
Mar 27, 2026
Merged

Fix VSCode dev container rebuild hang#463
greenc-FNAL merged 1 commit intomainfrom
maintenance/devcontainer-improvements

Conversation

@greenc-FNAL
Copy link
Copy Markdown
Contributor

  • Switch remoteUser to root: in rootless Podman the container root maps
    to the host user, eliminating UID/GID conflicts and bind-mount
    permission issues
  • Remove pinned USER_UID/USER_GID and vscode user setup from Dockerfile;
    install podman and socat instead; source /entrypoint.sh from root .bashrc
  • Set userEnvProbe: none to avoid VS Code heredoc env-JSON stall
  • Establish a matching-paths Podman socket proxy via socat in
    ensure-repos.sh (${HOME}/.podman-proxy/podman.sock); bind-mount the
    same path into the container and set DOCKER_HOST/CONTAINER_HOST so
    act and other nested-container tools work correctly
  • Mount host ~/.gnupg to /root/.gnupg and set GNUPGHOME; create
    /run/user/0 with 700 permissions for GPG agent sockets
  • Mount host ~/.config/gh and set GH_CONFIG_DIR for GitHub CLI access
  • Add post-create.sh for one-time container initialization steps
  • Update codespace.code-workspace and dev/jules/prepare-environment.sh

Co-authored-by: greenc-FNAL 2372949+greenc-FNAL@users.noreply.github.com

- Switch remoteUser to root: in rootless Podman the container root maps
  to the host user, eliminating UID/GID conflicts and bind-mount
  permission issues
- Remove pinned USER_UID/USER_GID and vscode user setup from Dockerfile;
  install podman and socat instead; source /entrypoint.sh from root .bashrc
- Set userEnvProbe: none to avoid VS Code heredoc env-JSON stall
- Establish a matching-paths Podman socket proxy via socat in
  ensure-repos.sh (${HOME}/.podman-proxy/podman.sock); bind-mount the
  same path into the container and set DOCKER_HOST/CONTAINER_HOST so
  act and other nested-container tools work correctly
- Mount host ~/.gnupg to /root/.gnupg and set GNUPGHOME; create
  /run/user/0 with 700 permissions for GPG agent sockets
- Mount host ~/.config/gh and set GH_CONFIG_DIR for GitHub CLI access
- Add post-create.sh for one-time container initialization steps
- Update codespace.code-workspace and dev/jules/prepare-environment.sh

Co-authored-by: greenc-FNAL <2372949+greenc-FNAL@users.noreply.github.com>
@greenc-FNAL greenc-FNAL requested a review from knoepfel March 26, 2026 23:13
@greenc-FNAL greenc-FNAL merged commit d2325fb into main Mar 27, 2026
33 checks passed
@greenc-FNAL greenc-FNAL deleted the maintenance/devcontainer-improvements branch March 27, 2026 13:57
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.

2 participants