Closed
Bug 1240828
Opened 9 years ago
Closed 8 years ago
single vagrant vm name makes reviewing hard
Categories
(developer.mozilla.org Graveyard :: Setup / Install, enhancement)
developer.mozilla.org Graveyard
Setup / Install
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: willkg, Unassigned)
Details
(Keywords: in-triage)
We currently use vagrant to set up developer environments. That's great. Yay. However, the name of the vagrant vm is hard-coded in the Vagrantfile (vagrant.vm.define) and thus it's very difficult to test PRs without hosing your developer environment because you can't bring up a separate vagrant vm.
This bug covers figuring out how to fix things such that you can test a PR that does crazy things without hosing your developer environment.
| Reporter | ||
Comment 1•9 years ago
|
||
I don't see any vagrant sub commands for backing up or restoring vms.
Maybe use virtualbox snapshots, but I've always had lousy luck with them, so someone would have to write down exactly what the steps are to make it work.
We could change line 33 in the Vagrantfile:
config.vm.define 'developer-local'
to this:
config.vm.define 'developer-local' + ENV['VAGRANT_VM_NAME']
allowing you to do something like:
VAGRANT_VM_NAME=1119433 vagrant up
but that's kind of clunky.
I think I want a quick-and-dirty solution for now just to make it easier figuring the near future we're probably going to be doing something completely different for dev environments anyhow.
Any other ideas?
Updated•9 years ago
|
| Reporter | ||
Comment 2•9 years ago
|
||
Jannis pointed out that vagrant has a snapshot subcommand in 1.8+. I'll check that out.
Comment 3•8 years ago
|
||
Removing Vagrant and switching to Docker (bug 1218563), which has its own problems and solutions for reviewing PRs.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
| Reporter | ||
Comment 4•8 years ago
|
||
Hooray!
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•