2020-10-08 23:21:07 +02:00
|
|
|
#!/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}"
|
|
|
|
|
2020-10-08 23:49:55 +02:00
|
|
|
docker_args="--env=REPOSILITE_OPTS=${REPOSILITE_OPTS}"
|
|
|
|
docker_args="${docker_args} --env=JAVA_OPTS=${JAVA_OPTS}"
|
2020-10-08 23:21:07 +02:00
|
|
|
|
|
|
|
for p in ${DOCKER_PUBLISH} ; do
|
|
|
|
docker_args="${docker_args} --publish=${p}"
|
|
|
|
done
|
|
|
|
|
|
|
|
docker_args="${docker_args} ${DOCKER_REPOSILITE_EXTRA_ARGS}"
|
|
|
|
|
|
|
|
docker run \
|
2020-10-08 23:49:55 +02:00
|
|
|
--mount type=bind,source=/etc/reposilite/reposilite.cdn,target=/app/reposilite-host.cdn \
|
|
|
|
--volume=reposilite-data:/app/data \
|
2020-10-08 23:21:07 +02:00
|
|
|
${docker_args} \
|
|
|
|
--restart=always \
|
|
|
|
--detach=false \
|
|
|
|
--name=reposilite \
|
|
|
|
dzikoysk/reposilite:<VERSION>
|