Created
August 11, 2020 23:31
-
-
Save grooverdan/09456e7975d6913a83028f2c228fa481 to your computer and use it in GitHub Desktop.
test script for https://github.com/docker-library/mariadb/issues/262
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x -v | |
for v in 10.1 10.2 10.3 10.4 10.5 | |
do | |
#podman pull mariadb:$v | |
podman rm maria$v | |
#podman run -d --rm -e MYSQL_ROOT_PASSWORD=pass \ | |
podman run -d --rm -e MYSQL_INITDB_SKIP_TZINFO=1 -e MYSQL_ROOT_PASSWORD=pass \ | |
--expose 3306 \ | |
--volume /home/dan/datadir/docker_library$v:/var/lib/mysql:Z \ | |
--name maria$v mariadb:$v & | |
sleep 1 | |
time grep -iq "ready for start up" <(podman logs -f maria$v 2>&1) | |
podman logs maria$v | |
sleep 1 | |
podman stop maria$v | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment