Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.idea
node_modules
docker-compose.*
**/.idea
**/node_modules
**/docker-compose.*
.dockerignore
4 changes: 4 additions & 0 deletions .env.docker.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ CLIENT_PORT_APP_ROUTER=4400
CLIENT_PORT_PAGES_ROUTER=4401

WATCH="false"

# for development
# MB_RUN_MODE="dev"
# METASTORE_DEV_SERVER_URL=""
7 changes: 4 additions & 3 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
timeout-minutes: 10
name: e2e-tests
env:
PREMIUM_EMBEDDING_TOKEN: ${{ secrets.MB_PRO_SELF_HOSTED_TOKEN }}
PREMIUM_EMBEDDING_TOKEN: ${{ secrets.STAGING_MB_ALL_FEATURES_TOKEN }}
MB_RUN_MODE: dev
METASTORE_DEV_SERVER_URL: ${{ secrets.METASTORE_DEV_SERVER_URL }}
permissions:
id-token: write
contents: read
Expand All @@ -28,8 +30,7 @@ jobs:
- name: Run Sample App in Docker
run: |
cp .env.docker.example .env.docker &&
npm run docker:up -- -d &&
while ! nc -z localhost 4400; do sleep 1; done
npm run docker:e2e:up -- --wait

- name: Install Chrome v111
uses: browser-actions/setup-chrome@v1
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.local-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:
metabase:
volumes:
- type: bind
source: ./local-dist/metabase.jar
target: /app/metabase.jar
read_only: true
bind:
create_host_path: false
22 changes: 17 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
services:
metabase:
build:
context: .
dockerfile: metabase/Dockerfile
image: metabase/metabase-enterprise:v1.56.x
environment:
MB_CONFIG_FILE_PATH: "./app/init-config.yml"
MB_CONFIG_FILE_PATH: "./app/config.yml"
MB_JETTY_PORT: "${MB_PORT}"
MB_EDITION: "ee"
MB_SITE_URL: "http://localhost:${MB_PORT}/"
MB_JWT_SHARED_SECRET: "${METABASE_JWT_SHARED_SECRET}"
MB_SETUP_TOKEN: "${PREMIUM_EMBEDDING_TOKEN}"
MB_PREMIUM_EMBEDDING_TOKEN: "${PREMIUM_EMBEDDING_TOKEN}"
MB_RUN_MODE: "${MB_RUN_MODE}"
METASTORE_DEV_SERVER_URL: "${METASTORE_DEV_SERVER_URL}"
MB_JWT_IDENTITY_PROVIDER_URI: "http://localhost:${AUTH_PROVIDER_PORT}/sso/metabase"
healthcheck:
test: curl --fail -X GET -I "http://localhost:${MB_PORT}/api/health" || exit 1
Expand All @@ -19,6 +19,8 @@ services:
retries: 10
ports:
- "${MB_PORT}:${MB_PORT}"
volumes:
- ./metabase/config.yml:/app/config.yml

next-sample-app-router:
depends_on:
Expand All @@ -38,6 +40,11 @@ services:
NEXT_PUBLIC_METABASE_INSTANCE_URL: "http://localhost:${MB_PORT}"
METABASE_INSTANCE_URL: "http://metabase:${MB_PORT}"
METABASE_JWT_SHARED_SECRET: "${METABASE_JWT_SHARED_SECRET}"
healthcheck:
test: curl --fail -X GET -I "http://localhost:${CLIENT_PORT_APP_ROUTER}/" || exit 1
interval: 2s
timeout: 2s
retries: 5
ports:
- "${CLIENT_PORT_APP_ROUTER}:${CLIENT_PORT_APP_ROUTER}"
volumes:
Expand All @@ -51,7 +58,7 @@ services:
context: .
dockerfile: ./next-sample-pages-router/Dockerfile
args:
PORT: "${CLIENT_PORT_APP_ROUTER}"
PORT: "${CLIENT_PORT_PAGES_ROUTER}"
NEXT_PUBLIC_METABASE_INSTANCE_URL: "http://localhost:${MB_PORT}"
METABASE_INSTANCE_URL: "http://metabase:${MB_PORT}"
METABASE_JWT_SHARED_SECRET: "${METABASE_JWT_SHARED_SECRET}"
Expand All @@ -61,6 +68,11 @@ services:
NEXT_PUBLIC_METABASE_INSTANCE_URL: "http://localhost:${MB_PORT}"
METABASE_INSTANCE_URL: "http://metabase:${MB_PORT}"
METABASE_JWT_SHARED_SECRET: "${METABASE_JWT_SHARED_SECRET}"
healthcheck:
test: curl --fail -X GET -I "http://localhost:${CLIENT_PORT_PAGES_ROUTER}/" || exit 1
interval: 2s
timeout: 2s
retries: 5
ports:
- "${CLIENT_PORT_PAGES_ROUTER}:${CLIENT_PORT_PAGES_ROUTER}"
volumes:
Expand Down
11 changes: 0 additions & 11 deletions metabase/Dockerfile

This file was deleted.

File renamed without changes.
Loading