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
Chirayu Desai c47a594423 git: Set /repo as safe directory
* https://stackoverflow.com/questions/69470009/git-diff-cached-unknown-option-cached
* Fixes
  git.exc.GitCommandError: Cmd('git') failed due to: exit code(129)
    cmdline: git diff --cached --abbrev=40 --full-index --raw
    stderr: 'error: unknown option `cached'
  usage: git diff --no-index [<options>] <path> <path>

Closes #24
2023-07-10 21:52:01 +05:30
.gitlab-ci.yml gitlab-ci: CI_BUILD_* vars were renamed to other things 2023-05-05 12:13:22 +00:00
Dockerfile git: Set /repo as safe directory 2023-07-10 21:52:01 +05:30
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