Table of Contents

Installing Paparazzi using Docker

In this tutorial will be installing Paparazzi using Docker. Docker is an open platform used to build, ship, and run distributed applications.

Installing Docker

This instructions are for Debian. If you use another Linux distribution, check the installation instructions on the Docker Page.

Docker is supported on the following versions:

Prerequisites

Check that your kernel version is 3.10 or newer. Kernels older than 3.10 lack some of the features required to run Docker containers. These older versions are known to have bugs which cause data loss and frequently panic under certain conditions.

To check your kernel version, type in a terminal

  $ uname -r

If is older than 3.10, please update it.

Installing instructions

   $ sudo apt-get remove docker docker-engine docker.io
   $ sudo apt-get update
   $ sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common

If you are using Wheezy use this:

   $ sudo apt-get update    
   $ sudo apt-get install apt-transport-https ca-certificates curl gnupg2 python-software-properties
   $ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -

On Debian Stretch

  deb [arch=amd64] https://download.docker.com/linux/debian stretch stable

On Debian Jessie

  deb [arch=amd64] https://download.docker.com/linux/debian jessie stable

On Debian Wheezy

  deb [arch=amd64] https://download.docker.com/linux/debian wheezy stable
  $ sudo apt-get update
  $ sudo apt-get install docker-ce
  $ sudo service docker start
  $ sudo docker run hello-world

If displays a message like this

  Unable to find image 'hello-world:latest' locally
  latest: Pulling from library/hello-world
  535020c3e8ad: Pull complete
  af340544ed62: Pull complete
  Digest: sha256:a68868bfe696c00866942e8f5ca39e3e31b79c1e50feaee4ce5e28df2f051d5c
  Status: Downloaded newer image for hello-world:latest
  
  Hello from Docker.
  This message shows that your installation appears to be working correctly.
  
  To generate this message, Docker took the following steps:
   1. The Docker Engine CLI client contacted the Docker Engine daemon.
   2. The Docker Engine daemon pulled the "hello-world" image from the Docker Hub.
   3. The Docker Engine daemon created a new container from that image which runs the
      executable that produces the output you are currently reading.
   4. The Docker Engine daemon streamed that output to the Docker Engine CLI client, which sent
   it
   to your terminal.
   
  To try something more ambitious, you can run an Ubuntu container with:
   $ docker run -it ubuntu bash
  
  Share images, automate workflows, and more with a free Docker Hub account:
   https://hub.docker.com
  
  For more examples and ideas, visit:
   https://docs.docker.com/userguide/

Docker is succesfully installed.

Installing Paparazzi

  $ git clone https://github.com/paparazzi/paparazzi.git
  $ cd paparazzi/docker
  $ sudo make build
  $ sudo make bash
  $ make
  $ exit
  $ sudo make paparazzi

Any modification in the cloned Paparazzi repository will be reflected in the Paparazzi docker image.