Make PIP_GET_PIP_URL configurable via local.conf
The default get_pip url regulary times out when starting devstack from behind company firewalls. Making this a configureable variable, user can make use of internal git-pip.py mirrors without modifying any code. Change-Id: I66a5534d51ab23a4d8586c27d37b4b6b8a6892c9
This commit is contained in:
parent
b3b5eebaf5
commit
0063495b00
@ -24,7 +24,20 @@ set -o xtrace
|
|||||||
|
|
||||||
FILES=$TOP_DIR/files
|
FILES=$TOP_DIR/files
|
||||||
|
|
||||||
PIP_GET_PIP_URL=https://bootstrap.pypa.io/get-pip.py
|
# The URL from where the get-pip.py file gets downloaded. If a local
|
||||||
|
# get-pip.py mirror is available, PIP_GET_PIP_URL can be set to that
|
||||||
|
# mirror in local.conf to avoid download timeouts.
|
||||||
|
# Example:
|
||||||
|
# PIP_GET_PIP_URL="http://local-server/get-pip.py"
|
||||||
|
#
|
||||||
|
# Note that if get-pip.py already exists in $FILES this script will
|
||||||
|
# not re-download or check for a new version. For example, this is
|
||||||
|
# done by openstack-infra diskimage-builder elements as part of image
|
||||||
|
# preparation [1]. This prevents any network access, which can be
|
||||||
|
# unreliable in CI situations.
|
||||||
|
# [1] http://git.openstack.org/cgit/openstack-infra/project-config/tree/nodepool/elements/cache-devstack/source-repository-pip
|
||||||
|
|
||||||
|
PIP_GET_PIP_URL=${PIP_GET_PIP_URL:-"https://bootstrap.pypa.io/get-pip.py"}
|
||||||
LOCAL_PIP="$FILES/$(basename $PIP_GET_PIP_URL)"
|
LOCAL_PIP="$FILES/$(basename $PIP_GET_PIP_URL)"
|
||||||
|
|
||||||
GetDistro
|
GetDistro
|
||||||
|
Loading…
Reference in New Issue
Block a user