From 94f9cad2d05b38a8b9cf7bbeb1cafaa8acefc8d3 Mon Sep 17 00:00:00 2001 From: Daniil Tkachev Date: Mon, 13 Jan 2025 11:51:02 +0100 Subject: [PATCH] TC-47 test cypress --- .github/oxid-esales/cypress.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/oxid-esales/cypress.sh b/.github/oxid-esales/cypress.sh index 287b18a..53b1f51 100755 --- a/.github/oxid-esales/cypress.sh +++ b/.github/oxid-esales/cypress.sh @@ -7,13 +7,13 @@ NC='\033[0m' # No Color function start_services() { echo "Starting application services with Docker Compose..." - docker-compose up -d + docker compose up -d echo "Waiting for application services to initialize..." - docker-compose ps + docker compose ps echo "Verifying application network..." - network_name=$(docker inspect $(docker-compose ps -q) --format '{{range .NetworkSettings.Networks}}{{.NetworkID}}{{end}}' | head -n 1) + network_name=$(docker inspect $(docker compose ps -q) --format '{{range .NetworkSettings.Networks}}{{.NetworkID}}{{end}}' | head -n 1) if [ -z "$network_name" ]; then echo -e "${RED}Could not find the application network. Ensure Docker Compose is configured correctly.${NC}" exit 1 @@ -76,10 +76,10 @@ function debug_application() { echo -e "${RED}Debugging application services and containers:${NC}" echo "Docker Compose services status:" - docker-compose ps + docker compose ps echo "Docker Compose logs:" - docker-compose logs + docker compose logs echo "Inspecting network and connectivity:" echo "Application network: $network_name" @@ -97,7 +97,7 @@ function cleanup() { docker rm -f cypress-container || echo "Cypress container already removed." echo "Stopping Docker Compose services..." - docker-compose down || echo "Docker Compose services already stopped." + docker compose down || echo "Docker Compose services already stopped." } # Main script execution