Skip to content

Commit

Permalink
publish: use docker compose over docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
pabra committed Aug 4, 2024
1 parent 181cbe8 commit bceba32
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

cleanup() {
docker-compose -f test/docker-compose.yml down --volumes
docker compose -f test/docker-compose.yml down --volumes
}

trap cleanup EXIT INT
Expand All @@ -17,17 +17,17 @@ fi
run_tests() {
export HTTPD_PORT="$1"
export USER="$2"
docker-compose -f test/docker-compose.yml up -d
docker-compose -f test/docker-compose.yml run --rm ${no_tty} awstats-test /bin/sh -c "wait4ports -t 10 tcp://awstats:$HTTPD_PORT"
docker-compose -f test/docker-compose.yml run --rm ${no_tty} awstats-test test1.sh "$HTTPD_PORT"
docker-compose -f test/docker-compose.yml exec ${no_tty} awstats awstats_updateall.pl now
docker-compose -f test/docker-compose.yml run --rm ${no_tty} awstats-test test2.sh "$HTTPD_PORT"
docker-compose -f test/docker-compose.yml exec ${no_tty} awstats awstats_updateall.pl now
docker-compose -f test/docker-compose.yml run --rm ${no_tty} awstats-test test3.sh "$HTTPD_PORT"
docker compose -f test/docker-compose.yml up -d
docker compose -f test/docker-compose.yml run --rm ${no_tty} awstats-test /bin/sh -c "wait4ports -t 10 tcp://awstats:$HTTPD_PORT"
docker compose -f test/docker-compose.yml run --rm ${no_tty} awstats-test test1.sh "$HTTPD_PORT"
docker compose -f test/docker-compose.yml exec ${no_tty} awstats awstats_updateall.pl now
docker compose -f test/docker-compose.yml run --rm ${no_tty} awstats-test test2.sh "$HTTPD_PORT"
docker compose -f test/docker-compose.yml exec ${no_tty} awstats awstats_updateall.pl now
docker compose -f test/docker-compose.yml run --rm ${no_tty} awstats-test test3.sh "$HTTPD_PORT"
}

if [ "$1" != 'skip_build' ]; then
docker-compose -f test/docker-compose.yml build
docker compose -f test/docker-compose.yml build
fi

run_tests 80 0
Expand Down

0 comments on commit bceba32

Please sign in to comment.