Skip to content

Instantly share code, notes, and snippets.

@dan3sh dan3sh/bloggy-docker.json Secret
Last active Oct 8, 2018

Embed
What would you like to do?
ubuntu packer image with docker installed
{
"variables": {
"vm_name": "bloggy-docker"
},
"builders": [
{
"type": "virtualbox-ovf",
"headless": true,
"source_path": "vms/bloggy-base.ovf",
"ssh_username": "bloggard",
"ssh_password": "<ha-ha,right>",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'bloggard'|sudo -S shutdown -P now",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"virtualbox_version_file": ".vbox_version",
"vm_name": "{{ user `vm_name` }}",
"output_directory": "image/",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"2048"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2"
]
]
}
],
"provisioners": [
{
"type": "ansible-local",
"playbook_file": "ansible/main.yml"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.