From 2c4b8220427fe7f518737d567ffa972f949ef649 Mon Sep 17 00:00:00 2001
From: Todd Dembrey <todd.dembrey@torchbox.com>
Date: Fri, 28 Sep 2018 16:19:23 +0100
Subject: [PATCH] update the vagrant box and psql so that we are similar to
 heroku

---
 Vagrantfile          | 4 ++--
 vagrant/provision.sh | 5 +++++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/Vagrantfile b/Vagrantfile
index adc20908d..ba7c97758 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 83db9cd32..ef32938b1 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
 
-- 
GitLab