2. Table of contents
• What is Ansible Container?
• Why Ansible Container Project begins?
• How to use ansible-container?
• Ansible Container Demonstration
2
11. Ansible Container Project
“5 REASONS WE STARTED THE ANSIBLE
CONTAINER PROJECT”
https://www.ansible.com/blog/ansible-container-project
1. Because our community has been using Ansible to manage
containers for quite a while now.
2. Because the new Docker connection plug-in makes it far simpler
to run Ansible against a Docker container.
3. Because shell scripts aren’t good enough.
4. Because Ansible can be a great bridge to larger-scale container
orchestration.
5. Because we believe that communities make the best software.
11
15. End the bash madness
15
"Ansible Container represents an end to the command
&& command && command (and so on) syntax you’ve
been struggling with to build containers.”
https://www.ansible.com/ansible-container
# grab tini for signal processing and zombie killing
ENV TINI_VERSION v0.9.0
RUN set -x
&& curl -fSL "https://$URI/$TINI_VERSION/tini" -o /usr/local/bin/tini
&& curl -fSL "https://$URI/$TINI_VERSION/tini.asc" -o /usr/local/bin/tini.asc
&& export GNUPGHOME="$(mktemp -d)"
&& gpg --keyserver ha.pool.sks-keyservers.net
--recv-keys 6380DC428747F6C393FEACA59A84159D7001A4E5
&& gpg --batch --verify /usr/local/bin/tini.asc /usr/local/bin/tini
&& rm -r "$GNUPGHOME" /usr/local/bin/tini.asc
&& chmod +x /usr/local/bin/tini
&& tini -h