Repository navigation
chore: reset the repository to the Dev Container Features format - #4
Merged
Merged
Conversation
The repository becomes a collection of Dev Container Features that make debian:sid usable. The upstream Features of the fork are not needed. - Remove every upstream Feature under src/ and every test under test/. - Remove .vscode/, dependabot.yaml and 7 workflows that serve only the upstream Features or need the upstream App secrets. - Add package.json and package-lock.json with @devcontainers/cli, so CI and the dev container run the locked CLI through npx and npm scripts. - Rewrite test-pr, test-all, test-manual, release and validate for debian:sid on ubuntu-latest. Add lint.yaml: shellcheck, a README drift check and a version-bump check. - Add .github/renovate.json, which extends the devops-cli preset. - Rebuild .devcontainer on the devops-cli image by digest. - Rewrite README.md and CONTRIBUTING.md. CODEOWNERS is now @dan-petty. LICENSE keeps the Microsoft line and adds the owner's line. Closes #3
Owner
Author
ProofHead
Version check of lint.yaml, on a probe repositoryThe probe takes the
Feature ids of test-pr.yaml, on the same probeThe step reads the JSON file list of
Other fixes
Not proven here
|
The merge of the reset deletes every file under src/. The push paths filter also matches deleted files, so release.yaml runs on main. devcontainers/action reads ./src with fs.readdir and fails when the folder is missing. The Publish step now runs only when a Feature exists, as in the validate, lint and test-all workflows.
- Set persist-credentials: false on each checkout. The release action makes its tags through the REST API, not with git push. - Give each job a timeout-minutes. Each container test step has a shorter timeout than its job. - The version check assigns the git diff alone, so errexit stops the step when git fails. It also needs a higher version (sort -V). - test-pr.yaml has one paths-filter for src/** and test/**. A step gets the Feature ids from the changed files, so a new Feature needs no workflow edit. - test-all.yaml tests the Features with -f, so the test/_global scenarios run only in the test-global job. - Remove the deprecated positional "." of devcontainer features test. - Renovate updates the devops-cli dev container image only on Monday. - CONTRIBUTING.md tells how a test script passes shellcheck. README.md gives only the Features that the check installed.
dan-petty
marked this pull request as ready for review
November 19, 2026 13:37
dan-petty
added a commit
that referenced
this pull request
Nov 19, 2026
* feat(podman-in-podman): add the podman-in-podman Feature 1.0.0 The Feature runs a Podman engine in the dev container: rootless Podman for the remote user, rootful Podman through sudo. install.sh installs Podman and its tools from the distribution archive with no version pins. The entrypoint nests cgroup v2, makes the runtime directory, fits the subordinate IDs to the user namespace and starts the API socket for dockerCompat and docker-compose. The tests are the default test and nine scenarios. rootless_vscode_keepid also runs in the podman-host job under rootless Podman with keep-id. * ci: test on three base images and fix the review points of PR #4 - test-pr.yaml: the test, test-scenarios and podman-host jobs run on debian:sid, debian:trixie and ubuntu:noble. test-scenarios skips the duplicate test, which ran on ubuntu:focal. A new push stops the tests of the previous push. - test-all.yaml: test each Feature alone on debian:sid, then all Features together. - release.yaml: one publish run at a time. The permissions of release.yaml, test-pr.yaml and lint.yaml have comments. - lint.yaml: semver compares the versions, so 1.1.0 is higher than 1.1.0-rc.1. - README.md: 10 of the 12 checked upstream Features install. * fix(podman-in-podman): make the Feature work on trixie and noble - Set rootless_storage_path in /etc/containers/storage.conf, made from the file of the distribution. containers/storage 1.57 (trixie) and 1.51 (noble) read no storage.rootless.conf.d drop-in. - Make /var/lib/cni. Podman 4 (noble) otherwise mounts its private directory on /var/lib in the rootless network namespace, which hides the rootless storage, so user networks are not found. - Install iptables: netavark 1.4 (noble) runs iptables, not nft. - Install docker-compose-v2 where the archive has it. The docker-compose package of Ubuntu is Compose version 1, which imports distutils. - podman-subid-ranges.sh: keep each extent of the ID map separate. The kernel refuses a subordinate range across two extents, for example 1:1000 with vscode at uid 1001 under keep-id. - podman-init.sh: give the rootless storage to the user before 'podman system migrate', which writes to it. - Tests: check the pasta network mode with podman inspect (Podman 4.9 has no RootlessNetworkCmd in podman info), add the uid 1001 and cross-extent cases of the subid ranges, drop the config grep. * fix(podman-in-podman): mark the end of the entrypoint for the tests The Dev Containers CLI runs the Feature entrypoints after the container prints "Container started", and starts the tests then. The tests could read the state before podman-init.sh ended: a stale docker.sock link, no API socket, no pid file. podman-init.sh now writes /run/podman-in-podman/ready at its end, and each test that needs the entrypoint waits for that file first. * feat(podman-in-podman): make docker run Podman with a rootful API socket and no Docker CLI Remove compose=docker-compose and its packages. dockerCompat installs podman-docker, starts a rootful Podman API service on /run/podman/podman.sock (root:docker 0660) and links /var/run/docker.sock to it. podman-compose is the only compose provider. Move the shared install steps to scripts/podman-common.sh, add the podman-check.sh postStartCommand, the exclusion of podman-outside-podman, slirp4netns, and the docker_compat scenario and restart checks. * fix(podman-in-podman): keep Podman warnings out of the start line and set netavark On ubuntu:noble, the start line of podman-check.sh had a Podman warning in place of the version, over two lines. The check put the stderr of podman into the version text. - podman-check.sh writes the stderr of podman to a temporary file. Only stdout goes into the start line. The last stderr line goes into the failure line. - The containers.conf drop-in sets network_backend = "netavark". The podman package of ubuntu:noble has /etc/cni/net.d/87-podman-bridge.conflist, and the Feature installs no CNI plugins. With no backend set, Podman 4.9 reads that file on a new store and warns, and it selects CNI on a store that has images but no defaultNetworkBackend file. Then 'podman run' fails. - test.sh checks one start line on a store with no backend file, and netavark on a store with images and no backend file. - NOTES.md and README.md tell about the backend. * fix(podman-in-podman): accept only the ready file of the current start Fixes of the review of PR #9. - Under Docker, /run is not a tmpfs, so the ready file of the last start stays after a stop and a start. podman-check.sh accepted it before the entrypoint of this start ran. podman-init.sh now writes the start time of PID 1 (field 22 of /proc/1/stat) to the ready file. podman-check.sh waits until the file holds the start time of the current PID 1. - In dash, the input redirection of the PID check came before 2> /dev/null, so a missing /proc/<pid>/cmdline printed an error line at the start after a restart. The stderr redirection now comes first. - idempotent.sh writes a ready file of an earlier start and checks that podman-check.sh waits until the entrypoint runs, and then passes. - The compose services of compose_podman.sh and docker_compat.sh use init: true. As PID 1, sleep ignores SIGTERM, so each down waited 10 seconds for each container. - NOTES.md and README.md tell about the start time in the ready file. * test(podman-in-podman): keep the cmdline reads of the tests quiet * ci: run the CodeQL analysis of this pull request
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.
Reset the fork to the devcontainers/features format, with no Feature yet. The repository becomes a collection of Features that make debian:sid usable.
src/**andtest/**. A step gets the Feature ids from the changed files, so a new Feature needs no workflow edit.-f, so thetest/_globalscenarios run only in the test-global job.src/**push filter also matches deleted files. devcontainers/action fails when ./src is missing.persist-credentials: false. Each job has atimeout-minutes, and each container test step has a shorter one.*.sh, a README drift check and a version check. The version check needs a higher semver version, and it fails whengit difffails.labels.yml and roadmap.toml do not change.
Deviations from the issue:
devcontainer:v0.179.5@sha256:<digest>, and the scenario regex allows no tag. The tag stays so that Renovate can show the version. The digest pins the image.src/**filter with ids from the diff as Chosen. This PR uses the Chosen design and addstest/**, so a change to a test also runs the tests.Closes #3