This repo provides 3 dockerfiles:
Dockerfile.env: Creates the basic environment + current source code, to start a full build. Used to create theswitchroot:envdocker imageDockerfile.build: Triggers the actual Android build. Based on theswitchroot:envimage. Used to create theswitchroot:builddocker imageDockerfile.build-latest: Updates the sources retreived when theswitchroot:envdocker image was created and triggers a build. Based on theswitchroot:builddocker image to - hopefully - save some rebuild time.
- Install docker
- Clone/Download this repo
- Either prepend
sudoto every command after this step, or allow the current user to rundockerwithout 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