From 793243080df639e189fc5905dcfd134408a1d390 Mon Sep 17 00:00:00 2001 From: Chingis Sandanov Date: Wed, 3 Apr 2024 12:45:03 +0300 Subject: [PATCH] Update docker-compose to new format --- tests/10/{docker-compose.yml => compose.yml} | 0 tests/10/run.sh | 12 ++++++------ tests/7/{docker-compose.yml => compose.yml} | 0 tests/7/run.sh | 12 ++++++------ 4 files changed, 12 insertions(+), 12 deletions(-) rename tests/10/{docker-compose.yml => compose.yml} (100%) rename tests/7/{docker-compose.yml => compose.yml} (100%) diff --git a/tests/10/docker-compose.yml b/tests/10/compose.yml similarity index 100% rename from tests/10/docker-compose.yml rename to tests/10/compose.yml diff --git a/tests/10/run.sh b/tests/10/run.sh index ac12ca10..16b3164b 100755 --- a/tests/10/run.sh +++ b/tests/10/run.sh @@ -7,10 +7,10 @@ if [[ -n "${DEBUG}" ]]; then fi check_ready() { - docker-compose exec -T "${1}" make check-ready "${@:2}" -f /usr/local/bin/actions.mk + docker compose exec -T "${1}" make check-ready "${@:2}" -f /usr/local/bin/actions.mk } -docker-compose up -d +docker compose up -d check_ready nginx max_try=10 check_ready php max_try=10 @@ -20,9 +20,9 @@ check_ready mariadb max_try=12 wait_seconds=5 # Docker sets ephemeral shared volume ownership to default user (wodby) in nginx container (started after php) # In case of -dev-macos version of php images wodby owner uid/gid in php and nginx containers do not match if [[ "${IMAGE}" =~ "-dev-macos" ]]; then - docker-compose exec -T php sudo init_container + docker compose exec -T php sudo init_container fi -docker-compose exec -T --user=0 php apk add --update jq grep -docker-compose exec -T php tests.sh -docker-compose down -v +docker compose exec -T --user=0 php apk add --update jq grep +docker compose exec -T php tests.sh +docker compose down -v diff --git a/tests/7/docker-compose.yml b/tests/7/compose.yml similarity index 100% rename from tests/7/docker-compose.yml rename to tests/7/compose.yml diff --git a/tests/7/run.sh b/tests/7/run.sh index 2ea2f1d7..ecb7af87 100755 --- a/tests/7/run.sh +++ b/tests/7/run.sh @@ -7,10 +7,10 @@ if [[ -n "${DEBUG}" ]]; then fi check_ready() { - docker-compose exec -T "${1}" make check-ready "${@:2}" -f /usr/local/bin/actions.mk + docker compose exec -T "${1}" make check-ready "${@:2}" -f /usr/local/bin/actions.mk } -docker-compose up -d +docker compose up -d check_ready nginx max_try=10 check_ready php max_try=10 @@ -20,9 +20,9 @@ check_ready mariadb max_try=12 wait_seconds=5 # Docker sets ephemeral shared volume ownership to default user (wodby) in nginx container (started after php) # In case of -dev-macos version of php images wodby owner uid/gid in php and nginx containers do not match if [[ "${IMAGE}" =~ "-dev-macos" ]]; then - docker-compose exec -T php sudo init_container + docker compose exec -T php sudo init_container fi -docker-compose exec -T --user=0 php apk add --update jq -docker-compose exec -T php tests.sh -docker-compose down -v +docker compose exec -T --user=0 php apk add --update jq +docker compose exec -T php tests.sh +docker compose down -v