-
Notifications
You must be signed in to change notification settings - Fork 396
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
Add DrupalVM 3.0 support to BLT projects #93
Conversation
@@ -80,6 +80,15 @@ There are also other changes you can make if you choose to match the Acquia Clou | |||
|
|||
Once you've made these changes and completed the steps in Drupal VM's Quick Start Guide, you may run `vagrant up` to bring up your local development environment, and then access the site via the configured `drupal_domain`. | |||
|
|||
### Using DrupalVM 3.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be 'Drupal VM' (here and in other instances).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, we might want to just drop the '3.0' part, since presumably, I won't ever break this kind of integration in 3.x/4.x and beyond :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I leave the above section, where drupal-vm was meant to be pulled into a "box" folder, I wanted to state that specifically "> 3.0" was now supported automatically in the project. This entire README should be looked at when a decision is made on this, I think.
@geerlingguy I was also wondering what you thought about using the |
@danepowell - Ideally, there would be no additional config required (besides the delegated project Vagrantfile)—but if there does need to be an additional config file, that's a better question for @grasmash maybe... I don't want to have to help debug weird issues where BLT's config goes out of sync with the latest stable version of Drupal VM's. |
Originally I was opposed to including a The thing is, someone will need to make sure BLT's config.yml is updated any time there's a minor release of Drupal VM if we go that route. It could just be a documentation thing—"If you use Drupal VM, you should also make these changes to the project's |
So, I almost feel like the config.yml that actually makes it into a project repo should be project specific, no? If your project uses solr, you would want your project's config.yml to build that into the VM. ...but to your point, that probably means fixing onto a version of drupal-vm. |
Drupal VM 3.1.0 would make this a lot easier with the defaults pre-set. Then you'd just need: vagrant_hostname: ${project.machine_name}.local
vagrant_machine_name: ${project.machine_name}
vagrant_ip: 0.0.0.0
vagrant_synced_folders:
- local_path: ./
destination: /var/www/${project.machine_name}
type: nfs
create: true
drupal_core_path: "/var/www/${project.machine_name}/docroot"
drupal_site_name: "${project.human_name}" Why not even default the upstream Then the vagrant_hostname: ${project.machine_name}.local
vagrant_machine_name: ${project.machine_name}
vagrant_ip: 0.0.0.0
drupal_site_name: "${project.human_name}" |
@oxyc++ - maybe I could fast-track that issue... :) |
Forgot we also need (@dpagini remembered :)) : build_makefile: false I guess that will be removed in 3.2.0 or something? :) |
@@ -0,0 +1 @@ | |||
local.config.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then there's the Vagrantfile.local
as well.
I'd like to keep all of the drupal vm related config isolated in one directory, if possible. In past we've used |
The Edit: Actually I guess it works if you adjust the |
So "defaults" are coming in Drupal VM 3.1? That sounds like an awesome new feature! I tend to think with the "box" approach that has been in BLT up to now, that folder was the optional place to put Drupal VM if you wanted to use it (it was not even gitignored though). If we do pull the tool into all projects with this PR, I sort of think there's a benefit to being able to run all commands from the root (which means the Vagrantfile really needs to be in the root). Maybe there could be a blt phing task to fire up drupal-vm? Then we could put the Vagrantfile and config.yml wherever we want? If the Vagrantfile could go anywhere, @grasmash, you're saying it makes the most sense in a new "box" folder? Is that to say that "config" should only be for Drupal related config? What if in "config" we had a "tools" folder, and a "drupal" folder. Just throwing an idea out there. If we did that, maybe the "drush" folder could move under "config" as well, as that folder seems to be primarily configuration related items...? As I'm pretty new to this open source contributing, please feel free to boss me around if I need to update this PR at some point. I'm not totally sure on next steps, and feel a little over my head here. I hope my contributions and opinions are helpful. |
I'm not opposed to consolidating directories, but |
Maybe just a "tools" directory? (I say that not even knowing/testing if the "drush" directory can move) |
I think that we should keep the top level I'd suggest using the I would not be opposed to adding a few VM targets. The trouble is that we can't test them via Travis, but that's unavoidable. |
Note that Drupal VM's 3.1.0 release should happen within a couple days—currently the last issue being worked on is composer.json Drupal site build support. Once that's done, I'm going to tag a 3.1.0 release that includes the |
Based on the comments in this PR, I've started another PR for Drupal VM 3.1 integration: #105 This makes use of a |
Close in favor of #105, thanks for all the help everyone. |
Offering up this commit to BLT project, as I am trying to incorporate something similar into acquia-pso/voya_im (private repo), a BLT based project.
This will add DrupalVM support to all BLT projects, regardless of the desire to use it. I don't think it's huge overhead, however, as it's a few files (2?), and an additional composer dependency. There are other tools brought in through this default composer.json (drupal console, for example) that might be precedent for pulling in optional tools.
Please feel free to reject if this is not an appropriate direction, or offer up suggested changes. @danepowell suggested I create this as a possible BLT change since I implemented a similar approach in our repo.
I look forward to hearing any thoughts.
cc: @geerlingguy - making sure you get a chance to comment on this. And, thank you for all your work on DrupalVM!!