Compare commits

...

2 Commits

Author SHA1 Message Date
Robert Kaussow 3a91b11be2 feat: add container library (#54)
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
Co-committed-by: Robert Kaussow <xoxys@rknet.org>
2021-10-10 15:26:00 +02:00
Renovator Bot 52d6ed530f chore(docker): update thegeeklab/alpine:latest docker digest to 4361bc7
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2021-10-09 20:37:15 +00:00
3 changed files with 10 additions and 7 deletions

View File

@ -1,4 +1,4 @@
FROM thegeeklab/alpine:latest@sha256:46ee7e23b77a597a3839315f2a94e6e8fbb0f39b7d68d575f3c05ecf276a5985
FROM thegeeklab/alpine:latest@sha256:4361bc72c04bea35bb620d3641e73d7794246fac35b94e12049ba166d171d5bd
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"

View File

@ -1,17 +1,20 @@
#!/usr/bin/env sh
# shellcheck disable=SC3040
set -eo pipefail
# shellcheck disable=SC1091
. /usr/local/lib/log.sh
/usr/local/bin/gomplate -o /app/.env -f /etc/templates/env.tmpl
if [ -n "$VAULTWARDEN_DATABASE_URL" ]
then
if [ -n "$VAULTWARDEN_DATABASE_URL" ]; then
WAITFOR_HOST=$(/usr/local/bin/url-parser host --url "$VAULTWARDEN_DATABASE_URL")
WAITFOR_PORT=$(/usr/local/bin/url-parser port --url "$VAULTWARDEN_DATABASE_URL")
printf "Wait for database server on '%s:%s' ...\n" "${WAITFOR_HOST}" "${WAITFOR_PORT:-5432}"
log_info "Wait for database server on '${WAITFOR_HOST}:${WAITFOR_PORT:-5432}'"
/usr/local/bin/wait-for "${WAITFOR_HOST}":"${WAITFOR_PORT:-5432}"
fi
printf "Start Vaultwarden Server ...\n"
log_info "Start Vaultwarden Server\n"
exec /app/vaultwarden

View File

@ -1,10 +1,10 @@
#!/usr/bin/env sh
# shellcheck disable=SC3040
set -eo pipefail
URL=http://127.0.0.1:8080/alive
wget --quiet --tries=1 --spider ${URL}
[ $? -ne 0 ] && exit 1
! wget --quiet --tries=1 --spider ${URL} || exit 1
exit 0