Install latest requirment packages 49/29549/2
authorwu.zhihui <wu.zhihui1@zte.com.cn>
Wed, 1 Mar 2017 08:52:29 +0000 (16:52 +0800)
committerwu.zhihui <wu.zhihui1@zte.com.cn>
Wed, 1 Mar 2017 09:07:05 +0000 (17:07 +0800)
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 <wu.zhihui1@zte.com.cn>
docker/Dockerfile

index f2a543e..1366513 100644 (file)
@@ -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