1
0
mirror of https://github.com/stucki/docker-lineageos synced 2024-12-19 17:12:29 -05:00
Go to file
2014-03-02 13:23:18 +01:00
.gitignore Initial commit 2014-02-02 19:19:34 +01:00
build.sh Remove intermediate containers during "docker build" 2014-03-02 13:09:37 +01:00
Dockerfile Fix order of update command during build 2014-03-02 13:23:18 +01:00
README.md Add note on dotcloud/docker#2224 2014-02-20 17:15:51 +01:00
run.sh Fix docker invocation 2014-02-20 20:08:15 +01:00

docker-cyanogenmod

Create a Docker based environment to build CyanogenMod.

This Dockerfile will create a docker container which is based on Ubuntu 12.04. It will install the "repo" utility and any other build dependencies which are required to compile CyanogenMod.

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

NOTE: Remember that CyanogenMod 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 build

NOTES:

  • You will need to install Docker to proceed!
  • When running docker build, the whole folder incl. the "android" working directory is transferred to the Docker daemon. The only way to work around this currently is to move the "android" folder away, then rebuild, and move it back into place again. For more information, see dotcloud/docker#2224.
git clone https://github.com/stucki/docker-cyanogenmod.git
cd docker-cyanogenmod
./build.sh

How to run

cd docker-cyanogenmod
./run.sh

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 CyanogenMod for your device

repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
repo sync
vendor/cm/get-prebuilts
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

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