Dockerize your builds in GitLab CI

GitLab CI is an CI/CD tool integrated directly into GitLab.com. GitLab CI uses a distributed approach for running its jobs and offers shared runners running on Digital Ocean. They also have Docker support and even an integrated Docker registry for each project. This short (four source files) tutorial will show how you can deploy your own […]

Read More

BYOP – there’s a new meetup in town

Ever lost sleep over all the amazing things you are going to do the next day to save the world only to wake up and realize you just have to finish that new 8 season netflix show first? Ever read something during the day that got you so inspired to create the next facebook only to find yourself snoring in the sofa at 18:00 (that’s 6 pm for you americanos)? Well, I have, and that is why I got attracted when I got a notification about a new meetup – Bring Your Own Project Gothenburg

BYOP
The first BYOP meetup (picture stolen from Erik Larkö)

The first meeting was held two weeks ago and started off with a ~20 minute presentation from

Read More

Automating with Ansible – Part 2

In the first part of Automating with Ansible we had a look at how you can utilize Ansibles inventory-file and the ping module to communicate with the different machines in your environment. This time we’ll have a look of how to utilize Ansibles Playbooks to leave the command line and automate our IT even further

Playbooks

Ansible utilizes the concept of playbooks to organize and execute tasks for us. A playbook is a simple yml-file with tasks (instructions). Let’s have a look at work/playbooks/touchfile.yml in the repository:

{{EJS0-1}}

The first thing we do in our playbook is to define which hosts the playbook should target. As seen above, we aim to execute this playbook on all of our hosts.

On the next line we define our first task. The task

Read More

Automating with Ansible – Part 1

Automating tasks for installing new machines or managing your different environments is a must in the days of Continous Delivery. Most often I have seen these solutions done by chef or puppet. When I’ve worked in those projects many of the tasks/recipes has already been setup and whenever I’ve gone in and update those I’ve felt that it’s a bit of a jungle with a steep learning curve. I was therefore very interested when I got introduced to Ansible by a colleague.

What is Ansible?

Ansible is an IT automation tool to orchestrate, provision, deploy or install your infrastructure. Their goal is to be “simple” as in easy to use, yet very powerful in its features.

As an example, let’s say that you have an application that has a lot of prerequired steps to be installed on a fresh environment. In a delivery pipeline you would have to automate those preqrequired steps so

Read More