aboutsummaryrefslogtreecommitdiffstats
path: root/docker/config_install_env.sh
blob: ed67994f09f479ca3ff87156d1bf2521fb6b5ec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

set -e

PIP_PATH=~/.pip
PIP_CONF=$PIP_PATH/pip.conf
EASY_INSTALL_CONF=~/.pydistutil.cfg

if [ "x$BASE_PIP_URL" = "x" ];then
    exit 0
fi

echo "config pip and easy_install"
HOSTNAME=`echo $BASE_PIP_URL | awk -F '[:/]' '{print $4}'`
if [ "x$HOSTNAME" = "x" ]; then
    echo "invalid BASE_PIP_URL: $BASE_PIP_URL"
    exit 1
fi

if [ ! -d $PIP_PATH ];then
    mkdir $PIP_PATH
fi

echo -e "[global]\ntrusted-host = $HOSTNAME\nindex-url = $BASE_PIP_URL\ntimeout = 6000" > $PIP_CONF
echo -e "[easy_install]\nindex-url = $BASE_PIP_URL\nfind-links = $BASE_PIP_URL" > $EASY_INSTALL_CONF
">.. toctree:: .. include:: ./apex-os-odl_l2-nofeature-ha.rst .. toctree:: .. include:: ./joid-os-odl_l2-nofeature-ha.rst .. Add each of the scenario files as they are set to .. release ready and the results are available for publishing. .. apex-os-ocl-nofeature-ha.rst .. apex-os-odl_l2-sfc-ha.rst .. apex-os-odl_l3-nofeature-ha.rst .. apex-os-onos-nofeature-ha.rst .. apex-os-odl_l2-nofeature-ha.rst .. compass-os-onos-nofeature-ha.rst .. compass-os-ocl-nofeature-ha.rst .. compass-os-odl_l2-nofeature-ha.rst .. fuel-os-nosdn-kvm-ha.rst .. fuel-os-nosdn-nofeature-ha.rst .. fuel-os-nosdn-ovs-ha.rst .. fuel-os-odl_l2-bgpvpn-ha.rst .. fuel-os-odl_l2-nofeature-ha.rst .. fuel-os-odl_l3-nofeature-ha.rst .. fuel-os-onos-nofeature-ha.rst .. joid-os-nosdn-nofeature-ha.rst .. joid-os-ocl-nofeature-ha.rst .. joid-os-odl_l2-nofeature-ha.rst .. joid-os-onos-nofeature-ha.rst