diff --git a/scripts/ci-linux-rehearsal.sh b/scripts/ci-linux-rehearsal.sh index 1b3c2ac..b4dec1d 100755 --- a/scripts/ci-linux-rehearsal.sh +++ b/scripts/ci-linux-rehearsal.sh @@ -211,8 +211,13 @@ if [ "$STAGE" = all ] || [ "$STAGE" = console ]; then ' || console_status=$? fi + # The teardown has to name the same project the seeding container named. + # Without COMPOSE_PROJECT_NAME this removes the stack named after this + # directory and leaves the CI-named one — and its port — running behind a + # summary line that says PASS. docker run --rm -v "$PWD:$PWD" -w "$PWD" \ -v "$DOCKER_SOCKET:/var/run/docker.sock" \ + -e COMPOSE_PROJECT_NAME -e EDGE_PORT \ "$COMPOSE_IMAGE" sh -c 'docker compose down >/dev/null 2>&1 || true' fi fi