Introduction to Docker: Setup

Docker installations

To install Docker on your machine follow the official instructions for Linux, Mac, or Windows.

If you are using Linux, then please also follow these post installation instructions.

To test your docker set up, run the following command:

docker run hello-world

Optional: Fetch docker images in advance

Once you’ve got docker up and running, do the following docker image pulls in advance to save waiting during the tutorial:

docker pull matthewfeickert/intro-to-docker
docker pull debian:buster-slim
docker pull python:2.7-slim
docker pull python:3.7-slim
docker pull rootproject/root:6.22.06-conda

Analysis Code

Later in this tutorial, you will be asked to work with a simple analysis that utilizes the CMS OpenData to search for Higgs to 2 tau leptons. The full analysis itself can be found here - and there is a dedicated set of training lessons (videos available). These are then used as input to the continuous integration training (videos available).

Though it is best if you work through these lessons, the key point is that we will assume you have two GitLab repos in your namespace :

You can either do this yourself by following the aforementioned lessons, or if you’d like to start fresh you can use the following ‘starter’ repos that you can directly fork into your namespace and work directly from:

Skimming code: https://github.com/hsf-training/hsf-training-cms-analysis-snapshot

Fitting code: https://github.com/hsf-training/hsf-training-cms-analysis-snapshot-stats

A few things to keep in mind if starting from these ‘starter repos’: