Thank you for the image, Chris. I would like to report a version inconsistency issue that can perhaps be solved easily by rebuilding and publishing on docker hub.
The issue:
If I build the image locally, it builds with PHP 7.2.10. However, if I pull from docker hub, the image has PHP 7.1.5. Someone on this link has explained it quite well but I will copy-paste it here just in case:
Usage 1 - Building it locally
Clone the repository
Run docker-compose -f docker-compose.yml run --rm wordpress_phpunit php -v
Output:
PHP 7.2.10 (cli) (built: Sep 17 2018 09:23:43) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.10, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
Usage 2 - Using it in my docker-compose.yml
My docker-compose.yml
version: "3"
services:
wordpress_phpunit:
image: "chriszarate/wordpress-phpunit"
Run Run docker-compose -f docker-compose.yml run --rm wordpress_phpunit php -v
Output:
PHP 7.1.5 (cli) (built: May 13 2017 10:49:18) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.5, Copyright (c) 1999-2017, by Zend Technologies
with Xdebug v2.5.3, Copyright (c) 2002-2017, by Derick Rethans
Notice that the Usage 1 installs PHP 7.2.10 whereas Usage 2 installs PHP 7.1.5
Thank you for the image, Chris. I would like to report a version inconsistency issue that can perhaps be solved easily by rebuilding and publishing on docker hub.
The issue:
If I build the image locally, it builds with PHP 7.2.10. However, if I pull from docker hub, the image has PHP 7.1.5. Someone on this link has explained it quite well but I will copy-paste it here just in case: