From 3d18ffacb6f87950160b62043d7228dc5d1862f8 Mon Sep 17 00:00:00 2001 From: Mike Gouline <1960272+gouline@users.noreply.github.com> Date: Thu, 20 Jun 2024 21:05:00 +1000 Subject: [PATCH] Rename Dockerfile.metabase and CURL_FLAGS (#263) --- sandbox/{Dockerfile-metabase => Dockerfile.metabase} | 3 ++- sandbox/docker-compose.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) rename sandbox/{Dockerfile-metabase => Dockerfile.metabase} (50%) diff --git a/sandbox/Dockerfile-metabase b/sandbox/Dockerfile.metabase similarity index 50% rename from sandbox/Dockerfile-metabase rename to sandbox/Dockerfile.metabase index ffa9dcba..f30c5b42 100644 --- a/sandbox/Dockerfile-metabase +++ b/sandbox/Dockerfile.metabase @@ -1,8 +1,9 @@ FROM eclipse-temurin:11-jre ARG MB_VERSION +ARG CURL_FLAGS -RUN curl -O https://downloads.metabase.com/v${MB_VERSION}/metabase.jar +RUN curl -O ${CURL_FLAGS} https://downloads.metabase.com/v${MB_VERSION}/metabase.jar EXPOSE 3000 diff --git a/sandbox/docker-compose.yml b/sandbox/docker-compose.yml index 02b7fe8e..2e5e189f 100644 --- a/sandbox/docker-compose.yml +++ b/sandbox/docker-compose.yml @@ -22,9 +22,10 @@ services: metabase: # image: metabase/metabase:latest build: - dockerfile: Dockerfile-metabase + dockerfile: Dockerfile.metabase args: - MB_VERSION=0.50.5 + - CURL_FLAGS=${CURL_FLAGS:-} environment: - MB_SETUP_TOKEN=${MB_SETUP_TOKEN:-} - MB_DB_FILE=/metabase-data/metabase.db