pico-project-generator
pico-project-generator copied to clipboard
Using Docker for generation, build, and development
I started to play around with adding a --docker
flag to the project generator and am looking for feedback on whether it's worth opening a PR. The big benefit of Docker in this case is that users don't have to install or setup dependencies (compilers, cmake, make, or even the Pico SDK) on their machine. Which is one of the biggest pains I've experienced with Pico dev. And it will work exactly the same on Mac, Windows, and Linux across all users. They just need to install Docker.
The --docker
flag would do 3 things.
- Run the project generator inside a Docker container. This means the only dependency a user would have to have on their machine is python to run pico project generator script. The container provides the environment. Project files are still output like normal, via bind mounting to a host path in the container.
-
The generated project can be built in a Docker container. Again, the container provides the build environment. A user can run
python build.py
which builds theuf2
and other binaries in the Docker container that get output to the host machine. - The generated project can be developed in a Docker container. The container provides the development environment with full intellisense, including the Pico SDK. See this for more how dev containers work. Someone has already accomplished this. The project generator would just automate that setup with Docker.
I have a prototype of this implemented, just wondering if others are interested and if I should open a PR? Thanks.
Sounds like a fine idea