Building with Docker
This section explains how to build Managarm in a Docker environment.
Note: we recommend using
cbuildrtinstead of Docker as it is faster, requires less privileges and is better tested (we usecbuildrton our continuous integration build server, so breakages are more noticeable).
- Complete the Preparations section.
- Install Docker.
- Build a Docker image from the provided Dockerfile:
docker build -t managarm-buildenv --build-arg=USER=$(id -u) src/docker - Create a
bootstrap-site.ymlfile inside thebuilddirectory containing:
Thiscontainer: runtime: docker image: managarm-buildenv src_mount: /var/bootstrap-managarm/src build_mount: /var/bootstrap-managarm/build allow_containerless: truebootstrap-site.ymlwill instruct our build system to invoke the build scripts within your container image.
Now proceed to the Building section.