Continuous Integration back to Bas(h)ics

The most important question one always needs to ask is what are you trying to accomplish? And how are you going to do it? Once you have answered the question take a step back!

If you take that step back you can see that a bash script can be a very powerful tool in your arsenal.

However as continuous integration relies on reproducibility it is very important to note that one would have to use a fixed version of bash to get reproducibility. And that is where docker comes in!

A very simple recipe is illustrated below.

Write the bash script


    echo boo

Execute the script using docker

    docker run -v $PWD:/mnt -i manorrock/bash:4.3.42  /bin/bash

And voila! You now have an easy way to run your bash script in a reproducible way!

Posted April 9, 2017