Install libssl-dev and libffi-dev

On official ubuntu docker images, those libs are not
installed by default and are needed to compile the
python crypto modules.

Change-Id: If73529d2c1f3702ec55ea5520510eaef5016c1ba
This commit is contained in:
Ghe Rivero 2016-05-19 22:42:53 +02:00
parent d87b5cf329
commit 7585b5c871
1 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,12 @@ if [ -x '/usr/bin/apt-get' ]; then
sudo -H apt-get -y install python-virtualenv
fi
fi
if ! $(dpkg -l libssl-dev &>/dev/null); then
sudo -H apt-get -y install libssl-dev
fi
if ! $(dpkg -l libffi-dev &>/dev/null); then
sudo -H apt-get -y install libffi-dev
fi
elif [ -x '/usr/bin/yum' ]; then
if ! $(python --version $>/dev/null); then
sudo -H yum -y install python