1
0
mirror of https://github.com/stucki/docker-lineageos synced 2025-01-09 17:39:47 -05:00
docker-lineageos/README.md

65 lines
2.5 KiB
Markdown
Raw Normal View History

docker-lineageos
2014-02-16 13:30:32 +01:00
==================
Create a [Docker] based environment to build [LineageOS].
2014-02-16 13:30:32 +01:00
2017-01-07 00:34:10 +01:00
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).
2014-02-16 13:30:32 +01:00
2014-07-18 20:24:20 +02:00
The main working directory is a shared folder on the host system, so the Docker container can be removed at any time.
2014-02-16 13:30:32 +01:00
**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.
2014-02-16 13:30:32 +01:00
### How to run/build
2014-02-16 13:30:32 +01:00
2014-02-20 17:09:33 +01:00
**NOTES:**
* You will need to [install Docker][Docker_Installation] to proceed!
2014-07-18 23:48:18 +02:00
* If an image does not exist, ```docker build``` is executed first
2014-02-16 13:30:32 +01:00
```
git clone https://github.com/stucki/docker-lineageos.git
cd docker-lineageos
2014-02-16 13:30:32 +01:00
./run.sh
```
2016-04-04 18:55:21 +02:00
The `run.sh` script accepts the following switches:
2016-04-04 20:23:24 +02:00
* -u|--enable-usb - runs the container in privileged mode (this way you can use adb right from the container)
2016-04-04 18:55:21 +02:00
* -r|--rebuild - force rebuild the image from scratch
2014-02-16 13:30:32 +01:00
The container uses "screen" to run the shell. This means that you will be able to open additional shells using [screen keyboard shortcuts][Screen_Shortcuts].
### How to build LineageOS for your device
2014-02-16 13:30:32 +01:00
```
2017-01-03 21:32:46 +01:00
repo init -u git://github.com/lineageos/android.git -b cm-14.1
repo sync -c -j 16
2014-02-16 13:30:32 +01:00
source build/envsetup.sh
breakfast <device codename> # example: breakfast grouper
brunch <device codename> # example: brunch grouper
```
### Links
For further information, check the following links:
* [CyanogenMod Building Basics][Cyanogenmod_Building_Basics]
* [Learning to Build CyanogenMod][Learning_to_Build_CM]
* [Build Instructions for Google Nexus 5][CyanogenMod_Build_Nexus5] (example device, search the wiki for other devices)
2014-02-16 14:44:45 +01:00
### More information
* [Discussion thread @ XDA developers]
2014-02-16 13:30:32 +01:00
==================
[Docker]: https://www.docker.io/
[LineageOS]: http://lineageos.org/
[Docker_Installation]: https://www.docker.io/gettingstarted/
2014-02-16 13:30:32 +01:00
[Screen_Shortcuts]: http://www.pixelbeat.org/lkdb/screen.html
[CyanogenMod_Building_Basics]: http://wiki.cyanogenmod.org/w/Doc:_Building_Basics
[Learning_to_Build_CM]: http://wiki.cyanogenmod.org/w/Development#Learning_To_Build_CM
[CyanogenMod_Build_Nexus5]: http://wiki.cyanogenmod.org/w/Build_for_hammerhead
2014-02-16 14:44:45 +01:00
[Discussion thread @ XDA developers]: http://forum.xda-developers.com/showthread.php?t=2650345
2014-02-20 17:09:33 +01:00
[dotcloud/docker#2224]: https://github.com/dotcloud/docker/issues/2224