Skip to content

Commit

Permalink
Migrate docker compose to new format
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed Aug 7, 2024
1 parent 6ca2e0d commit d7e93d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions tests/docker-compose.yml → tests/compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "2"

services:
postgres:
image: wodby/postgres
Expand Down
6 changes: 3 additions & 3 deletions tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ wait_for_cron() {
}

docker_exec() {
docker-compose exec -T "${@}"
docker compose exec -T "${@}"
}

run_action() {
docker_exec "${1}" make "${@:2}" -f /usr/local/bin/actions.mk
}

docker-compose up -d
docker compose up -d

run_action ruby check-ready max_try=10 wait_seconds=3

docker_exec ruby tests.sh

wait_for_cron

docker-compose down
docker compose down

0 comments on commit d7e93d5

Please sign in to comment.