Awesome it works.
{
"variables": {
"repository": "ubuntu",
"tag": "1.0",
"root_password": null
},
"builders": [{
"type": "docker",
"author": "",
"image": "ubuntu:latest",
"commit": true,
"changes": [
"USER ubuntu"
]
}],
"provisioners": [
{
"type": "shell",
"inline": [
"apt-get update -y && apt-get install -y sudo",
"apt-get dist-upgrade -y && apt-get autoremove -y && apt clean -y &&
apt-get install -y bash-completion curl net-tools iputils-ping git python
iptables",
"sleep 15",
"groupadd -r ubuntu",
"useradd -r -g ubuntu ubuntu",
"cd /tmp"
]
}],
"post-processors": [
{
"type": "docker-tag",
"repository": "{{user `repository`}}",
"tag": "{{user `tag`}}"
},
{
"type": "shell-local",
"inline": ["echo foo"]
}
]
}
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/packer-tool/8f378772-a686-4c25-9155-1fcd712446d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.