Repository navigation
Conversation
template_rocker is a python_template descendant that predates the template having a .devcontainer/, so until now it had none at all. This adds the template's current one unchanged. - The config pulls ghcr.io/blooop/python_template/devcontainer:latest and builds nothing. Launching a branch is a pull, not a build. - It carries no docker feature. template_rocker's tests are pure unit tests -- argparse, snippet retrieval and unittest.mock -- so nothing here talks to a docker daemon and there is nothing for that feature to serve. - "name" sits at the end of the file. It is the only per-repo line, and keeping it away from the image block -- the block the template changes most -- is what keeps future `pixi run update-from-template-repo` merges from conflicting on it. The tree is byte-identical to blooop/python_template#170 apart from that name.
Reviewer's GuideIntroduces the current python_template devcontainer unchanged except for the repository name, with CI building and publishing the image while normal branch launches pull it directly for a zero-build pixi development environment. Sequence diagram for pulling and launching the devcontainersequenceDiagram
actor Developer
participant Launcher as Devcontainer launcher
participant Registry as GHCR registry
participant Container as Pixi devcontainer
participant Host as Host ~/.claude
Developer->>Launcher: Launch branch
Launcher->>Registry: Pull devcontainer:latest
Registry-->>Launcher: Published image
Launcher->>Host: Bind mount ~/.claude
Launcher->>Container: Start with CLAUDE_CONFIG_DIR
Container-->>Developer: Working pixi environment
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
The earlier commit on this branch removed the ~/.config/gh bind mount and
justified it with the claim that the mount never worked -- that `gh` keeps its
token in the system keyring, so the mounted hosts.yml carries no oauth_token.
That claim is false on this machine. ~/.config/gh/hosts.yml carries a real
oauth_token, and in a running container using that mount, with GH_TOKEN and
GITHUB_TOKEN unset, `gh auth status` reports:
Logged in to github.com account blooop (/home/vscode/.config/gh/hosts.yml)
gh writes to a keyring only where one is available and falls back to the file
otherwise, so the keyring claim held for some environment but not this one, and
it got generalised into the config as if it always held.
Nothing broke under `dl`, which is why it went unnoticed: `dl` forwards
GH_TOKEN, devpod applies workspace env after the devcontainer's own, and the
env token wins wherever both are present. The entry paths that lost gh auth
they previously had are the non-`dl` ones -- a plain `devpod up`, and VS Code's
Reopen in Container. So the mount comes back.
The ~/.ssh removal is unaffected and stays removed. It was verified separately
in a live container: devpod forwards an ssh agent at a socket path of its own,
`ssh-add -l` lists the host key, and `git ls-remote` against a git@github.com:
origin succeeds with an empty ~/.ssh. The old hardcoded
SSH_AUTH_SOCK=/home/vscode/.ssh/agent.sock actively overrode that working
forwarded socket, so it stays gone too.
|
Pushed a correction to this branch. The earlier commit removed the Nothing broke under The |
…rek-install Synced from blooop/python_template. The previous postCreateCommand ended in `pixi run prek-install`. This repo does not define that task, so `pixi run` exited 127, the lifecycle hook failed, and container creation failed outright -- the workspace never came up. Found by launching the container; neither JSON validation nor CI sees it. postCreateCommand now calls .devcontainer/post-create.sh, which runs the task only where it exists. The script also seeds known_hosts. devpod forwards an ssh agent, so the host's ~/.ssh does not need mounting -- but the agent carries authentication, not host identity, and on a fresh container the first git operation over an ssh remote died with "Host key verification failed". Interactive users can click through that; scripts, agents and in-container CI cannot.
template_rocker is a python_template descendant that predates the template having a
.devcontainer/, so until now it had none at all. This adds the template's
current one unchanged.
builds nothing. Launching a branch is a pull, not a build.
snippet retrieval and unittest.mock -- so nothing here talks to a docker
daemon and there is nothing for that feature to serve.
it away from the image block -- the block the template changes most -- is what
keeps future
pixi run update-from-template-repomerges from conflicting onit.
The tree is byte-identical to blooop/python_template#170 apart from that name.
Depends on blooop/python_template#170. The image it pulls is already published
and public, so this works before that merges.
dl blooop/template_rockernow gets a working pixi container.🤖 Generated with Claude Code
Summary by Sourcery
Add a zero-build development container that pulls a shared Pixi-enabled image and provides integrated Claude Code tooling for repository work.
New Features:
Enhancements:
Build:
Deployment:
Documentation:
Chores: