Lab11 submission#1327
Open
tdzdslippen wants to merge 8 commits into
Open
Conversation
Signed-off-by: tdzdslippen <avlaptev@avito.ru>
Signed-off-by: tdzdslippen <avlaptev@avito.ru>
Signed-off-by: tdzdslippen <avlaptev@avito.ru>
Signed-off-by: tdzdslippen <avlaptev@avito.ru>
Signed-off-by: tdzdslippen <avlaptev@avito.ru>
Signed-off-by: tdzdslippen <avlaptev@avito.ru>
Signed-off-by: tdzdslippen <avlaptev@avito.ru>
Signed-off-by: tdzdslippen <avlaptev@avito.ru>
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.
Goal
Lab 11 (bonus) — reproducible QuickNotes via Nix flake, deterministic OCI image without Docker, and CI gate proving two fresh builds yield identical digests.
Changes
flake.nix+flake.lock— nixpkgsnixos-25.11,buildGo124Modulefor./app(vendorHash = null,CGO_ENABLED=0,-s -w),devShellwith Go 1.24/gopls/golangci-lint.packages.docker—dockerTools.buildImage(nonroot 65532, port 8080, fixedcreatedtimestamp); loadable viadocker load..github/workflows/nix-repro.yml— two parallelnix build .#dockerjobs on ubuntu-24.04 + compare job (bonus).submissions/lab11.md+artifacts/lab11/— reproducibility evidence and design answers a–j.Testing
nixos/nix:2.28.2containers → identical store hashsha256:0wqq4v7dclvfr0n7q09gqw0rr4j11055bf8670pyim8r5yb4bgcm; binary serves/health→{"notes":4,"status":"ok"}.5804a89d1df139024d6d3335fbeabd21fa80ded1f38e5ebcd6d847d1b1e29fb5(2.8 MB); Lab 6docker build --no-cache×2 → different image IDs (~13 MB each).nix-reproworkflow (fill run URL in submission); optional red run by breakingSOURCE_DATE_EPOCHin job A.Checklist
git log --show-signature)submissions/lab11.mdupdated