Docker image not building even the officially supported ROM[ 16 Nov 2019 ]

Official Docker image mentioned on page “https://doc.e.foundation/how-tos/build-e” is not able to build the device mentioned in the example.

Ran the below command :

sudo docker run
-v “/srv/e/src:/srv/src:delegated”
-v “/srv/e/zips:/srv/zips:delegated”
-v “/srv/e/logs:/srv/logs:delegated”
-v “/srv/e/ccache:/srv/ccache:delegated”
-e “BRANCH_NAME=v1-pie”
-e “DEVICE_LIST=sailfish”
-e “CUSTOM_PACKAGES=‘MuPDF GmsCore GsfProxy FakeStore com.google.android.maps.jar Mail BlissLauncher BlissIconPack MozillaNlpBackend OpenWeatherMapWeatherProvider AccountManager MagicEarth OpenCamera eDrive Weather Notes Tasks NominatimNlpBackend Light DroidGuard OpenKeychain Message Browser BrowserWebView Apps LibreOfficeViewer’”
-e “SIGNATURE_SPOOFING=restricted”
-e “OTA_URL=https://ota.ecloud.global/api”
-e “REPO=https://gitlab.e.foundation/e/os/android.git”
registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:latest

It failed initially for Xiaomi Poco F1 (beryllium)

sudo git clone https://gitlab.com/the-muppets/proprietary_vendor_xiaomi -b lineage-16.0 /srv/e/src/PIE/vendor/xiaomi
sudo git clone https://github.com/LineageOS/android_device_lineage_sepolicy -b lineage-16.0 /srv/e/os/src/PIE/device/lineage/sepolicy

sudo docker run
-v “/srv/e/src:/srv/src:delegated”
-v “/srv/e/zips:/srv/zips:delegated”
-v “/srv/e/logs:/srv/logs:delegated”
-v “/srv/e/ccache:/srv/ccache:delegated”
-e “BRANCH_NAME=v1-pie”
-e “DEVICE_LIST=beryllium”
-e “CUSTOM_PACKAGES=‘GmsCore GsfProxy FakeStore FDroid FDroidPrivilegedExtension com.google.android.maps.jar BlissLauncher BlissIconPack MozillaNlpBackend YahooWeatherProvider WundergroundWeatherProvider AccountManager eDrive Weather Notes Tasks NominatimNlpBackend Light DroidGuard OpenKeychain Message Apps Calender’”
-e “SIGNATURE_SPOOFING=restricted”
-e “OTA_URL=https://ota.ecloud.global/api”
-e “INCLUDE_PROPRIETARY=false”
-e “REPO=https://gitlab.e.foundation/e/os/android.git”
registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:latest

Remark: In original command the back slash was added at the end of the -v lines \
So no wrong docker command

The actual command contain the back slash, it’s just the browser\website escaping them

That’s what I nean.with my remark

what do you mean is still not clear.
was the command that I ran was wrong or the command that is posted in forum seems wrong ?

Sirry, your username has confused me. :cry:

The command with the back slash was ok. But i’m talking only about a supported pie device build NOT about a building of an xiaomi device !!
Could you pls add the log from telegram group ? It’s needed for finding the issue

For posting the log you can use https://del.dog/

It’s fine.

You asked me to build sailfish for Pie and I tried to build and shared my result.
I’ll try to build Xiaomi device once I’m successful in building supported device.

Logs : https://del.dog/cureputopo

Pls use del.dog for all logs. Thx

Sure. Deleted the logs from the post, but the link shared , remains.

It would be better if we sub catagorise devices based on official build versions(nougat / Oreo / Pie) .

Also we should NOT list the devices whose ROMS are not getting built automatically/manually by the Docker environment, without any intervention. Eg : v1-oreo for Tissot is not getting built by Docker image and still the page : https://doc.e.foundation/how-tos/build-e contais its name in the example.

Atleast the examples mentioned should run flawlessly.

Try building using the non docker way with the script created by @andrelam and tested by @harvey186

I am facing the same issue with the docker build.
Got the latest docker image for /e/
Tried building for “kiwi” device as per example in the how to
And ended up with the below error:

OSError: [Errno 17] File exists: ‘/srv/src/NOUGAT/vendor/xiaomi/.git’
onerror(os.listdir, path, sys.exc_info())
File “/usr/lib/python2.7/shutil.py”, line 237, in rmtree
names = os.listdir(path)
OSError: [Errno 2] No such file or directory: ‘/srv/src/NOUGAT/vendor/xiaomi/.git’

Xiaomi devices won’t work because TheMuppets has closed the sources. For Xiaomi device you have to use the build way for ‘lineage unsupported devices’

It’s not working either . I’m testing the one provided by @harvey186.
I’ll be logging bugs for Docker & non-Docker methods not working for building ROM.

You have used my sailfish.sh script and cloned manually the missing policy files and still getting errors ???

After making the changes mentioned by you, getting source from internet was good and smooth.
Sadly, there was a “storage” bottleneck on my PC and it ran out of space while building.

Restarted the process again.
Will share the result by today evening.