Repository navigation
fix: move devcontainer to the shared python_template image (drops emSign G3) - #75
Merged
Merged
Conversation
The shared image carries the ca-certificates fix that drops emSign ECC Root CA - G3 (CVE-2026-111943). Port python_template's .devcontainer/ and delete the private Dockerfile.
The lock on main no longer matched pyproject.toml, so pixi re-solved it in post-create and every new dl workspace started dirty. This lock is the pixi 0.83 solve (format v7); some package versions change.
post-create now runs `pixi install --frozen`, so a new dl workspace does not rewrite pixi.lock.
Reviewer's GuideThe PR switches development environments from a repository-built, outdated base image to the shared Python template image, inheriting its CA trust remediation and tooling while adding template-compatible post-create and Claude Code setup. It also regenerates Sequence diagram for reproducible devcontainer creationsequenceDiagram
actor Developer
participant DevContainer as Devcontainer
participant Image as SharedImage
participant PostCreate as post-create.sh
participant Pixi as pixi
Developer->>DevContainer: Create workspace
DevContainer->>Image: Pull ghcr.io/blooop/python_template/devcontainer:latest
Image-->>DevContainer: pixi and shared tooling available
DevContainer->>PostCreate: Run post-create.sh
PostCreate->>PostCreate: Seed known_hosts
PostCreate->>Pixi: install --frozen
Pixi-->>PostCreate: Install committed lockfile
PostCreate-->>DevContainer: Clean reproducible workspace
Flow diagram for host Claude Code configurationflowchart LR
Host["Host ~/.claude"] -->|initializeCommand creates directory| Mount["Read-write bind mount"]
Mount --> Container["/home/vscode/.claude"]
Container --> Claude["Claude Code"]
Claude -->|reads and refreshes credentials| Mount
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
devcontainer.json bind-mounts ~/.config/gh, but initializeCommand only created ~/.claude, so docker refused the mount (bind source path does not exist) for anyone who never ran gh on the host. Not testable in the suite; reproduced with devcontainer CLI up against an empty HOME, red before and green after.
The copied comments said to run `pixi run dev-use-local` and `dev-use-prebuilt`, kept a commented build block for the Dockerfile this PR deletes, and pointed at .devcontainer/ci/devcontainer.json. None of those exist in planthood; the ci config lives in python_template.
The user lints and formats with ruff only. Drop pylint from the test feature, the pylint task, the lint and ci task chains and [tool.pylint*], the VS Code extension and task text, the dependabot group, the README and docs mentions and the one pylint:disable comment. requirements.txt listed black as the dev formatter; it now lists ruff. pixi.lock re-locked with pixi 0.83: only pylint and its deps (astroid, dill, isort, mccabe, tomlkit) leave it.
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.
This PR moves the devcontainer to the shared python_template image, so the container no longer trusts emSign ECC Root CA - G3 (CVE-2026-111943).
Evidence
main):Ubuntu 22.04.5 LTS,ca-certificates 20260816ubuntu0.22.04.1, pixi 0.48.2. G3 count0(thecommon-utilsfeature upgrades ca-certificates at build time).pixi run test: 50 passed. After the cold create,git statusshowsM pixi.lock. Colddl: 90 s.a660c8e):Ubuntu 26.04.1 LTS,ca-certificates 20260816ubuntu0.26.04.1, pixi 0.83.0. G3 count0.git statusis clean after the cold create (GIT_DIRTY=0). post-create runspixi install --frozen, so it does not rewrite the lock.pixi lock --checkpasses.pixi run cipasses:ruff check"All checks passed!", 50 tests passed, coverage 82 %.pixi run pre-commit(all hooks, all files) passes.nodejsdependency, not from the image.npm ciandnpm run buildinsite/pass and prerender all/recipe/[id]pages.git statusstays clean after the build.dlfor a new workspace (image already pulled; create, post-create, dotfiles,pixi run ci): 74 s. Other agents used the host at the same time, so these times are high.What this changes
.devcontainer/Dockerfile. It built a private image from an old Microsoft base with an old pixi..devcontainer/from blooop/python_templatemain(withoutci/):"image": "ghcr.io/blooop/python_template/devcontainer:latest",post-create.sh(seedsknown_hosts, runspixi install --frozen), andclaude-code/(forinitializeCommand). The shared image carries pixi, git-lfs, the claude-code feature and the CA fix, so this repo needs no CA block of its own.common-utils:2feature. The shared image already has it.devcontainer.jsonbind-mounts~/.config/ghfrom the host.init-host.sh(theinitializeCommand) now creates~/.config/ghas well as~/.claude. Without it, docker refuses to create the container on a host that has no~/.config/gh("bind source path does not exist").devcontainer.jsoncomments no longer namepixi run dev-use-local,dev-use-prebuilt, a commented build block for the deleted Dockerfile, or a local.devcontainer/ci/devcontainer.json. planthood has none of these. The ci config lives in python_template.pixi.lockwith pixi 0.83 (format v7), as its own commit. Package versions change. The lock onmaindid not matchpyproject.toml(pixi lock --checkfails onmain): it still heldgoogle-generativeaiand its Google API stack after the move togoogle-genai. The new lock hasgoogle-genai 2.33.0and drops the old stack;pydanticgoes to 2.13/2.14.planthood/llm.pyimportsfrom google import genai, so the new lock matches the code.testfeature, thepylinttask, thelintandcitask chains,[tool.pylint*], the VS Code extension and task text, the dependabot group, the README and docs mentions, and onepylint:disablecomment.requirements.txtlistedblackas the dev formatter; it now listsruff. Inpixi.lock, only pylint and its dependencies (astroid, dill, isort, mccabe, tomlkit) go."name": "planthood"as the last key ofdevcontainer.json, as the template asks.The lock change does not touch
build-and-deploy.yml: that workflow installs withpip install -e .andnpm ci, not frompixi.lock. CIci.ymlusesprefix-dev/setup-pixi@v0.9.5with nopixi-version, so it takes the latest pixi, which reads the v7 lock.How I checked it
I did not run the scrape, extract or enrich pipeline stages against the live site or an LLM. The tests cover extract, enrich, schedule and quality on fixtures.
Merge danger
Door: two-way. A revert brings back the old Dockerfile, the old lock and pylint.
Blast radius: small. The new lock changes the package versions that CI and the dev environment install; the tests pass on it. The package code does not change.
Review notes
mainhad:GitHub.copilotandryanluker.vscode-coverage-gutters. A copy that adds them back differs from the template.post-create.shstill calls planthood "this template".claude-code/files (install.sh,README.md,TROUBLESHOOTING.md,devcontainer-feature.json, about 1000 lines) do nothing here: nofeaturesblock uses them. Onlyinit-host.shruns.🤖 Generated with Claude Code