From 98f58567cf215592d610e1813afc0dc88d3dbf91 Mon Sep 17 00:00:00 2001 From: selul Date: Thu, 8 Aug 2024 17:22:38 +0300 Subject: [PATCH] add docker compose migration --- bin/envs/down.sh | 2 +- bin/envs/init.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/envs/down.sh b/bin/envs/down.sh index 2bd14f6524..f0389ade09 100755 --- a/bin/envs/down.sh +++ b/bin/envs/down.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash export DOCKER_FILE=docker-compose.ci.yml -docker-compose -f $DOCKER_FILE down +docker compose -f $DOCKER_FILE down docker volume prune --force diff --git a/bin/envs/init.sh b/bin/envs/init.sh index 615d3168c9..a8b5b08307 100755 --- a/bin/envs/init.sh +++ b/bin/envs/init.sh @@ -17,10 +17,10 @@ fi export DOCKER_FILE=docker-compose.ci.yml # Bring stack up. -docker-compose -f $DOCKER_FILE up -d +docker compose -f $DOCKER_FILE up -d # Wait for mysql container to be ready. -while docker-compose -f $DOCKER_FILE run --rm -u root cli wp --allow-root db check ; [ $? -ne 0 ]; do +while docker compose -f $DOCKER_FILE run --rm -u root cli wp --allow-root db check ; [ $? -ne 0 ]; do echo "Waiting for db to be ready... " sleep 1 done @@ -28,4 +28,4 @@ done # Run setup echo "Setting up environment $WP_ENV" -docker-compose -f $DOCKER_FILE run --rm -u root cli bash -c "/var/www/html/bin/envs/cli-setup.sh $ZIP_URL $WP_VERSION $WP_ENV $SKIP_CACHE" +docker compose -f $DOCKER_FILE run --rm -u root cli bash -c "/var/www/html/bin/envs/cli-setup.sh $ZIP_URL $WP_VERSION $WP_ENV $SKIP_CACHE"