Hi @Dan_Burt,
From a brief look, it seems that the issue is related to the php.ini
file. This is because there is no existing file called /usr/local/etc/php/php.ini
when you build the Dockerfile
.
It looks like the new line extension=mongodb.so
is just being appended to an empty file. I think what you would like to do instead is to append the line into /usr/local/etc/php/php.ini-development
and rename/copy the file into php.ini
.
Hopefully that helps, if you have further questions related to the MongoDB PHP extension itself, could you please provide a minimal Docker environment? i.e. minus the docker-compose.
Also please take a look at an example at get-started-php/Dockerfile. This file is part of the get-started-php project, which utilises containers as a way to kickstart a learning environment. See also "Get Started" with MongoDB Atlas thread.
This is not directly related to the issue you’re experiencing, although please note that MongoDB PHP extension version 1.9.1 is now available ( MongoDB PHP Extension 1.9.1 Released )
Regards,
Wan.