Install the agent from pypi instead of git master
Change-Id: Id615458fd27c8aa4c39a95d45511426262257c8a
This commit is contained in:
parent
68a5540581
commit
8f9cf572a9
@ -67,10 +67,9 @@ resources:
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
sudo apt-add-repository "deb http://nova.clouds.archive.ubuntu.com/ubuntu/ trusty multiverse"
|
sudo apt-add-repository "deb http://nova.clouds.archive.ubuntu.com/ubuntu/ trusty multiverse"
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y install iperf netperf git python-dev libzmq-dev screen
|
sudo apt-get -y install iperf netperf python-dev libzmq-dev screen
|
||||||
wget -O get-pip.py https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py
|
wget -O get-pip.py https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py
|
||||||
sudo pip install pbr netperf-wrapper
|
sudo pip install pbr netperf-wrapper pyshaker-agent
|
||||||
git clone git://git.openstack.org/stackforge/shaker && cd shaker && sudo pip install -r requirements.txt && sudo python setup.py develop
|
|
||||||
sudo sed -i '1i supersede interface-mtu 1458;' /etc/dhcp/dhclient.conf
|
sudo sed -i '1i supersede interface-mtu 1458;' /etc/dhcp/dhclient.conf
|
||||||
echo -e 'start on startup\ntask\nexec /usr/bin/screen -dmS sudo nice -n -20 /usr/bin/iperf -s' | sudo tee /etc/init/iperf-tcp.conf
|
echo -e 'start on startup\ntask\nexec /usr/bin/screen -dmS sudo nice -n -20 /usr/bin/iperf -s' | sudo tee /etc/init/iperf-tcp.conf
|
||||||
echo -e 'start on startup\ntask\nexec /usr/bin/screen -dmS sudo nice -n -20 /usr/bin/iperf -s --udp' | sudo tee /etc/init/iperf-udp.conf
|
echo -e 'start on startup\ntask\nexec /usr/bin/screen -dmS sudo nice -n -20 /usr/bin/iperf -s --udp' | sudo tee /etc/init/iperf-udp.conf
|
||||||
|
@ -13,7 +13,8 @@ export PBR_VERSION="$(git describe --exact-match)"
|
|||||||
|
|
||||||
cd ${TEMP_DIR}
|
cd ${TEMP_DIR}
|
||||||
echo "Building pyshaker-agent version ${PBR_VERSION}"
|
echo "Building pyshaker-agent version ${PBR_VERSION}"
|
||||||
python setup.py sdist upload
|
python setup.py sdist
|
||||||
|
twine upload -s dist/*
|
||||||
|
|
||||||
cd -
|
cd -
|
||||||
rm -rf ${TEMP_DIR}
|
rm -rf ${TEMP_DIR}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user