Skip to content

v0.2.0 - #3

Merged
peaklabs-dev merged 63 commits into
mainfrom
next
Oct 30, 2026
Merged

peaklabs-dev merged 63 commits into
mainfrom
next

Conversation

@peaklabs-dev

@peaklabs-dev peaklabs-dev commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Older SQLite lines, prereleases and four more platforms, reproducible builds, a new release process, and databases that any uid can write.

Breaking Changes

  • Compressed the layers with zstd instead of gzip, pulling the image now needs Docker Engine 23.0 or later

Security

  • Hardened the image against a checkout with a permissive umask, the Dockerfile sets the mode of every file it copies from the repository, so no build can make /usr, /usr/local or /usr/local/bin writable for every user
  • Published the images the tests ran against, every SQLite line is built once for every platform and tested, and a release publishes exactly these builds, not a second build
  • Made release tags immutable
    • Docker Hub refuses to overwrite or delete a release tag such as 3.54.1-v0.2.0
    • GitHub refuses to update, force-push or delete the git tag of a release
  • Hardened the CI workflows
    • Every job gets the least permissions it needs, and every write permission states its reason
    • The Docker Hub credentials live in the release environment, which only the branches that release can use, with a token that can push but not delete
    • The tokens that delete images live in the cleanup environment, which only main can use and a maintainer approves for every run
    • .github/workflows/actions.lock locks every action and the actions it calls to a commit, and the lint job fails when the lockfile is stale
    • The binfmt image is pinned by tag and digest, as it runs privileged and installs the QEMU of every emulated build
    • The workflows allow only the events they use, so pull_request_target, workflow_run and comment events start no run
    • No run uses the GitHub Actions cache, a layer cache or a cached tool binary, so no run restores what another run wrote
    • jactionlint pedantic, which includes the audits of zizmor, lints the workflows and fails on every warning

Added

  • Shell options sqlite.org recommends for a full-featured shell: .recover and .dbinfo, the sqlite_dbpage and sqlite_stmt virtual tables, the sqlite_offset() function, comments in EXPLAIN output and EXPLAIN of statements that call functions the shell does not know
  • Reproducible builds with the new SOURCE_DATE_EPOCH build argument, a rebuild of the same commit gives the same image digest per platform, and the created date of the image and its org.opencontainers.image.created label are the date of that commit
  • Prereleases from next and the release branches, tagged like 3.54.1-v0.2.0-beta.1, and the moving preview tag that points at the newest one
  • Older SQLite lines such as 3.53 next to the newest, built with the same image version and tagged like 3.53.4-v0.2.0, 3.53.4 and 3.53
  • Builds for linux/arm/v6, linux/ppc64le, linux/s390x and linux/386, eight platforms in total

Changed

  • /var/lib/sqlite from mode 0700 to 0777 and new databases to mode 0666, which their -wal and -shm files take, so the application can run as any uid and not only as 65532 or root
  • Name of the build argument BUILD_DATE to CREATED
  • Build argument IMAGE_VERSION from optional to required, a build without it stops in the build stage
  • Alpine in the build stage from 3.24.2 to 3.24.3

Removed

  • SQLITE_UID and SQLITE_GID build arguments, the user is always 65532:65532

Fixed

  • Missing description and license on ghcr.io
    • The release index carries the labels of the image as annotations, where ghcr.io reads them for an image of several platforms
  • SBOM attestation without usable entries for SQLite, tini and BusyBox
    • A syft document in /var/lib/db/sbom lists all three with their versions, licenses, package URLs and CPEs, a scratch image has no package database for the scanner to read
  • LICENSE not matching the AGPL-3.0 text on gnu.org

Maintenance

  • Replaced the release process, RELEASE.md describes it
    • release.json keeps the image versions and src/upstream.json pins SQLite, one entry per line
    • Releases come from main, next, release branches such as release/v0.3 and maintenance branches such as v1.x and v0.1.x
    • scripts/release.sh selects the stage and the version, it offers the versions the branch allows
    • scripts/plan-version.sh plans the image version, the releases and the moving tags, and reports what a push publishes
    • A push of release.json or src/upstream.json publishes the versions they set, unless they are published already
    • latest, preview and every prefix of a SQLite version move to their place among all published tags, so a release of an older line never moves a tag back
    • Every SQLite line is checked twice a day, with one pull request per bump, and a new SQLite release is verified against its release notes and its tagged check-in on sqlite.org
    • main is merged forward into the release branches and next after every release
    • Git tags and GitHub releases have a leading v, such as v3.54.1-v0.2.0, the image tags stay 3.54.1-v0.2.0
  • Added scripts/build.sh to build the image locally with the image version CI builds with, for the platform of the Docker host or the platforms PLATFORM names

