Phil пре 2 година
комит
a5611687be
4 измењених фајлова са 59 додато и 0 уклоњено
  1. 7 0
      build/Dockerfile
  2. 40 0
      run/conf/config.yml
  3. BIN
      run/conf/keystore.p12
  4. 12 0
      run/docker-compose.yml

+ 7 - 0
build/Dockerfile

@@ -0,0 +1,7 @@
+FROM nginx
+
+RUN apt update
+RUN apt install android-sdk fdroidserver -y --no-install-recommends
+RUN mkdir -p /usr/share/nginx/html/fdroid/repo
+WORKDIR /usr/share/nginx/html/fdroid
+RUN fdroid init

+ 40 - 0
run/conf/config.yml

@@ -0,0 +1,40 @@
+# see https://gitlab.com/fdroid/fdroidserver/blob/2.0.3/examples/config.yml
+
+sdk_path: /usr/lib/android-sdk
+
+
+apksigner: /usr/bin/apksigner
+
+
+keystore: keystore.p12
+
+
+keystorepass: BYwH80/w/9JmbZ4aGInvjaR1UTKg2+BQftAgV/qZa0Q=
+
+
+keypass: BYwH80/w/9JmbZ4aGInvjaR1UTKg2+BQftAgV/qZa0Q=
+
+
+repo_keyalias: 178d9aa268a8
+
+
+keydname: CN=178d9aa268a8, OU=F-Droid
+
+
+
+repo_url: https://myAwesomeAndFunnyDomain/fdroid/repo
+
+repo_name: Some Basic Fdroid Repo
+
+repo_description: >- 
+  This is an Fdroid repo to show an Fdroid repo with Fdroid and stuff
+
+
+# The repo's icon defaults to a file called 'icon.png' in the 'icons' 
+# folder for each section, e.g. repo/icons/icon.png and 
+# archive/icons/icon.png.  To use a different filename for the icons, 
+# set the filename here.  You must still copy it into place in 
+# repo/icons/ and/or archive/icons/. 
+#
+# repo_icon: myicon.png 
+# archive_icon: myicon.png 

BIN
run/conf/keystore.p12


+ 12 - 0
run/docker-compose.yml

@@ -0,0 +1,12 @@
+version: "3.1"
+
+services:
+    fdroid-repo:
+        image: fdroid-repo
+        ports:
+            - 80:80
+        volumes:
+            - ./apps:/usr/share/nginx/html/fdroid/repo/
+            - ./conf/config.yml:/usr/share/nginx/html/fdroid/config.yml
+            - ./conf/keystore.pk12:/usr/share/nginx/html/fdroid/keystore.pk12
+