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
3 changes: 1 addition & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,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
13 changes: 9 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
services:
metabase:
build:
context: .
dockerfile: metabase/Dockerfile
image: metabase/metabase-enterprise:v1.55.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}/"
Expand All @@ -19,6 +17,8 @@ services:
retries: 10
ports:
- "${MB_PORT}:${MB_PORT}"
volumes:
- ./metabase/config.yml:/app/config.yml

client:
depends_on:
Expand All @@ -35,6 +35,11 @@ services:
environment:
CLIENT_PORT: "${CLIENT_PORT}"
VITE_METABASE_INSTANCE_URL: "http://localhost:${MB_PORT}"
healthcheck:
test: curl --fail -X GET -I "http://localhost:${CLIENT_PORT}/" || exit 1
interval: 2s
timeout: 2s
retries: 5
ports:
- "${CLIENT_PORT}:${CLIENT_PORT}"
volumes:
Expand Down
11 changes: 0 additions & 11 deletions metabase/Dockerfile

This file was deleted.

File renamed without changes.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
"private": true,
"version": "0.0.0",
"scripts": {
"start": "npm run docker:up",
"start": "npm run docker:up -- --build",
"docker:up": "docker compose --env-file .env.docker up",
"docker:down": "docker compose --env-file .env.docker down --rmi all --volumes"
"docker:e2e:up": "yarn docker:up",
"docker:local-dist:up": "docker compose -f docker-compose.yml -f docker-compose.local-dist.yml --env-file .env.docker up",
"docker:down": "docker compose --env-file .env.docker down",
"docker:rm": "yarn docker:down --rmi all --volumes"
}
}