Commit 2cd172f
committed
feat(docker): unify wrapper helpers, add reproducibility checks, and expand docs
Introduce a shared docker/common.sh helper library and refactor docker_* wrappers
to use consistent image resolution, USB/KVM/X11 handling, and reproducibility
verification. Add new tooling to fetch/pin image digests and improve
documentation for users, developers, and maintainers.
Key changes:
- Add shared docker helper library with Nix setup, image resolution, USB cleanup,
X11/KVM passthrough, and reproducibility comparison logic in
[docker/common.sh](docker/common.sh).
- Add reproducibility verification flow and configurable remote target via
HEADS_CHECK_REPRODUCIBILITY and HEADS_CHECK_REPRODUCIBILITY_REMOTE in
[docker/common.sh](docker/common.sh) and document behavior in [README.md](README.md).
- Provide standalone reproducibility checker in
[docker/check_reproducibility.sh](docker/check_reproducibility.sh).
- Add digest utilities and pinning helpers:
[docker/get_digest.sh](docker/get_digest.sh) and
[docker/pin-and-run.sh](docker/pin-and-run.sh).
- Add a pinned digest file for reproducible builds:
[docker/DOCKER_REPRO_DIGEST](docker/DOCKER_REPRO_DIGEST).
- Add Nix installer fetch helper with checksum guidance:
[docker/fetch_nix_installer.sh](docker/fetch_nix_installer.sh).
- Refactor wrapper scripts to use shared helpers and digest pinning:
[docker_latest.sh](docker_latest.sh),
[docker_local_dev.sh](docker_local_dev.sh),
[docker_repro.sh](docker_repro.sh).
- Update QEMU documentation to prefer Docker wrappers and clarify supported
workflow in [targets/qemu.md](targets/qemu.md).
- Expand README with reproducibility verification, wrapper options, fork/maintainer
overrides, and workflow guidance in [README.md](README.md).
Behavioral highlights:
- docker_latest.sh and docker_repro.sh now resolve pinned digests and validate
against .circleci/config.yml when applicable.
- docker_local_dev.sh can optionally verify reproducibility against a configured
remote image.
- docker/common.sh shows usage when executed directly (meant to be sourced).
Files changed:
- [README.md](README.md)
- [docker/DOCKER_REPRO_DIGEST](docker/DOCKER_REPRO_DIGEST)
- [docker/check_reproducibility.sh](docker/check_reproducibility.sh)
- [docker/common.sh](docker/common.sh)
- [docker/fetch_nix_installer.sh](docker/fetch_nix_installer.sh)
- [docker/get_digest.sh](docker/get_digest.sh)
- [docker/pin-and-run.sh](docker/pin-and-run.sh)
- [docker_latest.sh](docker_latest.sh)
- [docker_local_dev.sh](docker_local_dev.sh)
- [docker_repro.sh](docker_repro.sh)
- [targets/qemu.md](targets/qemu.md)
Signed-off-by: Thierry Laurion <insurgo@riseup.net>1 parent 81dbf23 commit 2cd172f
11 files changed
Lines changed: 2346 additions & 264 deletions
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
0 commit comments