I'm trying to set up a LAMP web server using docker and was delighted to discover that the good folks over at php have put together a docker container for php.
Reading through the documentation I found three functions that will ostensibly assist me with the installation of php extensions;
docker-php-ext-configuredocker-php-ext-installdocker-php-ext-enable
Being a complete newcomer to php and having tried and failed to enable php modules using a combination of apk add and php.ini hackery (resulting in .so not found errors), I'm ready to admit defeat and do it the proper way.
Unfortunately, the documentation is remarkable vague about what these commands do and how to use them:
We provide the helper scripts docker-php-ext-configure, docker-php-ext-install, and docker-php-ext-enable to more easily install PHP extensions.
I tried to google it as well, but couldn't find any useful resources online either.
I'm now completely confused between what it means to install, configure and install a php extension, and how commands like apk add php7-* relate to all of this.
Please explain what these functions do, and how you would use them to enable php extensions.