1
0
mirror of https://github.com/stucki/docker-lineageos synced 2024-12-19 17:12:29 -05:00
Go to file
Álvaro Brey b728add9bc
Update info links
* CyanogenMod Building Basics served from archive.org as a temporary workaround
* Learning to Build removed as it is only a section within the Building Basics
* Build info for hammerhead changed to LineageOS wiki

Relevant to issue #23
2017-04-19 16:39:49 +02:00
.dockerignore Update .dockerignore 2016-01-22 14:07:29 +01:00
.gitignore Add ccache to .gitignore 2014-07-19 13:40:24 +02:00
android-env-vars.sh Rename user "cmbuild" to "build" 2017-01-03 19:15:12 +01:00
CHANGELOG.md Adjust LineageOS version to cm-14.1 2017-01-03 21:32:46 +01:00
Dockerfile Change all references of "CyanogenMod" to "LineageOS" 2017-01-03 21:32:06 +01:00
LICENSE Add MIT license 2017-01-30 14:56:24 +01:00
README.md Update info links 2017-04-19 16:39:49 +02:00
run.sh Volume compatibility with SELinux-enabled systems 2017-01-21 03:34:20 +01:00
startup.sh Fix ccache initialization check 2017-02-03 10:07:43 +01:00

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/build

NOTES:

  • You will need to install Docker to proceed!
  • If an image does not exist, docker build is executed first
git clone https://github.com/stucki/docker-lineageos.git
cd docker-lineageos
./run.sh

The run.sh script accepts the following switches:

  • -u|--enable-usb - runs the container in privileged mode (this way you can use adb right from the container)
  • -r|--rebuild - force rebuild the image from scratch

The container uses "screen" to run the shell. This means that you will be able to open additional shells using screen keyboard shortcuts.

How to build LineageOS for your device

repo init -u git://github.com/lineageos/android.git -b cm-14.1
repo sync -c -j 16
source build/envsetup.sh
breakfast <device codename>   # example: breakfast grouper
brunch <device codename>      # example: brunch grouper

For further information, check the following links:

More information

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