From f29cf03b685aaf5757cda5e2fc69522b56715b26 Mon Sep 17 00:00:00 2001 From: Chris Lane Date: Mon, 4 Feb 2019 10:40:10 -0500 Subject: [PATCH] Added Vagrantfile Added a `Vagrantfile` which builds an alpine-based environment that can be used for development and testing. --- .gitignore | 2 ++ Vagrantfile | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 Vagrantfile diff --git a/.gitignore b/.gitignore index a9e1dad..8f24f8a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ +*.log *.pyc .env +.vagrant MANIFEST build cheat.egg-info diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..eae2aff --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,17 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +Vagrant.configure("2") do |config| + config.vm.box = "alpine/alpine64" + + config.vm.provider "virtualbox" do |vb| + vb.memory = "256" + end + + config.vm.provision "shell", inline: <<-SHELL + sudo apk update + sudo apk add py-pip + su vagrant && sudo -H pip install docopt pygments termcolor flake8 + cd /vagrant && sudo python setup.py install + SHELL +end