fdroid 603 Bytes
Newer Older
Sheogorath's avatar
Sheogorath committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

if ! podman image exists localhost/fdroid:cli; then
  podman build -t localhost/fdroid:cli - <<EOF
FROM docker.io/library/debian:10

RUN true \
    && apt-get update \
    && apt-get install -y fdroidserver apksigner \
    && mkdir -p /repo \
    && true

RUN true \
    && rm /usr/bin/apksigner \
    && printf "#!/bin/sh\njava -jar /usr/lib/android-sdk/build-tools/debian/apksigner.jar" > /usr/bin/apksigner \
    && true

WORKDIR /repo

ENTRYPOINT ["fdroid"]

CMD ["--help"]
EOF
fi


podman run --dns 127.0.0.53 --rm -v "$(pwd):$(pwd)" -w "$(pwd)" --network host localhost/fdroid:cli $@