This repo provides 3 dockerfiles:
Dockerfile.env
: Creates the basic environment + current source code, to start a full build. Used to create theswitchroot:env
docker imageDockerfile.build
: Triggers the actual Android build. Based on theswitchroot:env
image. Used to create theswitchroot:build
docker imageDockerfile.build-latest
: Updates the sources retreived when theswitchroot:env
docker image was created and triggers a build. Based on theswitchroot:build
docker image to - hopefully - save some rebuild time.
- Install docker
- Clone/Download this repo
- Either prepend
sudo
to every command after this step, or allow the current user to rundocker
without sudo - Run
./docker-image-env.sh
(Requires internet access. Should take less than an hour with a decent internet connection) - Run
./docker-image.build.sh
(Doesn't require internet access. Should take between 3 to 8 hours, depending on your setup. Once finished building the last Android image, it may take a few more minutes to actually finish the docker command because of the large layer commit times) - Run
./extract-images.sh
. It will copy the required images to~/Downloads/images
- After a successfull build, run
./docker-image.build-latest.sh
(Requires internet access. Should take less time to finish than the first build) - Run
./extract-images.sh
. It will copy the required images to~/Downloads/images