alberto56 / docker-drupal

A Docker image for testing Drupal sites. Contains a DB, a Drupal site at /srv/drupal/www, and the PHP cUrl library
4 stars 0 forks source link

Fixed issue with docker build not succeeding due to sendmail being absent #4

Closed ghost closed 9 years ago

ghost commented 9 years ago

Sendmail binary was not found and the build process would not succeed.

Signed-off-by: Edouard Poitras epoitras@linuxfoundation.org

alberto56 commented 9 years ago

Thanks @edclipse!

Looking more into this, it seems that installing sendmail in only required to prevent this error. There is no other reason we are using sendmail, so perhaps it's overkill to install it. What do you think, rather, of doing

php -d sendmail_path=/dev/null drush ...

as per https://www.drupal.org/node/1826652

This seems to have successfully been used at https://github.com/myplanetdigital-experimental/myplanet/blob/19b8b3c85463d677c7de1c54b5ced1041a55ef86/tmp/scripts/travis_install.sh

alberto56 commented 9 years ago

I tried the solution without sendmail and I was still getting the error; I integrated your pull request and we are passing now, thanks!