vagrant setup
This commit is contained in:
parent
0676bf4067
commit
6227df8e01
|
@ -1,3 +1,6 @@
|
||||||
.stack-work/
|
.stack-work/
|
||||||
mtlstats.cabal
|
mtlstats.cabal
|
||||||
|
.vagrant
|
||||||
|
data
|
||||||
|
*.log
|
||||||
*~
|
*~
|
|
@ -0,0 +1,10 @@
|
||||||
|
# -*- mode: ruby -*-
|
||||||
|
# vi: set ft=ruby :
|
||||||
|
|
||||||
|
Vagrant.configure("2") do |config|
|
||||||
|
config.vm.box = "ubuntu/xenial64"
|
||||||
|
config.vm.provision "shell", path: "vagrant/provision.sh"
|
||||||
|
config.vm.provider :virtualbox do |v|
|
||||||
|
v.customize ["modifyvm", :id, "--memory", 4096]
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "export PATH=\"$HOME/.local/bin:$PATH\"" >>~vagrant/.bashrc
|
||||||
|
mkdir /vagrant/data
|
||||||
|
ln -s /vagrant/data ~vagrant/.mtlstats
|
||||||
|
|
||||||
|
cd /vagrant
|
||||||
|
stack install
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get upgrade
|
||||||
|
apt-get -y install libghc-ncurses-dev
|
||||||
|
wget -qO- https://get.haskellstack.org/ | sh
|
||||||
|
|
||||||
|
export HOME=/home/vagrant
|
||||||
|
|
||||||
|
sudo -u vagrant /vagrant/vagrant/as_user.sh
|
Loading…
Reference in New Issue
Block a user