From 7cbc923311e62177766a0534be56c037cd76a98c Mon Sep 17 00:00:00 2001 From: Brendan Jackman Date: Tue, 18 Oct 2016 11:31:10 +0100 Subject: [PATCH 1/2] Vagrantfile: Bail out of provisioning if anything fails If something fails to install in the provisioning script, the script currently continues, burying the error in the log. `set -e` means the shell exits with an error if any command fails. --- Vagrantfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index 86c95ac34..f45c0110a 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -14,6 +14,8 @@ Vagrant.configure(2) do |config| config.vm.network "forwarded_port", guest: 8888, host: 8888 config.vm.provision "shell", inline: <<-SHELL + set -e + sudo apt-get update sudo apt-get install -y autoconf automake build-essential expect git \ libfreetype6-dev libpng12-dev libtool nmap openjdk-7-jdk \ -- GitLab From bf6d5e18df812be8f597615e19e15f39e6ee980e Mon Sep 17 00:00:00 2001 From: Brendan Jackman Date: Tue, 18 Oct 2016 11:38:58 +0100 Subject: [PATCH 2/2] Vagrantfile: Explicitly install Cython before pandas Pandas 1.19 requires Cython but it is not automatically installed by Pip. --- Vagrantfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Vagrantfile b/Vagrantfile index f45c0110a..eef54b793 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -22,6 +22,7 @@ Vagrant.configure(2) do |config| openjdk-7-jre pkg-config python-all-dev python-matplotlib \ python-nose python-numpy python-pip python-zmq sshpass trace-cmd \ tree wget + pip install Cython sudo pip install ipython[notebook] pandas psutil wrapt sudo apt-get remove -y w3m -- GitLab