Closed lpenz closed 7 months ago
I've been using this Dockerfile for local builds, might as well make it available. It's mostly based on the github workflow in this repository.
I've made some changes to make sure that builds don't end up using an old version of the firmware 'trapped' in the docker container, and to allow specifying a specific branch or tag to build against. Do these look good to you?
Looks good to me - tbh I'm interested in being able to do this, I have no attachment to my particular implementation
TIL RUN <<EOF
, will use it in other projects
Thanks!
The Dockerfile essentially builds a docker image by downloading moergo-sc/zmk and the current main branch of moergo-sc/glove80-zmk-config, and then building the latter to warm up the image's nix store.
When running the image, very little gets downloaded, and the image just builds glove80.uf2 and copies it back to the current directory.
The provided
build.sh
script both builds and runs the docker image, calling docker with the appropriate arguments.