diff --git a/package.json b/package.json index e656220ed..dacf6f0b5 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "test:ci:unit": "jest --config jest.config.unit.cjs --ci --cacheDirectory $PWD/.jest-cache", "test:ci:lint": "jest --config jest.config.lint.cjs --ci --cacheDirectory $PWD/.jest-cache", "e2e": "playwright run", - "e2e:docker": "./tools/run_docker.sh e2e-tests", + "e2e:docker": "DEEPHAVEN_PORT=10001 ./tools/run_docker.sh e2e-tests", "e2e:update-snapshots": "./tools/run_docker.sh update-snapshots", "update-dh-packages": "lerna run update-dh-packages" }, diff --git a/tools/run_docker.sh b/tools/run_docker.sh index 6d37d8f8f..649c3b911 100755 --- a/tools/run_docker.sh +++ b/tools/run_docker.sh @@ -4,7 +4,11 @@ pushd "$(dirname "$0")" # Start the containers -docker compose run --service-ports --rm --build "$@" +if [[ -z "${CI}" ]]; then + docker compose run --service-ports --rm --build "$@" +else + docker compose run --service-ports --rm --build -e CI=true "$@" +fi exit_code=$? docker compose down