Giter Club home page Giter Club logo

Comments (7)

nhoag avatar nhoag commented on August 24, 2024 1

I envisioned a Drupal onbuild option more as a rapid development system. It's rare to deploy Drupal without adding modules, themes, and other code to shape a build or add functionality. With a proper onbuild, code would be modified on the host using familiar tools, and deployed into the Docker container for review.

from drupal.

skyred avatar skyred commented on August 24, 2024

I was thinking about this feature today.

We can take advantage of Drush installation

drush dl drupal --drupal-project-rename=example
cd example
drush site-install standard --db-url='mysql://[db_user]:[db_pass]@localhost/[db_name]' --site-name=Example --account-name=admin --account-pass=[useruser_pass]

A more detailed documentation can be found: https://www.drupal.org/documentation/install/developers

from drupal.

tianon avatar tianon commented on August 24, 2024

I'm not sure I understand the expected use case for an onbuild variant of Drupal -- can you elaborate? My understanding of Drupal is that it's a CMS, and that modifications on top of it would be things like installing modules/themes and custom content, so I'm not sure I comprehend what an onbuild variant would accomplish (and especially what it would accomplish in a way that's not already trivial with a custom Dockerfile and automated builds/repository links (to keep it up to date when the base changes)).

from drupal.

skyred avatar skyred commented on August 24, 2024

Drupal has distributions https://www.drupal.org/documentation/build/distributions, like Linux Debian, then many other distributions like Ubuntu built on top of it.

from drupal.

tianon avatar tianon commented on August 24, 2024

from drupal.

skyred avatar skyred commented on August 24, 2024

Drupal has command line tools: Drush or DrupalConsole. A wild idea is that when a "docker run" is first called, a Drupal distribution or Profile name is passed as a ENV or parameter. Then, the command line tool will take care all the installation. Maybe, this has nothing to do with "onbuild" option. I haven't really looked into this yet.

from drupal.

tianon avatar tianon commented on August 24, 2024

I'm still not convinced this makes sense as an ONBUILD variant. The way ONBUILD works is that we can pre-define a set of Dockerfile instructions which are run automatically when someone does FROM drupal:onbuild. There's no way to configure, change, or influence them in any way short of them including a COPY which then requires your local tree to have specific files in place, so the flexibility of the feature is very, very limited. As such, I'm a very strong -1 on including any kind on onbuild variant for this image.

That being said, I'd be open to better documentation about expanding this image for more complex use cases such as adding modules, themes, etc.

Thanks!

from drupal.

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.