From db60427e217c4987d639b4ce95f189c04fb68529 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 9 Jan 2023 14:29:08 +0100 Subject: [PATCH] root: show error when geoIP download fails Signed-off-by: Jens Langhammer --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8ccbd20e3..edab55afb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,6 +50,7 @@ RUN go build -o /work/authentik ./cmd/server/ FROM docker.io/maxmindinc/geoipupdate:v4.10 as geoip ENV GEOIPUPDATE_EDITION_IDS="GeoLite2-City" +ENV GEOIPUPDATE_VERBOSE="true" RUN --mount=type=secret,id=GEOIPUPDATE_ACCOUNT_ID \ --mount=type=secret,id=GEOIPUPDATE_LICENSE_KEY \ @@ -57,7 +58,7 @@ RUN --mount=type=secret,id=GEOIPUPDATE_ACCOUNT_ID \ /bin/sh -c "\ export GEOIPUPDATE_ACCOUNT_ID=$(cat /run/secrets/GEOIPUPDATE_ACCOUNT_ID); \ export GEOIPUPDATE_LICENSE_KEY=$(cat /run/secrets/GEOIPUPDATE_LICENSE_KEY); \ - /usr/bin/entry.sh || exit 0 \ + /usr/bin/entry.sh || echo 'Failed to get GeoIP database, disabling'; exit 0 \ " # Stage 6: Run