fdroidserver all ready to run in a Docker container aka Docker "executable image" https://blog.jessfraz.com/post/docker-containers-on-the-desktop/
Find a file
2025-01-13 20:37:24 +01:00
.forgejo/workflows docker socket as volume 2025-01-13 20:37:24 +01:00
.gitlab-ci.yml gitlab-ci: CI_BUILD_* vars were renamed to other things 2023-05-05 12:13:22 +00:00
Dockerfile Add fdroidserver location to PATH 2024-03-08 18:10:16 +00:00
LICENSE add AGPLv3+ as license (closes #1) 2017-07-16 16:09:42 +02:00
README.md Updated readme with examples 2020-09-11 12:33:52 +00:00
signing-key.asc include fdroidserver signing key for verified releases 2017-09-08 09:33:25 +02:00

For people already setup with Docker, this is a very easy way to run the fdroidserver tools for managing F-Droid repos and building apps. It does not include a full Android SDK, so if you want to use the full Android SDK with this image, you'll need to mount your own local copy.

It can be run using (local user must have access to .cache):

$ docker run --rm -u $(id -u):$(id -g) -v $(pwd):/repo registry.gitlab.com/fdroid/docker-executable-fdroidserver:master

Examples (with Android SDK and as root):

Docker must have access to the android sdk folder as well as the fdroiddata repo folder.

Init your fdroiddata repo (creates config.py in your fdroiddata repo):

cd {your copy of fdroiddata repo}
docker run --rm -v {path to your android sdk}:/opt/android-sdk -v $(pwd):/repo -e ANDROID_HOME:/opt/android-sdk registry.gitlab.com/fdroid/docker-executable-fdroidserver:master init -v

Lint your apps metadata file:

cd {your copy of fdroiddata repo}
docker run --rm -v {path to your android sdk}:/opt/android-sdk -v $(pwd):/repo -e ANDROID_HOME:/opt/android-sdk registry.gitlab.com/fdroid/docker-executable-fdroidserver:master lint {your app id} -v

Optimize your metadata file:

cd {your copy of fdroiddata repo}
docker run --rm -v {path to your android sdk}:/opt/android-sdk -v $(pwd):/repo -e ANDROID_HOME:/opt/android-sdk registry.gitlab.com/fdroid/docker-executable-fdroidserver:master rewritemeta {your app id} -v

Build your app:

cd {your copy of fdroiddata repo}
docker run --rm -v {path to your android sdk}:/opt/android-sdk -v $(pwd):/repo -e ANDROID_HOME:/opt/android-sdk registry.gitlab.com/fdroid/docker-executable-fdroidserver:master build {your app id}:{your app version as integer} -v