From 0619b25b833d8e6b3c66e5d68666b4c06a6200e6 Mon Sep 17 00:00:00 2001 From: Janis Date: Tue, 23 Oct 2018 18:11:31 +1100 Subject: [PATCH 1/3] Create vagrantfile --- Vagrantfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Vagrantfile diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..293cc72 --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,13 @@ +Vagrant.configure("2") do |config| + config.vm.box = "bento/ubuntu-16.04" + # Set up machine + config.vm.provision :shell, path: "ubuntu_bootstrap.sh" + + config.vm.provider "virtualbox" do |vb| + # Display the VirtualBox GUI when booting the machine + vb.gui = true + + # Customize the amount of memory on the VM: + vb.memory = "2048" + end +end From a62329fffd8b4b30729e898e0aedc92121cf96bc Mon Sep 17 00:00:00 2001 From: Janis Date: Tue, 23 Oct 2018 18:12:42 +1100 Subject: [PATCH 2/3] Create bootstrap file for provisioning VM --- Vagrantfile | 2 +- bootstrap.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 bootstrap.sh diff --git a/Vagrantfile b/Vagrantfile index 293cc72..d3f5a52 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,7 +1,7 @@ Vagrant.configure("2") do |config| config.vm.box = "bento/ubuntu-16.04" # Set up machine - config.vm.provision :shell, path: "ubuntu_bootstrap.sh" + config.vm.provision :shell, path: "bootstrap.sh" config.vm.provider "virtualbox" do |vb| # Display the VirtualBox GUI when booting the machine diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 0000000..f85652f --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,4 @@ +#!/bin/bash +apt-get install ffmpeg +apt-get install sox +apt-get install virtualenv From 4da7284af905f1f3e062d1551265d689661683b9 Mon Sep 17 00:00:00 2001 From: Janis Date: Tue, 23 Oct 2018 18:19:36 +1100 Subject: [PATCH 3/3] Fix installs --- bootstrap.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index f85652f..7cae7cd 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,4 +1,5 @@ #!/bin/bash -apt-get install ffmpeg -apt-get install sox -apt-get install virtualenv +apt-get update +apt-get install -y ffmpeg sox python3-pip git python3-venv + +pip3 install pipenv