VOL-2131 Create voltha python base docker image

Change-Id: I2c996b72903f0445674041ba6ec597ce3981ba2f
5 files changed
tree: 942625399f3155a02deb398410b50e99ae279857
  1. Dockerfile
  2. Makefile
  3. README.md
  4. VERSION
  5. requirements.txt
README.md

voltha-python-base

Ubuntu image with Python and pip packages as a generic base for VOLTHA 2.x containers. This exists because build duplication of the same apt and pip install dependencies cause needless build delay times. Also this guarantees a consistent set of dependencies needed for stability.

By making a base image the compilation time is avoided and having a shared base image can speed image downloads.

Characteristics

  • Has no VOLTHA-specific code and it's own VERSION independent of VOLTHA development, so changes will happen more slowly, only when Ubuntu, Python or included packages have new releases.

  • Installed via apt:

    • Standard toolchain (gcc, make, etc.) for building native extensions in Python
    • Libraries to build dependencies - libpcap-dev, python-dev, libressl, libffi
    • python2, pip, setuptools
  • Installed via pip:

    • gRPC python libraries, and googleapi common protobuf definitions
    • kafkaloghandler
    • PyYAML
    • etcd
    • Twisted
    • among others...

Building

Run make build to build the container image, make push to send to a registry.

Testing

Currently the only test is to perform a container image build.