Fix disk image create errors behind proxy

This commit fixes errors while trying to create a
DIB ramdisk with ironic-agent element when built
behind proxy. It fixes the issue by making it install
latest versions of pip and setuptools which has the
fixes for them.

Change-Id: I1ffb832ebab009b2d77a46e6c8fc758dd9632359
Closes-Bug: 1449852
This commit is contained in:
Ramakrishnan G 2015-04-29 05:40:30 +00:00
parent 703313fb18
commit afe739ceed
1 changed files with 8 additions and 1 deletions

View File

@ -6,10 +6,17 @@ fi
set -eu set -eu
set -o pipefail set -o pipefail
install-packages python-dev python-pip qemu-utils parted hdparm util-linux genisoimage gcc install-packages python-dev qemu-utils parted hdparm util-linux genisoimage gcc
# Install the latest version of pip and setuptools which has some
# fixes for building behind proxy.
curl -o /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py
python /tmp/get-pip.py
pip install -U setuptools
pip install -r /tmp/ironic-python-agent/requirements.txt pip install -r /tmp/ironic-python-agent/requirements.txt
pip install /tmp/ironic-python-agent pip install /tmp/ironic-python-agent
rm -f /tmp/get-pip.py
sudo echo $'[Unit] sudo echo $'[Unit]
Description=Ironic Python Agent\n Description=Ironic Python Agent\n