Skip to content

Commit c88548c

Browse files
committed
Handle MB_RUN_MODE and METASTORE_DEV_SERVER_URL env vars (#27)
(cherry picked from commit 1ca1197)
1 parent a207ab2 commit c88548c

File tree

7 files changed

+930
-284
lines changed

7 files changed

+930
-284
lines changed

.env.docker.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ CLIENT_PORT_APP_ROUTER=4400
66
CLIENT_PORT_PAGES_ROUTER=4401
77

88
WATCH="false"
9+
10+
# for development
11+
# MB_RUN_MODE="dev"
12+
# METASTORE_DEV_SERVER_URL=""

.github/workflows/e2e-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ jobs:
1717
timeout-minutes: 10
1818
name: e2e-tests
1919
env:
20-
PREMIUM_EMBEDDING_TOKEN: ${{ secrets.MB_PRO_SELF_HOSTED_TOKEN }}
20+
PREMIUM_EMBEDDING_TOKEN: ${{ secrets.STAGING_MB_ALL_FEATURES_TOKEN }}
21+
MB_RUN_MODE: dev
22+
METASTORE_DEV_SERVER_URL: ${{ secrets.METASTORE_DEV_SERVER_URL }}
2123
permissions:
2224
id-token: write
2325
contents: read

docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
metabase:
3-
image: metabase/metabase-enterprise:v1.55.x
3+
image: metabase/metabase-enterprise:v1.56.x
44
environment:
55
MB_CONFIG_FILE_PATH: "./app/config.yml"
66
MB_JETTY_PORT: "${MB_PORT}"
@@ -9,6 +9,8 @@ services:
99
MB_JWT_SHARED_SECRET: "${METABASE_JWT_SHARED_SECRET}"
1010
MB_SETUP_TOKEN: "${PREMIUM_EMBEDDING_TOKEN}"
1111
MB_PREMIUM_EMBEDDING_TOKEN: "${PREMIUM_EMBEDDING_TOKEN}"
12+
MB_RUN_MODE: "${MB_RUN_MODE}"
13+
METASTORE_DEV_SERVER_URL: "${METASTORE_DEV_SERVER_URL}"
1214
MB_JWT_IDENTITY_PROVIDER_URI: "http://localhost:${AUTH_PROVIDER_PORT}/sso/metabase"
1315
healthcheck:
1416
test: curl --fail -X GET -I "http://localhost:${MB_PORT}/api/health" || exit 1

0 commit comments

Comments
 (0)