Press "Enter" to skip to content

Tag: Development

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.

Setup

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

---
driver:
  name: dokken
  chef_version: latest

transport:
  name: dokken

provisioner:
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
    driver:
      image: ubuntu:16.04
      pid_one_command: /bin/systemd
      intermediate_instructions:
        - RUN /usr/bin/apt-get update

Considerations

  • 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.

FOSDEM 2017

Looking forward to go to FOSDEM 2017 in Brussels. It is my first time on a open source conference!

Since I started working with Linux I was attracted by open source. I didn’t understood why somebody was able to give his job for free… I started using their code and getting into their amazing projects, building my own set of  tools that nobody asked me to pay for…

Every day, any of us uses thousands of lines of code written by open source community, it is so deep and so important that nobody is away of it. Now I understand the huge task open source is doing for  for all of us, and I definitively want to join.

See you in the FOSDEM and remember: the future is being written by us and now more than ever before the future is really being written by us.

Node MC

Thanks to a college I’ve discovered Node MC,  a tiny system with great capabilities:

  • Lua programming directly through USB-Serial interface and a small and easy API.
  • Wifi and a complete stack implemented and usable through the Lua API
  • Generous amount of GPIO and other connections
  • Several versions with USB connector, without, tiny versions, etc…

A fast and easy way to start playing with wireless and learning several good concepts about Wifi.

Software is accessible from github where you can find not only the base repositories and tools but also lots of other related projects. The ease to start working with such a technology is the main advantage that makes me recommend this system to prototype, learn and play (of course).

I don’t want to discover you this board (is very well described by it’s authors), but as I’m enjoying it very much, I hope you will find it interesting too.