2018-11-09 09:29:18 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -eo pipefail
|
|
|
|
|
|
|
|
set -a
|
|
|
|
. "${PWD}/repo.conf"
|
|
|
|
set +a
|
|
|
|
|
|
|
|
docker run -it -d \
|
|
|
|
--restart always \
|
2018-11-19 21:43:09 +01:00
|
|
|
-p 80:80 \
|
|
|
|
-p 443:443 \
|
2018-11-10 11:34:16 +01:00
|
|
|
-p 2222:2222 \
|
2018-11-09 09:29:18 +01:00
|
|
|
-v "${PWD}/data/repo:/fdroid/repo" \
|
|
|
|
-v "${PWD}/data/metadata:/fdroid/metadata" \
|
|
|
|
-v "${PWD}/data/keystore:/fdroid/keystore" \
|
2018-11-19 21:43:09 +01:00
|
|
|
-v "/etc/localtime:/etc/localtime:ro" \
|
|
|
|
-e "FDROID_REPO_HOST=${REPO_HOST}" \
|
2018-11-09 09:29:18 +01:00
|
|
|
-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}" \
|
2018-11-10 11:34:16 +01:00
|
|
|
-e "SSH_PUBLIC_KEY=${SSH_PUBLIC_KEY}" \
|
2018-11-09 09:29:18 +01:00
|
|
|
bornholm/fdroid-repository:latest
|