gentoo-overlay/dev-util/reposilite/files/reposilite.sh
Manuel Friedli ac40d234eb
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
dev-util/reposilite: Apply some fixes
Package-Manager: Portage-3.0.4, Repoman-3.0.1
2020-10-08 23:49:55 +02:00

27 lines
744 B
Bash
Executable file

#!/bin/sh
# $DOCKER_REPOSILITE_CONFIG_FILE contains path to the config file
if [[ -z "${DOCKER_REPOSILITE_CONFIG_FILE}" ]] ; then
echo "DOCKER_REPOSILITE_CONFIG_FILE not set!"
exit 1
fi
. "${DOCKER_REPOSILITE_CONFIG_FILE}"
docker_args="--env=REPOSILITE_OPTS=${REPOSILITE_OPTS}"
docker_args="${docker_args} --env=JAVA_OPTS=${JAVA_OPTS}"
for p in ${DOCKER_PUBLISH} ; do
docker_args="${docker_args} --publish=${p}"
done
docker_args="${docker_args} ${DOCKER_REPOSILITE_EXTRA_ARGS}"
docker run \
--mount type=bind,source=/etc/reposilite/reposilite.cdn,target=/app/reposilite-host.cdn \
--volume=reposilite-data:/app/data \
${docker_args} \
--restart=always \
--detach=false \
--name=reposilite \
dzikoysk/reposilite:<VERSION>