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

UEFI + LUKS + NVMe can be fun

Recently I get a new laptop at work. I finally wanted to make my dream come true and install Gentoo Linux on it. I’ve installed Gentoo already a few times so this wasn’t a big deal. Installing Gentoo is actually an awesome experience. I learnt so much when doing it for the first time. This time, everything went fine until I decided to install bootloader and boot the thing. So what went wrong?…

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

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

Removing messages with notmuch

Disclaimer: this is very likely not safe, use it at your own risk, I don’t account for any harm.

So you can’t remove messages with notmuch:

While notmuch does not support, nor ever will, the deleting of messages...

That’s a fact. But what if it could help you with that? A lot actually.

Keep reading

Non-blocking stdin with python using epoll

I was playing with epoll and was curious whether I can use it to monitor sys.stdin. The biggest issue was that sys.stdin.read() is blocking and I had no way to figure out whether I read the descriptor fully or not (making the epoll useless pretty much). Until I changed it to non-blocking with fcntl.

Keep reading

LinuxCon ContainerCon Europe 2016

Here are my assorted notes from some ${subject} talks.

Keep reading