Skip to main content

Docker

Analytics without Google

After rebuilding this site and my work site, I wanted a view into whether people were visiting the sites, and if they are, which pages they were interested in. I have simple needs: How many people are visiting When are they visiting What are they visiting If they’re referred from another site, which I don’t want to know anything else, nor do I want to give any of my visitor details to Google. When I started looking into alternatives I came across It’s not me, Google, it’s you - from GA to Fathom by Jeff Geerling. Those who work with Ansible, may recognize him for his Ansible roles or his book (Ansible for DevOps). Both are highly recommended.

Returning from PTS 2019

My first Perl Toolchain Summit has come to a close and it was amazing and productive. I spent a lot of my time containerizing MetaCPAN, talking and helping other groups with Docker solutions for their projects, and laying out future work and directions. All of which would have been difficult if it weren’t for the summit bringing everyone together. A workflow to create base level images was developed with automatic generation and uploading to docker hub via Travis and Docker Hub. These details were shared with all in attendance who were interested.

Heading to PTS 2019

It’s with great honour that I will be attending the Perl Toolchain Summit in Marlow England. Taking place from April 25 to 28. Olaf, Leo and I have been discussing MetaCPAN infrastructure and with the work that’s been done in getting docker containers running for developers migrating that to running containers on the existing infrastructure. Images will be maintained using the combination of GitHub, Travis, and Docker Hub as outlined in this blog post by Vaidik Kapoor on Medium.

Docker Compose Explained

Tonight I gave a talk at Toronto Perl Mongers discussing docker-compose. This month’s topic started as a discussion at the end of my presentation last month, as I was using containers to demonstrate OpenAPI interaction. There was a lot of attendee involvement in the during the presentation. Plenty of questions and discussions. The use of docker containers for MetaCPAN dominated the conversation and examples, as I had the ability to show how they worked and work with the containers running on my system.

Ansible, Docker, and Ubuntu

By default Ubuntu/Debian docker images do not include python as part of the distribution. Before running Ansible tasks against containers, including fact gathering, python must be installed. The value of ansible_os_family can not be used because it’s not available until after facts have been gathered. - hosts: docker-containers gather_facts: False pre_tasks: - name: Check for apt (Debian family) raw: "test -e /usr/bin/apt" register: apt_installed ignore_errors: true - name: Install python for Ansible raw: "[ -e /usr/bin/python ] || (apt -y update && apt install -y python-minimal)" register: output when: apt_installed and apt_installed.rc == 0 changed_when: output.stdout != "" Answering a couple questions that the above might cause: