Here is a playbook for Ansible to install Docker and Docker Compose on Debian.

You can of course, use a role from Galaxy. You have Gerling’s version or Debops (Ansible stack for Debian).

But here I wanted to implement the install guide from Docker – and translate this into an Ansible playbook (which then should be turn into a custom role for more reusability).

The official guide give use the following install steps:

  1. Update the apt package index
  2. Install packages to allow apt to use a repository over HTTPS
  3. Add Docker’s official GPG key
  4. Add Docker’s official Apt Repository
  5. Then refresh the apt index
  6. Install docker from the package

Yeah, that’s a few steps. But that’s the best way to make sure you always have the last version of docker. Docker is a project that is moving fast and you cannot wait for your favourite distrib to give you the right package, it will always be dirty old version you don’t want. Maybe in some future when things get a bit more stable it will be enough to install it from debian default – but for now that’s really a bad idea.

So, let’s cut the chase here is a the playbook – with comments to make things easy to follow if anything is unclear.


---
- hosts: all
  tasks:
  - name: Update the apt package index
    become: yes
    apt:
      name: "*"
      state: latest
      update_cache: yes
      force_apt_get: yes
  - name: Install packages for apt add repository over HTTPS
    become: yes
    apt:
      name: "{{ packagesdep }}"
      force_apt_get: yes
      state: latest
      update_cache: yes
    vars:
      packagesdep:
      - git
      - apt-transport-https
      - ca-certificates
      - wget
      - software-properties-common
      - gnupg2
      - curl
  - name: Add Apt signing key from official docker repo
    apt_key:
      url: https://download.docker.com/linux/debian/gpg
      state: present
  - name: add docker official repository for Debian Stretch
    apt_repository:
      repo: deb [arch=amd64] https://download.docker.com/linux/debian stretch stable
      state: present
  - name: Index new repo into the cache
    become: yes
    apt:
      name: "*"
      state: latest
      update_cache: yes
      force_apt_get: yes
  - name: actually install docker
    apt:
      name: "docker-ce"
      state: latest

Now this works pretty fine – but we still need to add docker compose – so we do the same – we follow the official documentation – which surprisingly enough do not provide a package but instruct us to curl something – not even with a “latest” tag… so this will require some maintaining – which is annoying but will do for now.

So the step are simple:

  1. Download the latest version of Docker Compose
  2. Add executable permissions to the binary

For this we use the module get_url from Ansible – which replace the curl and allow us to also define the permissions on the fly.


- name: Ensure docker-compose is installed and available
    get_url:
      url: https://github.com/docker/compose/releases/download/1.22.0/docker-compose-{{ ansible_system }}-{{ ansible_userspace_architecture }}
      dest: /usr/local/bin/docker-compose
      mode: 'u+x,g+x'

And that’s it.

As you can see we also made use of {{ansible_system}} and {{ ansible_userspace_architecture }} to replace respectively uname -s and uname -m – if you want a full list of Ansible variables available – you can go check the doc here.

That’s it!

For what it’s worth, I have been noticing a raising interest for empathy in the past few years.

It’s been popping everywhere from a variety of fields, either in business and entrepreneurship, human resources and management to more more remote fields like design and product development as well as the obvious therapy and education fields.

Science seems to have discovered a couple of years ago that we are wired for it:

but science isn’t really everything there is to it – I mean look at this article about this lady being a lead researcher on empathy, and she still managed to bullied colleagues and staff.

It seems like it is not enough to know how empathy work to apply it.

And this why it’s interesting because the places where I saw it popped recently were mostly from people who need this in their day-to-day

You see empathy being the first step of a design process taught in Stanford University design class:

IDEO design thinking process

Empathy is at the core of HR prone by Claude Silver.

Empathy is also the tool used to trigger creativity and collaboration,
Practical Empathy: For Collaboration and Creativity in Your Work

You can go to Empathy Bootcamps :

Empathy Bootcamp

to learn how to better your relationships, improve your love life.

It seems like empathy is the secret sauce of successful relationships.

And empathy is something people want to learn

Screen Shot 2018 09 28 at 11 37 14

Funny enough, it is not something that’s easy to absorb, but it could be that storytelling is a way to do it.

I liked the exercise done by Sam Richards during a TED talk to try to create empathy in the audience

Note that the talk itself is not about empathy – but he tries to use empathy to get his point across.

That’s just one example, but I am sure that the need to compensate our lack of natural skills for understanding other can be taught, in some way…

And since mentions of empathy don’t seems to lack, probably something that should be taught.

Praised by designers
Screen Shot 2018 09 28 at 12 26 18

to business people:

Screen Shot 2018 09 28 at 12 26 27

