Repository: Yelp/kafka-utils (language: python)

Issue:
Increase upper pin and introduce lower pin on paramiko
Paramiko needs a lower version (https://github.com/Yelp/kafka-utils/issues/146) and we can also allow newer versions of Paramiko.

## Testing Done
`make test` passes (with newer paramiko version)

## Release Plan
I'll have to fix the Pypi.org release mechanism (https://github.com/Yelp/kafka-utils/issues/258) but I plan to do a patch release for this particular change.


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/kafka-utils-ci.yml b/.github/workflows/kafka-utils-ci.yml
index 933a07de..3b32f73b 100644
--- a/.github/workflows/kafka-utils-ci.yml
+++ b/.github/workflows/kafka-utils-ci.yml
@@ -2,12 +2,13 @@
 # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
 
 name: kafka-utils-ci
-on: [push, pull_request]
+on: [pull_request, release]
 
 jobs:
   tox:
     runs-on: ubuntu-20.04
     strategy:
+      fail-fast: false
       matrix:
         toxenv:
           - py36-unittest
diff --git a/docker/kafka/Dockerfile b/docker/kafka/Dockerfile
index a9247634..4fc0b5b8 100644
--- a/docker/kafka/Dockerfile
+++ b/docker/kafka/Dockerfile
@@ -1,5 +1,6 @@
-FROM ubuntu:16.04
+FROM ubuntu:18.04
 MAINTAINER Team Data Streams Core <data-streams-core@yelp.com>
+ENV DEBIAN_FRONTEND noninteractive
 
 ARG KAFKA_VERSION
 
diff --git a/docker/zookeeper/Dockerfile b/docker/zookeeper/Dockerfile
index 52133190..a53db730 100644
--- a/docker/zookeeper/Dockerfile
+++ b/docker/zookeeper/Dockerfile
@@ -1,5 +1,6 @@
-FROM ubuntu:16.04
+FROM ubuntu:18.04
 MAINTAINER Team Data Streams Core <data-streams-core@yelp.com>
+ENV DEBIAN_FRONTEND noninteractive
 
 RUN apt-get update && apt-get -y install zookeeper
 


Test patch:
diff --git a/docker/itest/Dockerfile b/docker/itest/Dockerfile
index ede218e5..28f518ba 100644
--- a/docker/itest/Dockerfile
+++ b/docker/itest/Dockerfile
@@ -1,5 +1,6 @@
-FROM ubuntu:16.04
+FROM ubuntu:18.04
 MAINTAINER Team Data Streams Core <data-streams-core@yelp.com>
+ENV DEBIAN_FRONTEND noninteractive
 
 ARG KAFKA_VERSION
 # We need to install Java and Kafka in order to use Kafka CLI. The Kafka server
@@ -13,7 +14,7 @@ RUN apt-get update && \
     openjdk-8-jdk
 
 # Install Kafka.
-RUN apt-get update && apt-get install -y \
+RUN apt-get install -y \
     unzip \
     wget \
     curl \
@@ -30,10 +31,7 @@ RUN /tmp/download-kafka.sh && tar xfz /tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSIO
 ENV PATH="$PATH:$KAFKA_HOME/bin"
 
 # Install Python
-RUN apt-get update \
-  && add-apt-repository -y ppa:deadsnakes/ppa \
-  && apt-get update \
-  && apt-get install -y \
+RUN apt-get install -y \
     build-essential \
     libffi-dev \
     libssl-dev \
@@ -41,12 +39,12 @@ RUN apt-get update \
     python2.7-dev \
     python3.6 \
     python3.6-dev \
+    python3-distutils \
     python-pip \
     python-pkg-resources \
     python-setuptools
 
-RUN pip install -U pip
-RUN pip install tox more-itertools==4.2.0
+RUN pip install tox
 
 COPY run_tests.sh /scripts/run_tests.sh
 RUN chmod 755 /scripts/run_tests.sh