diff options
author | 2018-03-02 19:45:47 +0100 | |
---|---|---|
committer | 2018-03-02 19:45:47 +0100 | |
commit | ef4b897c1f959a8458d6f231977a8bee013f6ca2 (patch) | |
tree | 785bded72244f4b1bfd9df4615257955a0420505 | |
parent | Switch from replace to something else (diff) |
adds vagrant file (#14)
* adds vagrant file
* reduce memory allocation
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Vagrantfile | 24 | ||||
-rw-r--r-- | scripts/vagrant_bootstrap.sh | 16 |
3 files changed, 43 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index 2895fff37..2497f6deb 100644 --- a/.gitignore +++ b/.gitignore @@ -102,3 +102,6 @@ ENV/ # PyCharm .idea/ + +# Vagrant +.vagrant diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 000000000..cc2c3ff5c --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,24 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +VAGRANTFILE_API_VERSION = "2" + +Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| + + config.vm.define "pdbot" do |dev| + dev.vm.box = "ubuntu/xenial64" + dev.vm.host_name = "pdbot" + dev.vm.network :private_network, ip: "10.1.0.3" + config.vm.provider :virtualbox do |vb| + vb.customize ["modifyvm", :id, "--memory", "512"] + vb.customize ["modifyvm", :id, "--ioapic", "on"] + vb.customize ["modifyvm", :id, "--cpus", "2"] + vb.linked_clone = true + config.vm.synced_folder ".", "/vagrant", + type: "virtualbox", + mount_options: ["dmode=775,fmode=775"] + end + config.vm.provision "shell", path: "scripts/vagrant_bootstrap.sh" + end + +end diff --git a/scripts/vagrant_bootstrap.sh b/scripts/vagrant_bootstrap.sh new file mode 100644 index 000000000..a9819fa4f --- /dev/null +++ b/scripts/vagrant_bootstrap.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +apt-get update +apt-get install -y software-properties-common +apt-get install -y python-software-properties +apt-get install -y curl +apt-get install -y apt-transport-https + +# Python3.6 +add-apt-repository -y ppa:jonathonf/python-3.6 +apt-get update +apt-get install -y python3.6 +apt-get install -y python3.6-dev +apt-get install -y build-essential +curl -s https://bootstrap.pypa.io/get-pip.py | python3.6 - +python3.6 -m pip install -r /vagrant/requirements.txt |