Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.After digging deep into Aegir for the last few attempts at getting aegir sites running on docker-compose services, I've learned how Aegir installs Drupal and it's not ideal.
Aegir includes the site's PHP codebase directly and runs `install_drupal()`.
Obviously changing this will be a relatively big undertaking.
However, I think it's critical. This system is blocking our ability to:
- Use docker for hosted sites.
drush provision-installrequires a local copy of files and direct database access. One of the benefits of docker is the separation, so granting outside access to your app's database server isn't really ideal. We don't want aegir@server_master to directly access those databases. They will have SSH access so that should be good enough. - Host anything but Drupal natively. This is why Mathieu Lutfy had to create platform_wordpress and site_wordpress node types: This is one big space where the drupal stuff is hard coded.
Next Steps:
- #2754069: API Only: Allow site nodes to specify "install_method", allowing something other than automated Drupal profile. - We must change the workflow to run verify to create the site, then run a separate install task, if desired.
- #2764245: Refactor PROVISION_SITE_INSTALLED to be more verbose and actually check if site was installed. - This function is not smart. If we are using docker containers, settings.php will already be there.
- Define "platform types". We add a property to platforms for "type" or some other word to track "drupal" or "wordpress" or static or whatever.
- Let those platform types define their "install" hook. For drupal, it should pass to
drush site-install - Refactor provision-install to run that hook.
- Allow sites to use
sites/default/as their settings file path. - Allow sites to customize their Files directory path.










Comments
Comment #2
colanMakes sense to me. Great work!
However, for (3) and (4), I think it might make more sense to add this type metadata to the Distribution content type (discussed in #2704799: RFC: Add a 'distribution' content type) instead of Platform as a platform is just an instance of a distribution.
Comment #3
colanComment #4
Jon PughComment #5
Jon PughTwo separate things are in progress: