Skip to content

Commit

Permalink
Merge pull request #1 from udacity/master
Browse files Browse the repository at this point in the history
Update from main repo.
  • Loading branch information
karlud authored May 9, 2017
2 parents 483ecd3 + 517662b commit 0a7c53b
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,27 @@

Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial32"
config.vm.network "forwarded_port", guest: 8000, host: 8000
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.network "forwarded_port", guest: 5000, host: 5000
config.vm.network "forwarded_port", guest: 8000, host: 8000, host_ip: "127.0.0.1"
config.vm.network "forwarded_port", guest: 8080, host: 8080, host_ip: "127.0.0.1"
config.vm.network "forwarded_port", guest: 5000, host: 5000, host_ip: "127.0.0.1"
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get upgrade
apt-get -qqy install make python3-pip
apt-get -qqy install postgresql
apt-get -qqy update
apt-get -qqy upgrade
apt-get -qqy install make zip unzip postgresql
apt-get -qqy install python3 python3-pip
pip3 install --upgrade pip
pip3 install flask packaging oauth2client redis passlib flask-httpauth
pip3 install sqlalchemy flask-sqlalchemy psycopg2 bleach
apt-get -qqy install python python-pip
pip2 install --upgrade pip
pip2 install flask packaging oauth2client redis passlib flask-httpauth
pip2 install sqlalchemy flask-sqlalchemy psycopg2 bleach
su postgres -c 'createuser -dRS ubuntu'
su ubuntu -c 'createdb'
su ubuntu -c 'createdb news'
su ubuntu -c 'createdb forum'
su ubuntu -c 'psql forum -f /vagrant/forum/forum.sql'
Expand All @@ -27,5 +35,7 @@ Vagrant.configure("2") do |config|
cd redis-stable
make
make install
echo "Done installing your virtual machine!"
SHELL
end

0 comments on commit 0a7c53b

Please sign in to comment.