#53 Specify the versions of the database and of wordpress
Merged 2 years ago by rlengland. Opened 2 years ago by glb.
glb/fedoramagazine-theme allow-specify-versions  into  master

file modified
+5 -2
@@ -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.

Pull-Request has been merged by rlengland

2 years ago
Metadata