Skip to content

Create a Docker based build environment for LineageOS (formerly known as CyanogenMod)

License

Notifications You must be signed in to change notification settings

AnthoDingo/docker-lineageos

 
 

Repository files navigation

docker-lineageos

Create a Docker based environment to build LineageOS.

This Dockerfile will create a docker container which is based on Ubuntu 16.04. It will install the "repo" utility and any other build dependencies which are required to compile LineageOS (formerly known as CyanogenMod).

The main working directory is a shared folder on the host system, so the Docker container can be removed at any time.

NOTE: Remember that LineageOS is a huge project. It will consume a large amount of disk space (~80 GB) and it can easily take hours to build.

How to run

NOTES:

How to build LineageOS for your device

docker run -d --name lineageos -v ./android:/home/build/android:z -v ./ccache:/srv/ccache:z -e GITUSER="Your Name" -e GITMAIL="you@exeample.com" -e PRODUCT="terminalcodename" anthodingo/docker-lineageos:autobuild

or with compose

docker-compose up -d

Variables

Variable Description Type Default value Example
GITUSER Username for git Required Your Name
GITMAIL User email for git Required you@example.com
PRODUCT Terminal code name Required shamu
FORCESYNC Force repo sync optional false
BRANCH LineageOS Branch optional cm-14.1
REPO Change OTA server url optional https://download.lineageos.org/api https://my.repo.com/api
POSTBUILD Post build script to exec optional /home/build/android/postBuild.sh

Make sure your script has 754 access to user 1000:1000

Links

For further information, check the following links:

More information

==================

About

Create a Docker based build environment for LineageOS (formerly known as CyanogenMod)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%