Closed fortis closed 7 years ago
I think we should determine the most useful and popular tools for Drupal and just add it to the PHP container. Recently, we've added Drupal Console.
It really makes sense to have the tools available in php-essentials in a separate container. Those tools are primarily for supporting development efforts (they're all testing tools), but offer little to production and in reality should not be included in a production environment.
please note that this initiative is focused on providing a local environment and this is one of the reasons it's so simple, it's not recommended to use it in production
@lhridley Suppose git, drush & composer are required on "live" for d8
otoh I't makes sense to keep them in separate volume/image container
Like
PS here's similar project https://github.com/RobLoach/Dockie
Let's figure out first what dev tools are missing that are must have for many drupal devs. Then we can think of adding an additional container (though I'm personally for keeping it as simple as possible) or adding tools to the existing PHP container.
Pretty much all of the tools in php-essentials, plus the following:
It seems that https://github.com/darh/php-essentials is no longer supported (last commit in 2014). I suppose we can just add the most popular tools to the main PHP container (cc @PavelPrischepa)
Phpcs and behat can be installed via composer, git is already in there, selenium container is available on docker hub https://hub.docker.com/r/selenium/. We're open for other suggestions, meanwhile, I'm closing this ticket due to no activity.
I tried to setup the behat drupal extension on a docker4drupal stack, it worked only when i didn't enable the drupal api driver in the behat.yml file. I got the following error when i tried to run a test:
PHP Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in /home/gitlab/netto982df6/netto/includes/database/mysql/database.inc on line 56
@jsayegh do you get this error inside of php container? what is the tag of php image? Could you perhaps open a new issue with more details and steps to reproduce?
@csandanov i followed the steps in https://docker4drupal.readthedocs.io/en/latest/ to run the stack. Then i installed the drupal extension (system wide installation: https://behat-drupal-extension.readthedocs.io/en/3.1/globalinstall.html#install-the-drupal-extension). I added the attached behat.yml file in a a directory named tests in /profiles/MY_PROFILE (profiles/MY_PROFILE/tests) behat.yml.zip
@csandanov I'm adding subcontexts and .feature files in some of the modules and i'm getting the error when i try run of the tests in a .feature file using the following command : behat -c /path/to/drupal_root/profiles/MY_PROFILE/tests/behat.yml /path/to/drupal_root/profiles/MY_PROFILE/modules/my_module/test.feature and this is the tag of the php image: wodby/drupal-php:5.6-2.0.0
maybe it make sense to have container with additional tools, something like that: https://github.com/darh/php-essentials but with alpine