- the same commit builds the same image digest (the same image, byte for byte)
- the created date is now the commit date
- .recover, .dbinfo and the sqlite_dbpage and sqlite_stmt virtual tables
- run the upstream check twice per day
- add a concurrency group, cache-mode none and a job name
- set bash as the default shell so a failing command in a pipe fails the step
- improve the pull request title and description
- label the pull request with the bot/upstream label
- run the tests on the branch of the pull request
- close open pull requests for older versions when a new one is opened
- add reproducible builds, PIE and detached runs to comparison.md
- change the SQLite version row to SQLite updates, which now says how each image gets a new release
- say where to report a vulnerability in SQLite, BusyBox or tini
- update the example tags to 3.54.1-v0.2.0
- show the amd64 image size in the size badge and switch tests to the release workflow
- describe the image as a central home for SQLite databases in the introduction
- update what makes this image different
- explain that the application still talks to the database through its own SQLite engine, version and extensions, and what this image does next to it
- drop the uid 65532 note and the user line from the Compose example
- add a section on copying the static sqlite3 shell into other images
- update the example tags to 3.54.1-v0.2.0 and add the preview tag
- bump stable.image or preview.image in release.json instead of IMAGE_VERSION in the Dockerfile
- release from main, next, release and maintenance branches
- allow prereleases with an alpha, beta or rc stage
- offer the versions the branch allows and preselect the bump the commits need
- skip a version another branch released and warn about one a release branch holds
- date the CHANGELOG.md entries only for a stable release
- split the build, test and release workflows
- release on a push that changes release.json or src/upstream.json
- select the releases with scripts/version.sh from release.json and src/upstream.json
- build and test every upstream line for every platform
- publish the tested images instead of a second build
- publish the prereleases of next and the release branches as GitHub prereleases
- take the notes of a first release from CHANGELOG.md and publish it right away, not as a draft
- move the tags scripts/version.sh names on both registries and mark the GitHub release of latest
- read the Docker Hub credentials only in jobs of the release environment
- queue release runs instead of cancelling them, so no run is lost and no two runs move tags at once
- run without the GitHub Actions cache, so no run restores a cache another run poisoned
- run every step with bash, so a failing command in a pipe fails the step
- merge forward after a release
- zstd is faster, more modern and compresses better than gzip, pulling needs Docker Engine 23.0 or later
- a scratch image has no package database, sbom.sh writes a syft JSON document into /var/lib/db/sbom for the scanner
- a build without IMAGE_VERSION stops in the build stage
- it runs privileged and installs QEMU of every emulated build
- without --chmod the image takes the modes of the checkout, which follow the umask of whoever cloned it, so a checkout with umask 000 makes /usr/local/bin writable for every user
- the pull request workflow now calls the build workflow, which no longer runs on pull_request
- a pull request from a fork is built but not published
- ghcr.io reads the description and the license of an image of several platforms from the annotations of its index, not from the labels of each image
- the pull request workflow leaves the images of every closed pull request behind on ghcr.io
- docker_hub is undefined for a manifest ghcr.io has, as a HEAD on docker.io for every one of them could trigger rate limits
- ghcr.io lists deleted versions for 30 days, a HEAD on docker.io for each would reach thousands per run, which could trigger rate limits
- twice the count covers the last two runs, and manifests only docker.io has sort first, so a copy docker.io refused is deleted within two runs
- reads the layouts the build workflow built, so no second build is needed to get the pull request image sizes
- only the commits that bump the image or the SQLite version stay ignored, so a feat change to the release process asks for a minor
- next gets one merge per release, named after its tag, and no merge of main commits that are not released yet
- a push that changes release.json or src/upstream.json stays unbuilt as the release workflow builds it
@github-actions

Copy link
Copy Markdown
Contributor

Image size

pr-3 compared with latest (3.54.1-v0.1.0).

Platform Compressed pr-3 Compressed latest Change On disk pr-3 On disk latest Change
linux/386 1.41 MB - - 4.11 MB - -
linux/amd64 1.40 MB 1.52 MB -117.3 kB (-7.7 %) 4.10 MB 4.15 MB -55.8 kB (-1.3 %)
linux/arm/v6 1.42 MB - - 4.29 MB - -
linux/arm/v7 1.32 MB 1.40 MB -76.4 kB (-5.5 %) 3.36 MB 3.39 MB -31.3 kB (-0.9 %)
linux/arm64 1.42 MB 1.58 MB -165.8 kB (-10.5 %) 4.28 MB 4.37 MB -88.0 kB (-2.0 %)
linux/ppc64le 1.50 MB - - 4.75 MB - -
linux/riscv64 1.46 MB 1.58 MB -119.1 kB (-7.5 %) 3.96 MB 4.02 MB -65.9 kB (-1.6 %)
linux/s390x 1.46 MB - - 4.64 MB - -

Compressed is what docker pull downloads, the CONTENT SIZE of the platform in docker image ls --tree. On disk adds the unpacked files in 4 KiB blocks of ext4, the DISK USAGE that Docker Desktop shows, as the containerd image store keeps both. Neither counts the SBOM and provenance attestations.

@peaklabs-dev
peaklabs-dev marked this pull request as ready for review October 30, 2026 16:19
@peaklabs-dev
peaklabs-dev merged commit 32d0d2c into main Oct 30, 2026
21 checks passed
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.

1 participant