diff --git a/Vagrantfile b/Vagrantfile index adc20908d26ee33da9968e37309407f107b637b4..ba7c977585ebff5234df1682102354c98ea57351 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -21,8 +21,8 @@ Vagrant.configure(2) do |config| # Every Vagrant development environment requires a box. You can search for # boxes at https://atlas.hashicorp.com/search. - config.vm.box = "torchbox/wagtail-jessie64" - config.vm.box_version = "~> 2.0" + config.vm.box = "torchbox/wagtail-stretch64" + config.vm.box_version = "~> 1.0.0" # Disable automatic box update checking. If you disable this, then # boxes will only be checked for updates when the user runs diff --git a/vagrant/provision.sh b/vagrant/provision.sh index 83db9cd321a1be84a54e52b779e59eac66038562..ef32938b14bd594d31e2ebd3462346dc34934f6b 100755 --- a/vagrant/provision.sh +++ b/vagrant/provision.sh @@ -9,6 +9,11 @@ VIRTUALENV_DIR=/home/vagrant/.virtualenvs/$PROJECT_NAME PYTHON=$VIRTUALENV_DIR/bin/python PIP=$VIRTUALENV_DIR/bin/pip +# Upgrade to postgres 10 +apt-get update -y +apt-get remove -y --purge postgresql-* +apt-get install -y postgresql-10 postgresql-client-10 postgresql-contrib-10 +su - postgres -c "createuser -s vagrant" # Create database