From e2207f105157d6073ce06d0592e69cfdf1e48122 Mon Sep 17 00:00:00 2001 From: Gregory Bartholomew Date: Jul 07 2022 20:02:10 +0000 Subject: Specify the versions of the database and of wordpress --- diff --git a/preview.sh b/preview.sh index bc4b683..3d81b93 100755 --- a/preview.sh +++ b/preview.sh @@ -8,6 +8,9 @@ DATABASE='wordpress_blog' USERNAME='wordpress' PASSWORD='chahL5oomaiHiezie8thei)h5' +DBVER=10.8 # https://hub.docker.com/_/mariadb +WPVER=6.0-php8.0 # https://hub.docker.com/_/wordpress + set -e function wordpress_stop { @@ -33,7 +36,7 @@ podman run \ --env MYSQL_PASSWORD="$PASSWORD" \ --env MYSQL_ROOT_PASSWORD='f3d0r4 m4g4z1n3' \ --volume $PWD/mariadb:/var/lib/mysql:Z \ - --detach docker.io/library/mariadb + --detach docker.io/library/mariadb:$DBVER podman run \ --pod $PODMANNS \ @@ -45,7 +48,7 @@ podman run \ --volume $PWD/opt:/opt:Z \ --volume $PWD/srv:/srv:Z \ --volume $PWD/fedoramagazine:/var/www/html/wp-content/themes/fedoramagazine:Z \ - --detach docker.io/library/wordpress + --detach docker.io/library/wordpress:$WPVER WP="podman exec wordpress /opt/wp --allow-root"