Skip to content

Instantly share code, notes, and snippets.

@cbednarski
Created March 28, 2016 23:34
Show Gist options
  • Save cbednarski/9a7d18a67fb336edc9d4 to your computer and use it in GitHub Desktop.
Save cbednarski/9a7d18a67fb336edc9d4 to your computer and use it in GitHub Desktop.
Docker.app Packer Example
{
"builders": [
{
"type": "docker",
"image": "ubuntu",
"discard": true
}
],
"provisioners": [
{
"type": "file",
"source": "cake.txt",
"destination": "/chocolate-cake",
"direction": "upload"
},
{
"type": "shell",
"inline": [
"tar -czf /cake.tar.gz /chocolate-cake"
]
},
{
"type": "file",
"source": "/cake.tar.gz",
"destination": "cake.tar.gz",
"direction": "download"
}
],
"post-processors": [
{
"type":"artifice",
"files":"cake.tar.gz"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment