Browse Source

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
changes/64/183964/1
Kai Qiang Wu(Kennan) 6 years ago
parent
commit
19aaa9edf6
  1. 5
      Dockerfile

5
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

Loading…
Cancel
Save