Closed yanickvanbarneveld closed 4 years ago
Hey @yanickvanbarneveld.
Yeah, as it stands, the Dockerfile for this project isn't really extendable because of the use of the defined ENTRYPOINT
.
I do see that there is a case to be made to change that however, so when I go to update for WP 5.3 (which is slated to release Nov 12), I'll make the adjustment to make this more extensible. That should cover for the XDebug portion of this issue...
As for the mailhog portion... Not totally sure without digging into the mailhog docs how it's supposed to hook up on the PHP side, but it seems like you're on the right track... Could just be due to the way the current Dockerfile is written as outlined above.
This may or may not be helpful: https://github.com/mailhog/MailHog/wiki
Hey @yanickvanbarneveld, digging into this now and I was mistaken.. we don't define the entrypoint at all. We define the CMD
which is how it should be..
You should be able to fix your issue with extending our Dockerfile by simply adding CMD ["/run.sh"]
at the end of your Dockerfile.
Let me know if that doesn't work and I'll reopen.
Hi @dsifford, sorry for my late reaction. I am not sure though. I changed my Dockerfile to the following:
FROM visiblevc/wordpress:0.25.0-php7.3
RUN sudo curl --location --output /usr/local/bin/mhsendmail https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64
RUN echo 'sendmail_path="/usr/local/bin/mhsendmail --smtp-addr=mailhog:1025 --from=noreply@info.nl"' > sudo /usr/local/etc/php/conf.d/mailhog.ini
RUN echo 'sendmail_path = /usr/bin/mhsendmail --smtp-addr mailhog:1025' >> /usr/local/etc/php/php.ini
CMD ["/run.sh"]
Building the Dockerfile didn't give any errors but it still seems not to work and I am not really sure how to fix this. I know it hasn't to do anything with your awesome product but I can't find out.
Overview
What's your problem about?
I am trying to enable XDebug and Mailhog in the visiblevc/wordpress image by extending the Dockerfile. I don't get it to work, when I build I get the following error:
Did someone else manage to achieve this?
docker-compose.yml & Dockerfile