Bugfix: Build docker image failed because of lacking of packages 73/38573/1
authorxudan <xudan16@huawei.com>
Wed, 2 Aug 2017 02:52:58 +0000 (22:52 -0400)
committerxudan <xudan16@huawei.com>
Wed, 2 Aug 2017 02:52:58 +0000 (22:52 -0400)
JIRA: DOVETAIL-475

1. Dovetail fails to build Docker image.
Link: https://build.opnfv.org/ci/view/dovetail/job/dovetail-docker-build-push-master/162/console
   Traceback: Running setup.py install for cryptography
              c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
2. Refer to https://cryptography.io/en/latest/installation/
   For Debian and Ubuntu, the following command will ensure that the required
   dependencies are installed:
   sudo apt-get install build-essential libssl-dev libffi-dev python-dev

Change-Id: Icb705823c58d8a557175d48b00745119c0a6b3b9
Signed-off-by: xudan <xudan16@huawei.com>
docker/Dockerfile

index eb85ea4..c4b1121 100644 (file)
@@ -8,8 +8,11 @@ RUN \
     apt-get update \
 && \
     apt-get install -y \
+        build-essential \
         gcc \
         git \
+        libssl-dev \
+        libffi-dev \
         vim \
         python-dev \
         python-mock \