Press "Enter" to skip to content

Category: Uncategorised

Chef and Docker for a rapid infrastructure development

We started using Chef a while ago and one of the first steps we took was to use Docker instead of Vagrant for performing tests due to it’s faster setup.
After all this time I can say it was a nice experience and now our CI is happily testing our in minutes. So…

What do you need?

Basically you need to install the latest ChefDK where the gem kitchen-dokken is installed by default. This gem enables a light-weight tooling to use Docker containers for executing Kitchen.


After that you just need to setup your kitchen.yml to use dokken as driver like so:

  name: dokken
  chef_version: latest

  name: dokken

name: dokken


The transport and the provisioner are set to dokken so kitchen will use the lighter tooling from the driver. Then you can setup your platform to test your cookbooks:

  - name: ubuntu-16.04
      image: ubuntu:16.04
      pid_one_command: /bin/systemd
        - RUN /usr/bin/apt-get update


  • Docker is designed for isolating and packaging processes that runs as the only process inside a container.
    If your cookbook setup services you may need to choose a complete Docker base image that normally is bigger in size, also you need to explicitly start the system daemon (such as systemd) like you saw on the code snippet earlyer.

  • Do not try to run Docker inside a container. If your cookbook uses Docker somehow is better to use Vagrant instead because then you may need to manually setup the container to host docker and that is a pain.

Tribute to regex

Today I was working with Regular Expressions and suddenly come into my mind the question:

How such a great invention as Regex was created?

I rapidly checked it and I get to the wikipedia page. I had no idea about who created such a good idea. Stephen Kleen owe our admiration, he was a complete person who, in my opinion, has helped the humanity to advance. Thanks man!

Stephen Cole Kleene, creator of the regular expressions

I want youngsters like me to change the way they see what they are working with. They are so focused on their own cutting-edge projects that looking back seems like a waste of time. But is not.

Going open

I’m currently doing a Chef cookbook for Devpi using TravisCI to perform the QA through Rake, Inspec, Foodcritic and Rubocop

What kind of language I’m talking?
Well, I’m talking Open Source.

Behind my initial sentence I can only say that is really sweet. All those concepts has gained a place in my mind like a glove… They are so… Natural. I started appreciating the artistic work is behind the Open Source community is is huge! Everybody does their job with so much care and devotion that is truly inspiring (just take a look to the webs I linked in the sentence to see how carefully designed are they!).

Right now I only have one word: Amazing.

Everything is at your fingers so you can share your programs and methods with others and let them to improve them. I’m really starting on this of the Open Source world and I think I’m going to stay for long time.