Merge "Added proxy settings for maven"
This commit is contained in:
28
devstack/Vagrantfile
vendored
28
devstack/Vagrantfile
vendored
@@ -96,8 +96,32 @@ Vagrant.configure(2) do |config|
|
||||
sudo apt-get -y upgrade
|
||||
sudo apt-get -y install git
|
||||
|
||||
git config --global url.https://git.openstack.org/.insteadOf git://git.openstack.org/
|
||||
sudo git config --global url.https://git.openstack.org/.insteadOf git://git.openstack.org/
|
||||
if [ $http_proxy ]; then
|
||||
git config --global url.https://git.openstack.org/.insteadOf git://git.openstack.org/
|
||||
sudo git config --global url.https://git.openstack.org/.insteadOf git://git.openstack.org/
|
||||
|
||||
protocol=`echo $http_proxy | awk -F: '{print $1}'`
|
||||
host=`echo $http_proxy | awk -F/ '{print $3}' | awk -F: '{print $1}'`
|
||||
port=`echo $http_proxy | awk -F/ '{print $3}' | awk -F: '{print $2}'`
|
||||
|
||||
echo "<settings>
|
||||
<proxies>
|
||||
<proxy>
|
||||
<id>$host</id>
|
||||
<active>true</active>
|
||||
<protocol>$protocol</protocol>
|
||||
<host>$host</host>
|
||||
<port>$port</port>
|
||||
</proxy>
|
||||
</proxies>
|
||||
</settings>" > ./maven_proxy_settings.xml
|
||||
|
||||
mkdir ~/.m2
|
||||
cp ./maven_proxy_settings.xml ~/.m2/settings.xml
|
||||
|
||||
sudo mkdir /root/.m2
|
||||
sudo cp ./maven_proxy_settings.xml /root/.m2/settings.xml
|
||||
fi
|
||||
|
||||
git clone https://git.openstack.org/openstack-dev/devstack
|
||||
sudo pip install numpy
|
||||
|
||||
Reference in New Issue
Block a user