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

Speed up VM builds with beetbox #1986

Closed
thom8 opened this issue Sep 13, 2017 · 4 comments
Closed

Speed up VM builds with beetbox #1986

thom8 opened this issue Sep 13, 2017 · 4 comments
Labels
Enhancement A feature or feature request

Comments

@thom8
Copy link
Contributor

thom8 commented Sep 13, 2017

beetbox now offers feature parity with BLT so the preprovisioned base box can be used with Drupal VM.

I've been using it successfully for the last couple of months without any issues and the build times have gone from ~25 mins to ~3 mins.

A new base box is automatically built by Atlas every 2 weeks & build scripts are available in the project if you'd prefer to build your own.

To make use the project base box just create the file -- box/local.config.yml with the following:

---
vagrant_box: beet/box
workspace: "/beetbox/workspace/{{ php_version }}"
installed_extras: []
  • workspace is optional but it's the beetbox default so won't redownload packages that are already available.
  • installed_extras is only required if you're installing anything in addition to the defaults as everything else is preprovisioned.
@grasmash grasmash added the Enhancement A feature or feature request label Sep 13, 2017
@grasmash
Copy link
Contributor

@geerlingguy Any opinions on using this?

@geerlingguy
Copy link
Contributor

Beetbox has been well-maintained and I have no problems using it—the only thing I'd want to make sure of is that projects upgrading / switching to it from the other base boxes don't run into any strange side effects.

@thom8
Copy link
Contributor Author

thom8 commented Sep 19, 2017

I've found it to be far more stable when doing frequent builds as it doesn't depend on a whole bunch of 3rd party services being available (& working) during the VM builds.

Also if we're able to get linked clones working again -- geerlingguy/drupal-vm#1528 (I'm using a patch atm) each project only requires a very small amount of disk as it clones from the prebuilt base image.

@thom8
Copy link
Contributor Author

thom8 commented Sep 19, 2017

As a bonus, it's also smaller than the default base box

737 MB - https://app.vagrantup.com/beet/boxes/box
760 MB - https://app.vagrantup.com/geerlingguy/boxes/ubuntu1604

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement A feature or feature request
Projects
None yet
Development

No branches or pull requests

3 participants