Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ jobs:
echo '```'
echo
echo "Built from image/ as of ${GITHUB_SHA}, tested and published as it was built; the packages of each variant are attached."
echo
echo "The image holds Ubuntu 24.04's packages under their own licenses; each line of the package lists names a package, its version, architecture, source package and source version, whose sources are at https://launchpad.net/ubuntu/+source/SOURCE/VERSION (README, License)."
} > notes.md
gh release create "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --verify-tag \
--title "$GITHUB_REF_NAME" --notes-file notes.md packages-amd64.txt packages-arm64.txt
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,10 @@ docker build -t builder:local image

## License

[The Unlicense](LICENSE). The image itself contains Ubuntu's packages under their own licenses.
[The Unlicense](LICENSE): the Dockerfile and the scripts. The image itself contains Ubuntu 24.04's packages,
unmodified, each under its own licenses (many GPL or LGPL), stated in the image's
`/usr/share/doc/PACKAGE/copyright`. Their sources are Ubuntu's: each release's `packages-ARCH.txt` (in the
image `/usr/share/overpressure-packages.txt`) lists every package with its version and its source package and
version, and every published version of a source package, with its `.dsc`, upstream and Debian archives, is
kept at `https://launchpad.net/ubuntu/+source/SOURCE/VERSION` (also by date on snapshot.ubuntu.com). The
image is a build tool for developers and CI; nothing of it goes onto a headset.
3 changes: 2 additions & 1 deletion image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ RUN set -eu; \
make gcc libc6-dev $cross flex bison bc git perl cpio libssl-dev libelf-dev dwarves device-tree-compiler \
shellcheck; \
rm -rf /var/lib/apt/lists/*; \
dpkg-query -W -f '${Package} ${Version} ${Architecture}\n' | sort > /usr/share/overpressure-packages.txt; \
dpkg-query -W -f '${Package} ${Version} ${Architecture} ${source:Package} ${source:Version}\n' | sort \
> /usr/share/overpressure-packages.txt; \
git config --system --add safe.directory '*' # the checkout (/work, a worktree's /git) is the host user's, git here runs as root
COPY entrypoint.sh /usr/local/bin/overpressure-entrypoint
COPY binfmt.sh /usr/local/bin/overpressure-binfmt
Expand Down
1 change: 1 addition & 0 deletions tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def test_the_image_has_every_script_the_entrypoint_runs(self):
# The base pinned by digest; the packages are what the published image holds.
self.assertRegex(dockerfile, r"FROM ubuntu:24\.04@sha256:[0-9a-f]{64}")
self.assertIn("/usr/share/overpressure-packages.txt", dockerfile)
self.assertIn("${source:Package} ${source:Version}", dockerfile) # each package's source (README)
for package in ("clang-20", "lld-20", "qemu-user-static", "e2fsprogs", "device-tree-compiler"):
self.assertIn(package, dockerfile)

Expand Down
Loading