Skip to content

Commit

Permalink
Fixed the Vagrant setup issues
Browse files Browse the repository at this point in the history
Forced https for pip. Old Ubuntu or just my machine using http?
Added `sudo` for later calls that didn't have permissions.
  • Loading branch information
GSGBen authored and jathanism committed Jan 12, 2018
1 parent 683acf5 commit 2984d4c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ export DEBIAN_FRONTEND=noninteractive
sudo apt-get -y update
sudo apt-get -y install build-essential python-dev libffi-dev libssl-dev
sudo apt-get -y install python-pip
sudo pip install --upgrade pip
sudo pip install requests[security]
sudo pip install --upgrade setuptools
sudo pip install nsot mrproxy
mkdir /home/vagrant/.nsot
nsot-server init /home/vagrant/.nsot/nsot.conf.py
chown -R vagrant:vagrant /home/vagrant/.nsot
sed -i "s/localhost/0.0.0.0/" /home/vagrant/.nsot/nsot.conf.py
nsot-server --config=/home/vagrant/.nsot/nsot.conf.py collectstatic --noinput
sudo pip install --index-url=https://pypi.python.org/simple/ --upgrade pip
sudo pip install --index-url=https://pypi.python.org/simple/ requests[security]
sudo pip install --index-url=https://pypi.python.org/simple/ --upgrade setuptools
sudo pip install --index-url=https://pypi.python.org/simple/ nsot mrproxy
sudo mkdir /home/vagrant/.nsot
sudo nsot-server init /home/vagrant/.nsot/nsot.conf.py
sudo chown -R vagrant:vagrant /home/vagrant/.nsot
sudo sed -i "s/localhost/0.0.0.0/" /home/vagrant/.nsot/nsot.conf.py
sudo nsot-server --config=/home/vagrant/.nsot/nsot.conf.py collectstatic --noinput
SHELL

end

0 comments on commit 2984d4c

Please sign in to comment.