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 use
cbuildrton our continuous integration build server, so breakages are more noticeable).
- 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 the
container: runtime: docker image: managarm-buildenv src_mount: /var/bootstrap-managarm/src build_mount: /var/bootstrap-managarm/build allow_containerless: true
bootstrap-site.ymlwill instruct our build system to invoke the build scripts within your container image.
Now proceed to the Building section.