From e185b8ca52e83ca04efe790393afebce49771571 Mon Sep 17 00:00:00 2001 From: Miyoshi-Ryota Date: Sat, 17 Aug 2024 21:57:36 +0900 Subject: [PATCH] chore: replace docker-compose to docker compose On the CI image, ubuntu-latest uses the latest version of Docker, which no longer supports the old-style docker-compose command. --- README.md | 2 +- tests/run_unit_tests.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 56ed356..13cc169 100644 --- a/README.md +++ b/README.md @@ -54,5 +54,5 @@ async fn main() -> Result<(), async_ssh2_tokio::Error> { ``` ## Running Tests -1. install docker and docker-compose +1. install docker and docker compose 2. run shell script `./tests/run_unit_tests.sh` diff --git a/tests/run_unit_tests.sh b/tests/run_unit_tests.sh index 8262e2a..f8370fc 100755 --- a/tests/run_unit_tests.sh +++ b/tests/run_unit_tests.sh @@ -7,13 +7,13 @@ cd "${0%/*}" || exit 1 cd .. -docker-compose -f ./tests/docker-compose.yml build --no-cache || exit 1 +docker compose -f ./tests/docker-compose.yml build --no-cache || exit 1 -docker-compose -f ./tests/docker-compose.yml up -d || exit 1 +docker compose -f ./tests/docker-compose.yml up -d || exit 1 -docker-compose -f ./tests/docker-compose.yml exec -T async-ssh2-tokio cargo test -- --test-threads=2 +docker compose -f ./tests/docker-compose.yml exec -T async-ssh2-tokio cargo test -- --test-threads=2 RET=$? -docker-compose -f ./tests/docker-compose.yml down +docker compose -f ./tests/docker-compose.yml down exit $RET