I hadn't thought of using Ansible to create Docker images before, but this
is an interesting way to do this, instead of using a complicated Dockerfile
to manage each variety of service.
I might want to figure out a way to be able to build an image for each
group in your hosts file.
On
Thank you! This got me up and going fast.
On Monday, June 29, 2015 at 10:26:02 PM UTC-7, Erik wrote:
>
> Sure, the general pattern I follow is thus:
>
> 1. I use a base docker image that already has ansible installed.
> 2. In your Dockerfile, use the COPY command to copy your ansible files
>
Hi All,
I like to know if someone is using Ansible to provisioning inside a Docker
container... and how use this?
I has all my infrastructure in Playbooks, now l like to use this to create
Dockers for each of my microservices... but I can't found some
alternatives...
As we know Ansible use
Sure, the general pattern I follow is thus:
1. I use a base docker image that already has ansible installed.
2. In your Dockerfile, use the COPY command to copy your ansible files
(playbook yaml, files, etc.) into the container. Something like:
COPY ansible/ /tmp/ansible/
3. After the copy, in