version: '3'
services:
web:
build: Dockerfile.web
ports:
- "5000:5000"
db:
build: Dockerfile.db
"builders": [
{
..
"image": "ubuntu:xenial",
..
"type": "docker",
"name": "xenial-vim",
..
},
root@ubuntu-1604-vmware:/vagrant/multidocker# docker run --rm xenial-vim which htop vim git
/usr/bin/htop
/usr/bin/vim
root@ubuntu-1604-vmware:/vagrant/multidocker# docker run --rm xenial-git which htop vim git
/usr/bin/htop
/usr/bin/git
root@ubuntu-1604-vmware:/vagrant/multidocker#
--
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 packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/726b1a9c-484a-4989-943f-2716edcdc567%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[git]
xenial-git
[vim]
xenial-vim
{ "variables": { }, "builders": [ { "commit": true, "image": "ubuntu:xenial", "pull": true,
"type": "docker", "name": "xenial-vim",
"run_command": [ "-d","-t","{{.Image}}", "/bin/bash","-l" ] }, { "commit": true, "image": "ubuntu:xenial", "pull": true, "type": "docker", "name": "xenial-git", "run_command": [ "-d","-t","{{.Image}}", "/bin/bash","-l" ] } ], "post-processors": [ { "only": [ "xenial-vim" ], "repository": "xenial-vim", "tag": "latest", "type": "docker-tag" }, { "only": [ "xenial-git" ], "repository": "xenial-git", "tag": "latest", "type": "docker-tag" } ], "provisioners": [ { "type": "ansible", "playbook_file": "ansible/myplaybook.yml" } ]}
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/726b1a9c-484a-4989-943f-2716edcdc567%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Alvaro
xenial-git: hostname: f39716ea17ed
xenial-vim: hostname: 8f052d9779d6
==> xenial-vim: Provisioning with shell script: xenial-all.sh
xenial-git: hostname: xenial-git
xenial-vim: hostname: xenial-vim
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/660f784e-42c7-498b-9287-655d8a84009d%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/660f784e-42c7-498b-9287-655d8a84009d%40googlegroups.com.
--Alvaro