tidepool-org / tools

A place to put tooling and scripts that help when working on Tidepool stuff.
Other
11 stars 11 forks source link

setup_vagrant.sh git/mongodb install fails #50

Open Core3dTech opened 8 years ago

Core3dTech commented 8 years ago

The original setup_vagrant.sh doesn't complete successfully due to the fact that git is not installed by default. resolved by adding early on in script:

echo "installing git..."
apt-get install -y git-all

MongoDB fails to install due to packages not found: E: Unable to locate package mongodb-org E: Unable to locate package mongodb-org-server ...

I was able to resolve this by adding an additional apt-get update

echo "Installing MongoDB..."
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list

# Perform Update to get around the package not found issue
apt-get update

apt-get install -y mongodb-org=2.6.5 mongodb-org-server=2.6.5 mongodb-org-shell=2.6.5 mongodb-org-mongos=2.6.5 mongodb-org-tools=2.6.5