Repository navigation
Conversation
|
friendly ping @m00qek |
|
Hey, sorry for taking some time to look into this. Everything already runs in containers, you just need CMake to orchestrate the dev tasks... what is it to gain with this other one? |
|
The advantage is that people who don't work with C on a daily basis do not need to install anything in their systems to be able to help the development of this project. Like me, for example ;-) The other advantage is that by having a devcontainer you can manage dependencies and their versions in a controlled environment. So, everyone that works on this project will be using the same versions of any tool and dependencies, potentially minimizing miscommunications like "it works [not] on mine!". I understand the tests all run in containers, and that is not affected by this. This is about a development environment. I would recommend taking a look at https://containers.dev/ for more info. |
Summary
Adds a devcontainer so the project can be developed without installing anything on the host beyond Docker and an editor, and an
.editorconfigso editors follow the repo's whitespace conventions.Everything in the Makefile already runs inside
openwrt/rootfsandopenwrt/sdkimages viadocker run -v $(CURDIR)/..., so the only host-side requirement is a Docker daemon those bind mounts resolve against. The container provides one through the docker-in-docker feature, plusmakeand the docs toolchain.makeandpython3;mkdocs-materialinstalled in/opt/mkdocs, pinned to the version used by.github/workflows/docs.yml.moby: false, since moby packages are not published for Debian trixie); forwards port 8000 formkdocs serve; installs the Docker and EditorConfig extensions.make testdoes not stall on it. The image name is read from the Makefile'sIMAGE_OPENWRTinstead of being duplicated. Best effort, since the daemon may still be starting..ucsources and Makefiles; shell scripts and Markdown use 4 spaces, YAML and thetest/jsonfixtures use 2.Notes
Testing
dockerworks through docker-in-docker.mkdocs build --strictsucceeds with the bundled toolchain.🤖 Generated with Claude Code