VOL-2241: Python 3 migration

 - update and remove unused requirements
 - use python/debian buster base image (includes pip)

Change-Id: I9d55f1c6ed87bbb1cee8e86fe66eb29797680f80
3 files changed
tree: 68d99cc063c3b811f08ae9f9aafd14274a2ec0b2
  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.