From: wu.zhihui Date: Wed, 1 Mar 2017 08:52:29 +0000 (+0800) Subject: Install latest requirment packages X-Git-Tag: danube.1.0~67 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=473deae9a10162f000c49ca49b4e31b28c4bf0d8;p=qtip.git Install latest requirment packages When I debug code in qtip container, I found the version of paramiko(1.16.0) is outdated. There is a bug based on this version.[1] Solution: 1. Pip install qtip requirment packages with -U. 2. Update dependent packages.[2][3] And docker image is built successfully on local. [1] http://stackoverflow.com/questions/42029415/ paramiko-futurewarning-ctr-mode-needs-counter-parameter [2] http://www.paramiko.org/installing.html [3] https://cryptography.io/en/latest/installation/ Change-Id: I9d90c49f7cf3048f4717a76ffcb19dab68a687d4 Signed-off-by: wu.zhihui --- diff --git a/docker/Dockerfile b/docker/Dockerfile index f2a543e6..13665131 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -22,6 +22,9 @@ RUN apt-get update && apt-get install -y \ gcc \ ssh \ expect \ + build-essential\ + libssl-dev\ + libffi-dev\ python-matplotlib \ python-dev \ python-pip \ @@ -57,7 +60,7 @@ RUN git config --global http.sslVerify false RUN git clone -b $BRANCH https://gerrit.opnfv.org/gerrit/qtip $REPOS_DIR/qtip RUN git clone https://gerrit.opnfv.org/gerrit/releng $REPOS_DIR/releng -RUN pip install -r $REPOS_DIR/qtip/requirements.txt +RUN pip install -U -r $REPOS_DIR/qtip/requirements.txt #Config supervisor RUN mkdir -p /var/log/supervisor