Coder Social home page Coder Social logo

php-essentials container about docker4drupal HOT 13 CLOSED

wodby avatar wodby commented on August 18, 2024
php-essentials container

from docker4drupal.

Comments (13)

csandanov avatar csandanov commented on August 18, 2024

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.

from docker4drupal.

lhridley avatar lhridley commented on August 18, 2024

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.

from docker4drupal.

csandanov avatar csandanov commented on August 18, 2024

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

from docker4drupal.

andypost avatar andypost commented on August 18, 2024

@lhridley Suppose git, drush & composer are required on "live" for d8

from docker4drupal.

andypost avatar andypost commented on August 18, 2024

otoh I't makes sense to keep them in separate volume/image container

Like

PS here's similar project https://github.com/RobLoach/Dockie

from docker4drupal.

csandanov avatar csandanov commented on August 18, 2024

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.

from docker4drupal.

lhridley avatar lhridley commented on August 18, 2024

Pretty much all of the tools in php-essentials, plus the following:

  • Drupal Coding Standards to go with PHPCS / CodeSniffer (https://www.drupal.org/node/1419980)
  • Drupal extension for Behat
  • Selenium Container with either Chrome or Firefox (or both)
  • Git

from docker4drupal.

csandanov avatar csandanov commented on August 18, 2024

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)

from docker4drupal.

csandanov avatar csandanov commented on August 18, 2024

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.

from docker4drupal.

jsayegh avatar jsayegh commented on August 18, 2024

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

from docker4drupal.

csandanov avatar csandanov commented on August 18, 2024

@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?

from docker4drupal.

jsayegh avatar jsayegh commented on August 18, 2024

@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

from docker4drupal.

jsayegh avatar jsayegh commented on August 18, 2024

@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

from docker4drupal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.