forked from statsite/statsite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile.debian
51 lines (35 loc) · 1.11 KB
/
Vagrantfile.debian
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
VAGRANTFILE_API_VERSION = "2"
$script = <<CODE
echo
echo Provisioning started...
echo
sudo apt-get update
sudo apt-get -y install build-essential python-setuptools lsof git automake texlive check libtool devscripts
sudo easy_install pip
sudo pip install pytest
#cd /vagrant/deps/check-0.10.0/
#autoreconf
#./configure
#make
#make install
#ldconfig
CODE
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "debian/jessie64"
config.vm.network "private_network", ip: "33.33.33.40"
config.vm.synced_folder ".", "/vagrant", type: "nfs"
config.vm.synced_folder ".", "/home/vagrant/statsite", type: "nfs"
# Provision using the shell to install fog
config.vm.provision :shell, :inline => $script
config.vm.post_up_message = <<MSG
The box is ready. Statsite is in /vagrant.
When making changes to configure.ac or Makefile.am, run autogen.sh,
and when you have your dependencies in order, ./configure again.
Dependencies were already installed, they are:
- build-essential
- automake
- check
- pytest
To build: use make, to test: make test.
MSG
end