1
0
mirror of https://github.com/offen/docker-volume-backup.git synced 2025-06-30 22:33:38 +02:00

Run tests using compose v2 (#178)

This commit is contained in:
Frederik Ring
2023-01-07 18:50:27 +01:00
committed by GitHub
parent 1cb4883458
commit 9b7af67a26
12 changed files with 47 additions and 47 deletions

View File

@ -6,10 +6,10 @@ cd $(dirname $0)
. ../util.sh
current_test=$(basename $(pwd))
docker-compose up -d
docker compose up -d
sleep 30 # mariadb likes to take a bit before responding
docker-compose exec backup backup
docker compose exec backup backup
sudo cp -r $(docker volume inspect --format='{{ .Mountpoint }}' commands_archive) ./local
tar -xvf ./local/test.tar.gz
@ -28,7 +28,7 @@ if [ -f ./backup/data/post.txt ]; then
fi
pass "Did not find unexpected file."
docker-compose down --volumes
docker compose down --volumes
sudo rm -rf ./local