{"repo":"ansible-community/ansible-bender","free":true,"listed":false,"github":"https://github.com/ansible-community/ansible-bender","clone":"git clone https://github.com/ansible-community/ansible-bender.git","description":"ansible-playbook + buildah = a sweet container image","language":"Python","stars":697,"topics":["ansible","buildah"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"ansible-bender This tool bends containers using Ansible playbooks and turns them into container images. It has a pluggable builder selection — it is up to you to pick the tool which will be used to construct your container image. Right now the only supported builder is buildah. More to come in the future. Ansible-bender (ab) relies on Ansible connection plugins for performing builds. tl;dr Ansible is the frontend, buildah is the backend. The concept is described in following blog posts: Building containers with buildah and ansible. Ansible and Podman Can Play Together Now. Looking for maintainers ❤ This project doesn't have an active maintainer right now that would watch issues daily. If you are a user of ansible-bender and are familiar with Python, please consider becoming a maintainer. Features You can build your container images with buildah as a backend. Ansible playbook is your build recipe. You are able to set various image metadata via CLI or as specific Ansible vars: working directory environment variables labels user default command exposed ports You can do volume mounts during build. Caching mechanism: Every task result is cached as a container image layer. You can turn this off with --no-cache . You can disable caching from a certain point by adding a tag no-cache to a task. You can stop creating new image layers by adding tag stop-layering to a task. If an image build fails, it's committed and named with a suffix -[TIMESTAMP]-failed (so you can take a look inside ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ansible-community","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ansible-community/ansible-bender/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}