From fb1189d05b6cf9e357586871f9b6e3cf120234a5 Mon Sep 17 00:00:00 2001 From: zima Date: Sun, 22 Dec 2024 12:01:47 -0700 Subject: [PATCH] Test db containers no longer use bind mounts and are ephemeral --- compose.local-test.yml | 4 ---- setup-tests.sh | 7 +++---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/compose.local-test.yml b/compose.local-test.yml index 7cb0440bad..e7dc362863 100644 --- a/compose.local-test.yml +++ b/compose.local-test.yml @@ -6,8 +6,6 @@ services: image: redis:7-alpine ports: - "6379:6379" - volumes: - - ./redis:/data healthcheck: test: "redis-cli ping" interval: 5s @@ -20,8 +18,6 @@ services: - "5432:5432" env_file: - .config/docker.env - volumes: - - ./db:/var/lib/postgresql/data healthcheck: test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB" interval: 5s diff --git a/setup-tests.sh b/setup-tests.sh index 11da60c844..e116a526be 100755 --- a/setup-tests.sh +++ b/setup-tests.sh @@ -1,9 +1,8 @@ #!/bin/bash -echo "This script will destroy the following local directories:" +echo "During testing, your local postgres and redis databases will not be touched." +echo "This script will remove the build directories in the following locations:" echo " ./built" -echo " ./db" -echo " ./redis" echo echo "Do you want to continue? [Y/n]" read -p "> " confirmation @@ -29,7 +28,7 @@ docker compose rm echo Removing any preexisting builds and databases. echo This may take a few moments... -rm -rf ./built ./db ./redis +rm -rf ./built echo Creating environment docker compose up -d