mirror of
https://gitlab.com/fdroid/docker-executable-fdroidserver.git
synced 2025-01-15 18:52:21 +01:00
fdroidserver all ready to run in a Docker container aka Docker "executable image" https://blog.jessfraz.com/post/docker-containers-on-the-desktop/
1efbfd9f89
Migrate Dockerfile to fdroid/ci-images-base Closes #8 See merge request fdroid/docker-executable-fdroidserver!9 |
||
---|---|---|
.gitlab-ci.yml | ||
Dockerfile | ||
LICENSE | ||
README.md | ||
signing-key.asc |
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