DO NOT MERGE: skeleton docker support #1191
Draft
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.
Essentially a tech demo that does absolutely nothing but throw the current build process, cross compilers and all, into a docker image. It doesn't pin dependencies or use snapshots of the debian repos, but this isn't supposed to be merged anyways. I'll see if I can replace parts of the build system, notably the cross compiler, with prebuilt binaries (verifying the hash ofc).
There's an issue where all files created by this docker image are owned by root, but I was too lazy to fix that. Just make sure to chown -R the relevant directories.
Usage:
To build the docker container:
cd reproducible-builds && docker build -t heads .
To compile heads, from the root directory:
docker run --rm -v $(pwd):/project -w /project heads make BOARD=whatever
Also, is there a reason
install/bin
andinstall/sbin
contain a bunch of files not needed for the build process such as gpg and kexec? They're clearly not the binaries going into the initrd since the hashes don't match but there's no reason for the build process to need gpg.