diff --git a/Dockerfile b/Dockerfile index f938c88..579cc91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1 +1,5 @@ FROM drone/drone:2.12.1 + +COPY entrypoint-wrapper.sh /usr/bin/entrypoint-wrapper + +ENTRYPOINT ["/usr/bin/entrypoint-wrapper"] diff --git a/README.md b/README.md index 525ece0..3f097d4 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ Setup Network & Domains dokku network:create cicd_net dokku network:set cicd initial-network cicd_net + dokku config:set --no-restart cicd DOKKU_LETSENCRYPT_EMAIL=glenux@glenux.net Setup Storage diff --git a/entrypoint-wrapper.sh b/entrypoint-wrapper.sh new file mode 100755 index 0000000..f9d873e --- /dev/null +++ b/entrypoint-wrapper.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +echo "# Entrypoint Wrapper" +echo "- Setting DRONE_DATABASE_DATASOURCE from DATABASE_URL" +DRONE_DATABASE_DATASOURCE="${DATABASE_URL}" +export DRONE_DATABASE_DATASOURCE + +exec /bin/drone-server "$@"