Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Drush site-install to install from recipes #5999

Closed
thejimbirch opened this issue May 10, 2024 · 3 comments
Closed

Allow Drush site-install to install from recipes #5999

thejimbirch opened this issue May 10, 2024 · 3 comments

Comments

@thejimbirch
Copy link

thejimbirch commented May 10, 2024

Is your feature request related to a problem? Please describe.
Drupal can now be installed using recipes, which bypasses the need for install profiles.

Users are currently using the drupal quick-start and drupal install scripts to install from recipes, but that only allows for an sql-lite database. A must more real-world example will be to allow this from Drush, like most folks do to install Drupal now.

Describe the solution you'd like
Add an option like drush site-install --recipe /path/to/recipe which would follow the steps in the Drupal installer and install Drupal with no install profile, and apply the recipel

Describe alternatives you've considered
Allow for selecting no install profile. We could then use the proposed drush recipe to apply recipes.

Additional context
N/A

@gitressa
Copy link
Contributor

This would be a great feature, and improve Starshot and DDEV integration.

@greg-1-anderson
Copy link
Member

See #6026

@weitzman
Copy link
Member

Lets use PR for discussion

greg-1-anderson added a commit that referenced this issue Jun 21, 2024
* Allow drush site:install to work with recipes.

* Code style

* Add a test for installing from a recipe.

* Touch up comments

* Code style

* Skip recipe tests on versions of Drupal that do not yet support recipes.

* Rename "profile" arg to "recipeOrProfile". Add better error checking, e.g. Drupal versions and missing recipes.

* Code style

* Use test recipe on recipe-not-supported test.

* Mark the recipe-not-supported test as skipped on sqlite.

* Update src/Commands/core/SiteInstallCommands.php

Co-authored-by: Moshe Weitzman <weitzman@tejasa.com>

* Search paths relative to cwd when looking for recipes.

---------

Co-authored-by: Greg Anderson <greg.anderson@greenknowe.org>
Co-authored-by: Moshe Weitzman <weitzman@tejasa.com>
greg-1-anderson added a commit that referenced this issue Jun 21, 2024
* Allow drush site:install to work with recipes.

* Code style

* Add a test for installing from a recipe.

* Touch up comments

* Code style

* Skip recipe tests on versions of Drupal that do not yet support recipes.

* Rename "profile" arg to "recipeOrProfile". Add better error checking, e.g. Drupal versions and missing recipes.

* Code style

* Use test recipe on recipe-not-supported test.

* Mark the recipe-not-supported test as skipped on sqlite.

* Update src/Commands/core/SiteInstallCommands.php

Co-authored-by: Moshe Weitzman <weitzman@tejasa.com>

* Search paths relative to cwd when looking for recipes.

---------

Co-authored-by: Greg Anderson <greg.anderson@greenknowe.org>
Co-authored-by: Moshe Weitzman <weitzman@tejasa.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants