From 520704efc734653c8af4645616f7502bd8c58e44 Mon Sep 17 00:00:00 2001 From: Siming Yuan Date: Thu, 24 Jan 2019 10:31:44 -0500 Subject: [PATCH] - added extra deps for alpine for latest unicon - workaround for https://github.com/pypa/pip/pull/6171 --- 5.1/alpine/Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/5.1/alpine/Dockerfile b/5.1/alpine/Dockerfile index 7c1f5a8..862a8ab 100644 --- a/5.1/alpine/Dockerfile +++ b/5.1/alpine/Dockerfile @@ -8,7 +8,9 @@ RUN apk add python3 \ linux-headers \ musl-dev \ busybox-extras \ - openssh-client + openssh-client \ + libffi-dev \ + openssl-dev # workspace location ARG WORKSPACE @@ -17,8 +19,12 @@ ENV WORKSPACE ${WORKSPACE:-/pyats} # copy wheel files into repo ADD src /src +# upgrade system pip +# (otherwise some dependencies will fail to install) +RUN pip3 install --upgrade pip + # install pyats into system python -RUN pip3 install --no-cache-dir /src/* +RUN pip3 install --no-use-pep517 --no-cache-dir /src/* # create virtual environment # - preserve system package usage