| |
@@ -8,6 +8,9 @@
|
| |
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 @@
|
| |
--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 @@
|
| |
--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"
|
| |
|
| |
We should try to make sure that the local instance of WordPress we are testing against is consistent with the version that is running on the live site.