-
Notifications
You must be signed in to change notification settings - Fork 86
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
Add Containerfile for development #493
base: master
Are you sure you want to change the base?
Conversation
20f1738
to
1dea47d
Compare
ae65ea4
to
50ca7ff
Compare
Add a command to create a Debian-based container with the coreboot, SDCC, and Rust toolchains installed in order to minimize the setup time of a container-based workflow, such as CI. make -C containers podman run -it --rm \ -v $PWD:/workspace:Z \ -v ~/.ccache:/root/.ccache:Z \ system76/firmware-open:latest \ ./scripts/build.sh oryp8 A locally built image is 2.46 GiB. Signed-off-by: Tim Crawford <[email protected]>
I get an error due to not having a |
Host will still need ccache installed, and it seems to be So the example probably needs to be: - -v ~/.ccache:/root/.ccache:Z \
+ -v ~/.cache/ccache:/root/.cache/ccache:Z \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been able to build firmware reliably and flash it using the containerized build several times today. I don't see any reason not to move with this if engineering desires.
Add a command to create a Debian-based container with the coreboot, SDCC, and Rust toolchains installed in order to minimize the workspace setup time and ensure build environments are the same.
A locally built image is 2.46 GiB.
Ref: #463
TODO (later)