Comments (7)
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.
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.
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.
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.
from drupal.
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.
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)
- add example for how to install modules HOT 3
- drupal:9.4-php8.1-apache-buster comes with apache version Apache/2.4.38 (Debian) which has Security issue. HOT 5
- Add Drupal 9.5 (and remove 9.3)
- Add Drupal 10.0.0 HOT 1
- Remove opcache.fast_shutdown from PHP settings section HOT 2
- "Failed to get available update data" in Drupal 7.94 HOT 3
- Inquiry for apache compile option HOT 1
- Docker compose volumes not working. HOT 3
- Set the default php.ini (prod or dev) HOT 6
- New docker latest:php8.2-fpm-* images not functional HOT 1
- Add php8.3 [Postponed]
- 10.2.0 released
- Missing ini memory_limit and output_buffering HOT 3
- Drupal Pod is crashing when we enable Readonly file system as True without error HOT 3
- Drupal Pod is crashing when we enable Readonly file system as True without error HOT 3
- Critical and high severity fixes from drupal:latest tag HOT 2
- The bad situation with bind volumes HOT 19
- Installation error drupal 11 with sqlite HOT 9
- Drupal 11 requires PHP 8.3 (remove PHP 8.2 variant) HOT 2
- Could you provide a docker-compose file for drupal 11 with mysql? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drupal.