Compare commits

...

8 Commits

Author SHA1 Message Date
Romeo Van Snick
8c72149945 Rename docker-compose.yml to compose.yml for better compatibility with python-runner repo 2025-09-29 21:08:08 +10:00
Romeo Van Snick
350e69e4e9 Add RUN_MODE to python-runner 2025-09-29 21:08:08 +10:00
Romeo Van Snick
ad9e3af2cd Disable limits in local dev 2025-09-29 21:08:08 +10:00
Romeo Van Snick
9bc2f603e2 Remove python runner dir in CI 2025-09-29 21:08:08 +10:00
Romeo Van Snick
b9e1f5774d Set up the python runner bucket 2025-09-29 21:08:07 +10:00
Romeo Van Snick
0e93fb8dbc Add missing setting 2025-09-29 21:08:07 +10:00
Romeo Van Snick
92e9305d20 Import python runner in Cypress docker compose file 2025-09-29 21:08:07 +10:00
Romeo Van Snick
df4a0869b5 Add docker-compose file for python-runner 2025-09-29 21:08:07 +10:00
4 changed files with 43 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ while [[ $# -gt 0 ]]; do
done
echo "Cloning python-runner repository..."
rm -r python-runner
git clone --depth 1 https://${METABASE_AUTOMATION_USER_TOKEN}@github.com/metabase/python-runner-container.git python-runner
if [ "$SKIP_START" = false ]; then

View File

@@ -2,6 +2,7 @@ name: metabase-e2e
include:
- ../../../snowplow/docker-compose.yml
- ../../../python-runner/compose.yaml
services:
postgres-sample:

View File

@@ -683,6 +683,7 @@ export interface EnterpriseSettings extends Settings {
"python-storage-s-3-endpoint"?: string | null;
"python-storage-s-3-region"?: string | null;
"python-storage-s-3-bucket"?: string | null;
"python-storage-s-3-prefix"?: string | null;
"python-storage-s-3-access-key"?: string | null;
"python-storage-s-3-secret-key"?: string | null;
"python-storage-s-3-container-endpoint"?: string | null;

View File

@@ -0,0 +1,40 @@
---
name: python-runner
services:
localstack:
image: localstack/localstack:3.5.0
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
environment:
- DEBUG=0
volumes:
- "/tmp/python-exec-localstack:/var/lib/localstack"
setup-bucket:
# Run a script to ensure the bucket needed for running the tests exists in
# the localstack s3 instance.
image: localstack/localstack:3.5.0
depends_on:
- localstack
entrypoint: >
sh -c "aws s3 mb s3://metabase-python-runner"
environment:
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- AWS_ENDPOINT_URL=http://localstack:4566
python-runner:
image: metabase/python-runner:beta
depends_on:
- localstack
- setup-bucket
ports:
- "127.0.0.1:5001:5000"
volumes:
- "/tmp/python-exec-work:/tmp/python-exec-work"
environment:
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- AWS_DEFAULT_REGION=us-east-1
- AWS_ENDPOINT_URL=http://localstack:4566
- AUTH_TOKEN=dev-token-12345
- DISABLE_LIMITS=1
- RUN_MODE=dev