forked from rhboot/shim-review
-
Notifications
You must be signed in to change notification settings - Fork 2
Merge the Dockerfile for reproducible builds #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
sayanchowdhury
wants to merge
27
commits into
main
Choose a base branch
from
sayan/add-dockerfile
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 21 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
479f420
Add Dockerfile
sayanchowdhury 025d1a5
Add the shim.efi and build.log
sayanchowdhury fd25a73
Fix Dockerfile for reproducible
sayanchowdhury b63cfe8
Adapt to include the flatcar-test-ca files
sayanchowdhury b3bc580
Add build.log, shimx64.efi and drop shim.efi
sayanchowdhury 9108823
Update the build.log for the new shim SBAT
sayanchowdhury ccb500e
Update the Dockerfile to use version numbers in binaries
sayanchowdhury 4998a65
Update README.md with the answers
sayanchowdhury c8dece2
README.md: Cosmetic fixes to the QA
sayanchowdhury a5e7784
README.md: Answer a few more questions
sayanchowdhury 178c4ec
README.md: Fix the GRUB SBAT generation question
sayanchowdhury 220e870
README.md: A few mostly cosmetic tweaks
chewi 93a9dfc
README.md: Update answers now our GRUB build includes a -flatcar1 suffix
chewi 6ade498
Dockerfile: Add the build for shim aarch64
sayanchowdhury 4da9dc1
Improve answer on why we cannot use another distro's signed shim
chewi 512b4a8
Remove duplicate answer
chewi 3651e74
Update answers to reflect that we are now using Fedora's GRUB patches
chewi a022c6e
Add additional answers in the README.md
sayanchowdhury 4438a2b
Update the Dockerfile/build.log/flatcar-dev-ca
sayanchowdhury cdff53a
Add the SHA of the shim binary & tarball
sayanchowdhury 72fd5c2
Fix the shim ebuild revision
sayanchowdhury edf2c34
Update README.md based on the PR reviews
sayanchowdhury cf44206
README.md: Clarify verity hash extraction process
chewi 81e0d87
README.md: The search_part_label GRUB module was listed twice
chewi 077ae24
README.md: Add link to our shim patch for building gnu-efi
chewi 2fa1959
Add the CNCF address & tax entries
sayanchowdhury 77574c6
Update the shim urls to tag to a release
sayanchowdhury File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| FROM ghcr.io/flatcar/flatcar-sdk-all:4054.0.0 | ||
|
|
||
| ARG SCRIPTS_REPO_URL=https://github.com/flatcar/scripts.git | ||
| ARG SCRIPTS_WORK_DIR=/mnt/host/source/src/scripts | ||
|
|
||
| # Clone the scripts repo | ||
| WORKDIR /mnt/host/source/src/scripts/ | ||
| RUN git clone $SCRIPTS_REPO_URL . | ||
| RUN git -C $SCRIPTS_WORK_DIR fetch --tags | ||
| RUN git -C $SCRIPTS_WORK_DIR checkout main | ||
|
|
||
| ADD flatcar-dev-ca.der . | ||
|
|
||
| COPY --chown=sdk:sdk . /mnt/host/source/src/scripts | ||
|
|
||
| RUN chown sdk:sdk /mnt/host/source | ||
| RUN ln -s /mnt/host/source/src/scripts/sdk_container/src/third_party /mnt/host/source/src/ | ||
| ENV SOURCE_DATE_EPOCH=1 | ||
| ENV USE=official | ||
| ENV SHIM_SIGNING_CERTIFICATE=/mnt/host/source/src/scripts/flatcar-dev-ca.der | ||
| RUN wget -O /mnt/host/source/.cache/distfiles/shim-15.8.tar.bz2 https://github.com/rhboot/shim/releases/download/15.8/shim-15.8.tar.bz2 | ||
| RUN emerge-amd64-usr --nodeps shim | ||
| RUN emerge-arm64-usr --nodeps shim | ||
|
|
||
| WORKDIR /shim-review | ||
| RUN sha256sum /mnt/host/source/.cache/distfiles/shim-15.8.tar.bz2 | tee shim-tar-bz2.sha256 | ||
| RUN sha256sum /build/amd64-usr/usr/lib/shim/shimx64.efi | tee shimx64-15.8.sha256 | ||
| RUN sha256sum /build/arm64-usr/usr/lib/shim/shimaa64.efi | tee shimaa64-15.8.sha256 | ||
| RUN cp /build/amd64-usr/usr/lib/shim/shimx64.efi shimx64-15.8.efi | ||
| RUN cp /build/arm64-usr/usr/lib/shim/shimaa64.efi shimaa64-15.8.efi | ||
| RUN objcopy --only-section .sbat -O binary shimx64-15.8.efi /dev/stdout | tee sbat-shimx64-15.8.csv | ||
| RUN aarch64-cros-linux-gnu-objcopy --only-section .sbat -O binary /shim-review/shimaa64-15.8.efi /dev/stdout | tee sbat-shimaa64-15.8.csv | ||
| RUN hexdump -Cv shimx64-15.8.efi > shimx64-build | ||
| RUN hexdump -Cv shimaa64-15.8.efi > shima64-build | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.