Skip to content

Commit

Permalink
Merge branch 'back-off-vmware' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
becw committed Apr 5, 2018
2 parents 5feaf74 + 58fd75b commit 5aae6be
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
22 changes: 7 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@

PACKER:=$(shell which packer)
PACKER_BUILD=build
.PHONY: devkit drupalbox ubuntu1404 ubuntu1604
.PHONY: drupalbox

drupalbox1404: drupalbox1404-vmware drupalbox1404-virtualbox
all:
$(PACKER) $(PACKER_BUILD) -var-file=drupalbox/ubuntu.json drupalbox/drupalbox.json

drupalbox1404-vmware:
$(PACKER) $(PACKER_BUILD) --only=vmware-iso --var-file=drupalbox/ubuntu1404.json drupalbox/drupalbox.json
virtualbox:
$(PACKER) $(PACKER_BUILD) -only=virtualbox-iso -var-file=drupalbox/ubuntu.json drupalbox/drupalbox.json

drupalbox1404-virtualbox:
$(PACKER) $(PACKER_BUILD) --only=virtualbox-iso --var-file=drupalbox/ubuntu1404.json drupalbox/drupalbox.json

drupalbox1604:
$(PACKER) --var-file=drupalbox/ubuntu1604.json drupalbox/drupalbox.json

ubuntu1404:
$(PACKER) ubuntu1404/ubuntu1404.json

ubuntu1604:
$(PACKER) ubuntu1604/ubuntu1604.json
vmware:
$(PACKER) $(PACKER_BUILD) -only=vmware-iso -var-file=drupalbox/ubuntu.json drupalbox/drupalbox.json
8 changes: 4 additions & 4 deletions dev/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ Vagrant.configure("2") do |config|
config.hostmanager.enabled = true
config.hostmanager.manage_host = true

config.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = "1024"
end

config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", 1024]
end

config.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = "1024"
end

config.vm.provision "ansible", type: :ansible do |ansible|
ansible.playbook = "../#{box_name}/#{box_name}.yml"
ansible.groups = {
Expand Down
14 changes: 11 additions & 3 deletions docs/Updating-Existing-Box.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,24 @@

## Updating an existing box

Use the makefile to build the drupalbox:
Use the makefile to build both the virtualbox and vmware builds of the drupalbox:

```
make drupalbox
make all
```

Use the makefile to build only one of either virtualbox or vmware:

```
make virtualbox
make vmware
```

Or, use Packer directly to build the drupalbox:

```
packer build -var-file=drupalbox/ubuntu.json drupalbox/drupalbox.json
packer build -only=virtualbox-iso -var-file=drupalbox/ubuntu.json drupalbox/drupalbox.json
```

Both of these approaches run the same command, but running packer directly gives you the opportunity to use flags to manipulate the build process. Try `packer --help build` for details.
Both of these approaches run similar commands, but running packer directly gives you the opportunity to use flags to manipulate the build process in a one-off fashion. Try `packer --help build` for details.
8 changes: 4 additions & 4 deletions drupalbox/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ Vagrant.configure("2") do |config|
config.hostmanager.enabled = true
config.hostmanager.manage_host = true

config.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = "1024"
end

config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", 1024]
end

config.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = "1024"
end

end

0 comments on commit 5aae6be

Please sign in to comment.