From 19aaa9edf6a43c206cd454e5a523d7c044a32075 Mon Sep 17 00:00:00 2001 From: "Kai Qiang Wu(Kennan)" Date: Mon, 18 May 2015 11:11:20 +0800 Subject: [PATCH] Fix the docker build image issue The python cryptography issue, check http://www.123code.blogspot.com/2014/10/fixed-installing-python-cryptography.html The ubuntu pip issue, check http://stackoverflow.com/questions/27341064/how-do-i-fix-importerror-cannot-import-name-incompleteread Closes-Bug: #1455420 Change-Id: I8cb78f990c08cb527ebce3fa720537b5c03eb942 --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6c219fd141..80f686c20e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,11 +29,14 @@ FROM ubuntu:14.04 MAINTAINER Davanum Srinivas # Install basic applications and Python tools -RUN apt-get update && apt-get install -y tar git curl nano wget dialog net-tools build-essential python python-dev python-distribute python-pip +RUN apt-get update && apt-get install -y tar git curl nano wget dialog net-tools build-essential libssl-dev libffi-dev python python-dev python-distribute python-pip # Copy the application folder inside the container ADD . /magnum +# Upgrade pip since ubuntu pip package has bug +RUN easy_install -U pip + # Get pip to download and install requirements: RUN pip install -r /magnum/requirements.txt