Skip to content

Commit

Permalink
chore: replace docker-compose to docker compose
Browse files Browse the repository at this point in the history
On the CI image, ubuntu-latest uses the latest version of Docker,
which no longer supports the old-style docker-compose command.
  • Loading branch information
Miyoshi-Ryota committed Aug 17, 2024
1 parent 8a48ed4 commit e185b8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
8 changes: 4 additions & 4 deletions tests/run_unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e185b8c

Please sign in to comment.