Sign inSign up

anthodingo/docker-lineageos

By anthodingo

•Updated over 9 years ago

Container to build LineageOS image for any device (if source are availables)

Image
0

1.7K

anthodingo/docker-lineageos repository overview

⁠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="[email protected]" -e PRODUCT="terminalcodename" anthodingo/docker-lineageos:autobuild

or with compose

docker-compose up -d
⁠Variables
VariableDescriptionTypeDefault valueExample
GITUSERUsername for gitRequiredYour Name
GITMAILUser email for gitRequired[email protected]⁠
PRODUCTTerminal code nameRequiredshamu
FORCESYNCForce repo syncoptionalfalse
BRANCHLineageOS Branchoptionalcm-14.1
REPOChange OTA server urloptionalhttps://download.lineageos.org/api⁠https://my.repo.com/api⁠
POSTBUILDPost build script to execoptional/home/build/android/postBuild.sh

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

For further information, check the following links:

⁠More information

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

Tag summary

Content type

Image

Digest

Size

404.5 MB

Last updated

over 9 years ago

docker pull anthodingo/docker-lineageos