Skip to content

Instantly share code, notes, and snippets.

@stevendborrelli
Last active December 31, 2015 02:08
Show Gist options
  • Save stevendborrelli/7918358 to your computer and use it in GitHub Desktop.
Save stevendborrelli/7918358 to your computer and use it in GitHub Desktop.
Packer.io json template for boot2docker
{
"builders": [{
"type": "virtualbox",
"guest_os_type": "Linux",
"iso_url": "https://github.com/steeve/boot2docker/releases/download/v0.3.0/boot2docker.iso",
"iso_checksum": "e03670ed349c54848e20d9043a90f2df8df70d82e674b84a7083301193745b19",
"iso_checksum_type": "sha256",
"ssh_username": "docker",
"ssh_password": "tcuser",
"shutdown_command": "sudo poweroff"
}],
"post-processors": [ "vagrant" ]
}
#!/bin/bash
#Builds, but will not boot in vagrant
set -e
#export PACKER_LOG=1
rm packer_virtualbox_virtualbox.box || true
packer build -only=virtualbox boot2docker.json
vagrant box remove boot2docker || true
vagrant box add boot2docker packer_virtualbox_virtualbox.box
@blalor
Copy link

blalor commented Dec 15, 2013

Requires

"guest_os_type": "Linux_64",

to build on OS X.

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