Last active
December 31, 2015 02:08
-
-
Save stevendborrelli/7918358 to your computer and use it in GitHub Desktop.
Packer.io json template for boot2docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" ] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Requires
to build on OS X.