Replies: 5 comments
-
Yeah not sure, we'd have to recreate and troubleshoot the customization added onto the default image. So you might try asking over at the Docker Community Forums, Docker Community Slack, or Stack Overflow I'd include |
Beta Was this translation helpful? Give feedback.
-
Thanks. I've posted on SO. It seems, from the mysql logs that it's similar to this issue where
I see the reference to Any alternative recommendations for implementing PHPUnit? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Have made some progress, which is that the database connection works for the |
Beta Was this translation helpful? Give feedback.
-
What ended up working is this:
The Dockerfile:
With an entrypoint installing the wp-test-suite:
In this case, since there are two related plugins I'm developing, some of the PHPUnit files are at top level, so mapping is like this in the
The bootstrap file:
And
The
|
Beta Was this translation helpful? Give feedback.
-
Hi and thanks for the great work.
I'm trying to create a docker-compose file for phpunit, which currently has two services:
wordpress_phpunit
anddb
:This is the Dockerfile, referenced above:
The tests init file is this:
Am able to run
docker-compose up -d
without error, however, within the container,Trying to manually run the command:
It returns the db connection error.
Contents of
wp-config.php
include:And my understanding is that the
getenv_docker()
calls will return myenv
variables from the compose file:I had seen that there might be some issues with
getenv_docker()
and hoping for some insights on what I'm missing here.Beta Was this translation helpful? Give feedback.
All reactions