stucki / docker-lineageos Goto Github PK
View Code? Open in Web Editor NEWCreate a Docker based build environment for LineageOS (formerly known as CyanogenMod)
License: MIT License
Create a Docker based build environment for LineageOS (formerly known as CyanogenMod)
License: MIT License
I had trouble downloading some package. Can't remember which one it was. To fix it i add a ~/.curlrc config file with the following entry: --cipher rsa_rc4_128_sha
target thumb C: pppd <= external/ppp/pppd/upap.c
make: *** No rule to make target 'libsrv_init', needed by '/home/build/android/android/out/target/product/maguro/obj/EXECUTABLES/pvrsrvinit_intermediates/pvrsrvinit.o'. Stop.
make: *** Waiting for unfinished jobs....
target thumb C: pppd <= external/ppp/pppd/utils.c
I noticed this image is still running Ubuntu 16.04 Xenial Xerus. Is this necessary for compatibility? If not, are there any plans to update to a newer version?
Would it be possible to add a new flag to the run command that will automatically set the WITH_SU
environment variable to true
?
Something like
./run.sh -ws
in which ws stands for with su
Hi,
After I run ./run.sh, I got error "Directory '/var/run/screen' must have mode 777"
How to solve this problem?
Thanks
Hello ππΏ ,
you do not have python3 (only python2 is available) installed inside the container, so how are you executing the repo tool?
Still the bulid container is a great idea ππΏ
Best wishes
As mentioned in the Cyanogenmod Blog their servers will be shutdown by Cyanogen Inc at the End of 2016. Is this repo compatible with the lineageos fork?
i have try to build lineageos with docker on macOS 10.11.6γthe source tree has alread downloaded on external device. exec ./run.sh and got an error.
Checking build tools versions...
build/core/main.mk:168: ************************************************************
build/core/main.mk:169: You are building on a case-insensitive filesystem.
build/core/main.mk:170: Please move your source tree to a case-sensitive filesystem.
build/core/main.mk:171: ************************************************************
build/core/main.mk:172: *** Case-insensitive filesystems not supported.
build/core/ninja.mk:166: recipe for target '/home/build/android/out/build-cm_hammerhead.ninja' failed
make: *** [/home/build/android/out/build-cm_hammerhead.ninja] Error 1
make: Leaving directory '/home/build/android'
how to fix it?
Would be awesome if you could add cronjobs support to this Docker, by customing two ENV variables:
CRONJOB_TIME="00 12 * * *"
DEVICE_LIST="hammerhead,bullhead"
This would improve a lot for example considering the usage of a nightly build.
Thank you in advance :)
Hi,
i had to install imagemagick as brunch stopped with critical error that this was missing
sudo apt-get install imagemagick
did it
I tried building LineageOS for flo
Hi, thank you for this project, it really helps!
maybe it would be useful for those who are pretty new to android and docker,
that repo sync is much faster if it is 'repo sync -c j5'
and also, that if used together with docker under windows 7, i.e. docker under oracle virtual box, then bug in virtual box will not allow to repo sync to complete (even with options), just some bug in network bridge driver of virtialbox.
in docker for windows on Hyper=V (windows 10) is runs smooth
thank you again for your work, it's great, I use it already almost 2 months
GNU will canonicalize the result whereas OS'x implementation expects a format string.
A solution is to use stat
(from this SO answer).
On my machine this works, otherwise the script will fail at the last step to start the container with the following error:
docker: Error response from daemon: Invalid volume spec ":/srv/ccache": Invalid volume specification: ':/srv/ccache'.
I will be successfully dropped into a screen session inside the container.
Will open PR
Link to archive.org (https://web.archive.org/web/*/https://wiki.cyanogenmod.org/w/Main_Page) for pages or use an alternative.
While building I got an error for a missing standard library. After lots of trial and error I recognized the old path in the error message. Unfortunately I can't post the complete message here right now, cause my build process is just working and I don't want to mess it up. I fixed it by adding the folder /home/cmbuild and set a symlink to /home/build/android/prebuilts/
The error was in the path for gcc arm64. I don't know if it is just for arm64 or not.
I would search for the error, but I have no idea where this false path comes from, because its nowhere in the repository.
Running on a Fedora host, the kernel is built with SELinux. The docker build script fails on the useradd command due to this Ubuntu issue : http://www.fewbytes.com/docker-selinux-and-the-myth-of-kernel-indipendence/
Fix is to replace this
#RUN useradd --create-home cmbuild
with this :
RUN mkdir -p /home/cmbuild && useradd --no-create-home cmbuild && rsync -a /etc/skel/ /home/cmbuild && chown -R cmbuild:cmbuild /home/cmbuild
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files:
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: '/home/build/android/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates': No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
No private recovery resources for TARGET_DEVICE klte
build/core/java.mk:334: warning: overriding commands for target /home/build/android/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java' build/core/java.mk:334: warning: ignoring old commands for target
/home/build/android/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: overriding commands for target /home/build/android/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java' build/core/java.mk:334: warning: ignoring old commands for target
/home/build/android/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/base_rules.mk:316: warning: overriding commands for target /home/build/android/out/target/product/klte/root/res/images/charger/battery_fail.png' build/core/base_rules.mk:316: warning: ignoring old commands for target
/home/build/android/out/target/product/klte/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target /home/build/android/out/target/product/klte/system/etc/clatd.conf' build/core/base_rules.mk:316: warning: ignoring old commands for target
/home/build/android/out/target/product/klte/system/etc/clatd.conf'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/build/android/out/target/product/klte/obj/lib/libtime_genoff.so.toc', needed by '/home/build/android/out/target/product/klte/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/LINKED/libandroid_servers.so', missing and no
known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/build/android'
i had trouble to run the docker image. It failed with
Cannot open your terminal '/dev/console' - please check.
My setup:
To work around this issue i changed the following line in startup.sh
screen -s /bin/bash
to
/bin/bash
I saw that this docker is not listed anywhere on Docker Hub.
Why don't you consider creating an automated build there?
When I try to list the adb devices it returns with an error:
build@976cd17ce1e8:~/android$ adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
???????????? no permissions
It turns out that the adb server has to be started with root privileges, the following does work:
build@976cd17ce1e8:~/android$ sudo adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
build@976cd17ce1e8:~/android$ adb devices
List of devices attached
335b3080 unauthorized
Unauthorized here is normal because I did not give permission to adb on my phone.
docker: Error response from daemon: Invalid volume spec ":/srv/ccache": Invalid volume specification: ':/srv/ccache'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.