Talked about by consultants as the key to leadership:

And praised as the element fix the problem with online hate :

Something to think about…

docker stop $(docker ps -a -q) #stop all
docker rm $(docker ps -a -q) #remove all

Simple.

You can make an alias and it to your bash profile :

alias dockerstopall='docker stop $(docker ps -a -q)'
alias dockerrmall='docker rm $(docker ps -a -q)'

Why You Don’t Understand “Disruption”
by Bill Barnett

where you learn that Kodak invented Instagram in the 90’s.

What Your Innovation Process Should Look Like
where Steve Blank share some knowledge on innovation processes inside an organisation

Optimize when you can, standardize if you must.

Not 100% on innovation but still important to understand how to approach these two parameters of every technological project

The Principal Agent Problem

The Principal Agent Problem occurs when one person (the agent) is allowed to make decisions on behalf of another person (the principal). In this situation, there are issues of moral hazard and conflicts of interest.

The Principal Agent Problem

Hayek’s Knowledge problem

Frequently mentioned as the most important essays in the history of economic thought, Hayek’s essay “The Use of Knowledge in Society” question the fundamental problem that economics exists to solve?

“The knowledge of the circumstances of which we must make use never exists in concentrated or integrated form,” explains Hayek, “but solely as the dispersed bits of incomplete and frequently contradictory knowledge which all the separate individuals possess.”

In short he explains that for society to make the best use of all available resources it needs decentralisation together with a price system that communicates information to all market participants.

The Use of Knowledge in Society

Source: Podcast with Adams Jacob from Chef

Right now, the most common line of thinking – when it comes to digital transformation – is we will take some large enterprise, like Procter and Gamble, and we’re going to rewrite Procter and Gamble so that it works the way Google works.

So, if Google had built Procter and Gamble, what would Google have done? And that’s our strategy.

The big plot is to take the entirety of your business, burn it to the ground, and then rebuild it as if they were another organisation they have never seen before, in a pattern they’ve never seen?

These things don’t work…

Yet, today that’s the predominant strategic theory,

If I take the tools, and the culture, and the pieces of the palaces in Menlo Park and I somehow figure out how to go from being Procter and Gamble to being Google, then it’s going to work.”

And it probably wont.

What’s going to happen is someone at Procter and Gamble, it won’t be me and it won’t be Charity, it’s going to be someone at Procter and Gamble who picks up Honeycomb, who picks up Chef, who picks up Kubernetes, who picks up whatever. And they’re going to make it Procter and Gamble.

What pops out the other side, it won’t be us who tells Procter and Gamble how to transform.

Procter and Gamble is going to transform, and then they’re going to tell everybody else, after a decade or more of us being like, “Hey, you should try it this way. What about doing it like this? Hey, Google does it this way. How about this? Facebook works like that.”

They’re going to be like, “Hold my beer. This is how Procter and Gamble does it. We’re deploying 100 thousand times a day, we’re doing the world’s greatest science you’ve ever seen and we’re adapting technology every inch as fast. We can get resources whenever we need them. We spun up a cancer research project in ten minutes on internal hardware. We developed custom motherboards to do the blah-blahs.”

And everybody is going to be like, “You did what?!” And Procter and Gamble’s stock price will go through the roof, and next thing you know the enterprise will actually start transforming. But they’ll be transforming to themselves, not to us.

The ad

Screen Shot 2018 08 22 at 14 28 35

At LinkedIn, we are transforming the way organisations attract talent. Join us in changing the way the world works. The SMB Solutions team is looking for a French-speaking Media Solutions Manager to drive success with our campaign media customers. Using your analytical, influencing and relationship building skills, you will act as a business partner to the French and German SMB market, partnering with the sales team and our clients to ensure talent attraction and business development campaigns are utilised and optimised, and to ensure our customers come back for more! You will have the opportunity to work across a variety of industries, inspiring organisations with your expertise to transform their recruitment function by using LinkedIn’s most strategic and advanced campaign platform.

What I read

We need somebody to push our ad product in french (slow to adapt). We’ll hook you with the rest of guys trying to penetrate the European market. All industries are welcome, just get people to buy.

kthxbai.

 

Must watch :

About surveys : 18min47

 

Note to self : must do a summary of this awesome talk

Heuristic Evaluation

A heuristic evaluation is a usability inspection method for computer software that helps to identify usability problems in the user interface (UI) design. It specifically involves evaluators examining the interface and judging its compliance with recognized usability principles (the “heuristics”). These evaluation methods are now widely taught and practiced in the new media sector, where UIs are often designed in a short space of time on a budget that may restrict the amount of money available to provide for other types of interface testing.

quoted from wikipedia