update proxy setting in demo

Change-Id: Ibbff634ded0fa73ea8d3da63acd1ae4e485e431f
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
This commit is contained in:
Guo Ruijing 2016-12-29 09:14:30 +08:00
parent 199e239e85
commit a708d4fdf0
2 changed files with 3 additions and 11 deletions

View File

@ -1,14 +1,9 @@
#!/bin/sh
HTTP_PROXY=${HTTP_PROXY:-http://proxy-chain.intel.com:911}
HTTP_PROXY=${HTTP_PROXY:-http://127.0.0.1:1080}
cat <<EOF | sudo tee /etc/apt/apt.conf
Acquire::http::Proxy "$HTTP_PROXY";
EOF
sudo apt-get update -y
sudo apt-get install -y openssh-server git
mv ~/.gitconfig ~/.gitconfig.bak
git config --global http.proxy ${HTTP_PROXY}
git clone https://github.com/openstack/fuel-plugin-ovs/
mv ~/.gitconfig.bak ~/.gitconfig
sudo apt-get install -y openssh-server git redsocks

View File

@ -1,12 +1,9 @@
#!/bin/sh
SOCKS5_IP=${SOCKS5_IP:-10.7.211.16}
SOCKS5_IP=${SOCKS5_IP:-127.0.0.1}
SOCKS5_PORT=${SOCKS5:-1080}
RED_TCPORT=${RED_TCPORT:-6666}
sudo apt-get update -y
sudo apt-get install redsocks -y
cat <<EOF | sudo tee /etc/redsocks.conf
base {
log_debug = on;