Caching mechanism in ansible-bender

A few weeks ago I announced a new project — ansible-bender (ab). It’s a simple tool to create container images using Ansible playbooks. The same concept as ansible-container, but ab is only about builds.

Ansible-bender utilizes an ansible connection plugin to invoke a playbook in a container and buildah as the container technology.

Recently I was able to land a caching mechanism - every task result is being cached. Since ansible doesn’t allow doing such thing easily, it was quite a feat.

Keep reading

Flock 2018 trip report

Thank you for the contributions and review, Dominika and Jirka.

Fedora and CentOS will be closer

A presentation from Jim Perrin and Matt Miller revealed that Fedora and CentOS dist-git will be tied together. This change will likely provide an opportunity to do crazy, awesome and beautiful stuff. But the key thing is to have a single dist-git deployment instead of 2 at start. Once that’s done, we may start thinking about what to do with it.

Keep reading

Recent news in container tech: issue 2

This is an issue number 2 of what’s happening in the world of linux containers. We have 2 items on the menu for today:

  1. Kata containers 1.0
  2. Buildah 1.0

Keep reading

Dependencies between services in docker-compose

Here’s a question: can Docker Compose wait for a service to be ready (healthy) before starting a dependant one?

Apparently I’m not the only one to be puzzled by this.

Keep reading

Not so recent news in container tech

I prepared a demo for my team with (not so) recent news in container tech I discovered. Here it is.

Keep reading

Unpack container image using docker-py

This is just a quick blog post. I’ve seen a bunch of questions on docker-py’s issue tracker about how to extract a container image using docker-py and get_archive (a.k.a. docker export).

Keep reading

Building Container Images with Buildah and Ansible

Update: I started a tool which simplifies all of this into a single command: TomasTomecek/ab.

Do you use Ansible roles to provision your infrastructure? And would you like to use those very same roles to create container images? You came to the right place!

We are working on a project (and you problably heard of it already) called Ansible Container. It’s not just about creation of container images. It covers the complete workflow of a containerized application. From build, local run, test to deploy.

In this blog post, I would like to show you how Ansible Container does those builds — from an Ansible role to a container image.

Keep reading