Skip to content

Add support for install profiles #5

Closed

Description

@bdlangton

For local Drupal development, sometimes we have a site that we want to install brand new every time we build it. Currently, drud dev add ... is limited to always pulling down an archive and using that site with the accompanying database. I would like the option to be able to add a site and specify that it should be built from the install profile instead. Typically, we have done this with a new_site: true flag in the databag. I don't think drud even looks at our databags for a build, but perhaps another option is to add a flag to the add command that tells drud to ignore the archived database and build from an install profile. Maybe something like drud dev add client staging --install-profile=client_profile.

Activity

  1. changed the title [-]Feature request: allow drud dev add to build a new site from an install profile rather than loading an archive.[/-] [+]Add support for install profiles[/+] on Feb 3, 2017
  2. rickmanelius commented on Mar 19, 2017

    @rickmanelius
    Contributor

    Hey @bdlangton. There is definitely a need for this use case. In the 0.1 version, we decided to adopt a more agnostic approach. We don't assume a connection to a vault backend (metadata) or that a user wants to skip through the site install. That does slow things down for those wanting to immediately get to a live working site OR test a site built from an installation profile. Short term, this can be achieved by running drush through the exec command, but using flags right from the start as you recommended would be a viable alternative. The trick becomes whether we make flags for each CMS supported. This is an important issue to clear up in the initial roadmap, so we will need to get this better defined and tagged to a milestone before we can proceed.

  3. cyberswat commented on Mar 20, 2017

    @cyberswat
    Contributor

    This does raise the point that we may want to consider publishing our roadmap for the ddev product.

  4. cyberswat commented on Mar 21, 2017

    @cyberswat
    Contributor

    @rickmanelius can you update this issue with links to our roadmaps when they are published?

  5. rickmanelius commented on May 3, 2017

    @rickmanelius
    Contributor

    Hi @bdlangton. Sorry for the massively long response time. In addition to the previously mentioned option of appending a ddev exec after a ddev start to essentially wrap drush, there is another alternative that we are pursuing to balance ddev being agnostic while supporting CMS specific functionality. See this issue Create Strategy for Pre/Post Hook Functionality. Once issue #183 is addressed, this specific functionality could be one of the first use cases.

    At the moment, here is the published roadmap and here is the progress we've made on the various milestones.

  6. rickmanelius commented on Oct 19, 2017

    @rickmanelius
    Contributor

    A long-standing issue, but this is now doable through the post-hooks (https://ddev.readthedocs.io/en/latest/users/extending-commands/). On ddev rm one could force a database remove and on ddev start one could follow-up with the exact parameters passed in through a drush site install. If you'd like, I can put together a demo set and then we can see if that allows us to close this out.

  7. rfay commented on Apr 16, 2018

    @rfay
    Member

    There are many ways to accomplish things in ddev, and I think we've pointed out some of them. I'm going to close this because it's been a year without followup or interest from others. Feel free to reopen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions