moergo-sc / glove80-zmk-config

This repo is the official configuration of the MoErgo Glove80 wireless split contoured keyboard. Use it to develop your own keymap and easily build your own ZMK firmware to run on your Glove80.
MIT License
88 stars 195 forks source link

Add a Dockerfile that allows efficient local builds #9

Closed lpenz closed 7 months ago

lpenz commented 1 year ago

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.

lpenz commented 1 year 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.

chrisandreae commented 8 months ago

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?

lpenz commented 7 months ago

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!