26 lines
776 B
Bash
26 lines
776 B
Bash
#!/bin/bash
|
|
|
|
set -eo pipefail
|
|
|
|
set -a
|
|
. "${PWD}/repo.conf"
|
|
set +a
|
|
|
|
docker run -it -d \
|
|
--restart always \
|
|
-p 80:80 \
|
|
-p 443:443 \
|
|
-p 2222:2222 \
|
|
-v "${PWD}/data/repo:/fdroid/repo" \
|
|
-v "${PWD}/data/metadata:/fdroid/metadata" \
|
|
-v "${PWD}/data/keystore:/fdroid/keystore" \
|
|
-e "FDROID_REPO_HOST=${REPO_HOST}" \
|
|
-e "FDROID_REPO_EMAIL=${REPO_EMAIL}" \
|
|
-e "FDROID_REPO_NAME=${REPO_NAME}" \
|
|
-e "FDROID_REPO_DESCRIPTION=${REPO_DESCRIPTION}" \
|
|
-e "FDROID_KEYSTORE_PASS=${KEYSTORE_PASS}" \
|
|
-e "FDROID_KEYSTORE_KEYPASS=${KEYSTORE_KEY_PASS}" \
|
|
-e "FDROID_KEYSTORE_KEY_ALIAS=${KEYSTORE_KEY_ALIAS}" \
|
|
-e "FDROID_KEYSTORE_DNAME=${KEYSTORE_DNAME}" \
|
|
-e "SSH_PUBLIC_KEY=${SSH_PUBLIC_KEY}" \
|
|
bornholm/fdroid-repository:latest |