FORUMS
Remove All Ads from XDA

[DEV] Docker template for building CyanogenMod

218 posts
Thanks Meter: 197
 
By michael_ch, Senior Member on 16th February 2014, 02:03 PM
Post Reply Email Thread
14th March 2016, 02:27 AM |#81  
OP Senior Member
Thanks Meter: 197
 
More
FYI: I've pushed another update which is necessary after CyanogenMod now requires "maven" to build.
The Following 2 Users Say Thank You to michael_ch For This Useful Post: [ View ] Gift michael_ch Ad-Free
 
 
5th April 2016, 10:37 PM |#82  
OP Senior Member
Thanks Meter: 197
 
More
FYI: You can now run adb from within the Docker container. See README.md.
The Following 2 Users Say Thank You to michael_ch For This Useful Post: [ View ] Gift michael_ch Ad-Free
18th April 2016, 04:28 PM |#83  
Senior Member
Thanks Meter: 45
 
More
@michael_ch can I build Cyanogenmod with another Device and Kernel tree than the CM one?
19th April 2016, 12:29 PM |#84  
OP Senior Member
Thanks Meter: 197
 
More
Quote:
Originally Posted by philipp21897

@michael_ch can I build Cyanogenmod with another Device and Kernel tree than the CM one?

I believe you can, just like you could build any Android based system with this container. So it's not limited to building CyanogenMod, even if that's the only thing that I've done with it...
28th April 2016, 02:23 PM |#85  
cb5264's Avatar
Member
Thanks Meter: 7
 
Donate to Me
More
I tried to run the docker image and run into a permission problem with ~/android, so
Code:
repo init -u git://github.com/CyanogenMod/android.git -b cm-13.0
would bail out. Fixed this using the well known
Code:
sudo -i
to gain root and do a simple chown as a fix.
7th July 2016, 02:53 PM |#86  
roshan2989's Avatar
Senior Member
Flag Purgatory
Thanks Meter: 145
 
More
Does this support the latest version of ubuntu? 16.04LTS
7th July 2016, 03:44 PM |#87  
OP Senior Member
Thanks Meter: 197
 
More
Quote:
Originally Posted by roshan2989

Does this support the latest version of ubuntu? 16.04LTS

As far as I know, Ubuntu 16.04 ships only with OpenJDK 8, however you require the older version 7 to build CyanogenMod 13.0.
Therefore, the project is currently using Ubuntu 14.04 as its base.

For more info, see http://review.cyanogenmod.org/#/c/141571/ and https://bugs.launchpad.net/ubuntu/+s...7/+bug/1563986
20th August 2016, 11:12 PM |#88  
OP Senior Member
Thanks Meter: 197
 
More
FYI: Meanwhile Ubuntu 16.04 / OpenJDK 8 work fine for building CyanogenMod 13.0.
I've just pushed a new release which is based on Ubuntu 16.04. See https://github.com/stucki/docker-cyanogenmod
The Following 2 Users Say Thank You to michael_ch For This Useful Post: [ View ] Gift michael_ch Ad-Free
6th October 2016, 09:54 PM |#89  
Member
Thanks Meter: 47
 
More
I assume this container takes ~80GB. Is it possible to trim down this download size ? Any suggestion?
6th October 2016, 10:01 PM |#90  
OP Senior Member
Thanks Meter: 197
 
More
The system in the container is relatively small. The huge size is caused by CyanogenMod/AOSP sources. That means, the size wouldn't be any smaller if you download & build CyanogenMod on any other host.
18th November 2016, 09:13 PM |#91  
Recognized Contributor
Flag Aachen
Thanks Meter: 1,160
 
More
Great to have a ready-to-go docker image for building! Was just about to do one myself, but first took a look around (just didn't want to reinvent the wheel...). One thing though, it's not necessary to rsync /etc/skel to the home of cmbuild. If you call useradd with the switch -m, /home/cmbuild will get created by useradd including the copying of the skeleton files. You can even take it a step further and add your scripts like startup.sh and folders to /etc/skel before doing the useradd, then you don't need to do the permission fixing in the end (just as an idea).
EDIT: And you're missing vim in your image (just my favourite command line editor...)
Post Reply Subscribe to Thread

Tags
build, compile, cyanogenmod, docker

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes