File: Vagrantfile

package info (click to toggle)
vistrails 3.0~git%2B9dc22bd.dfsg.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 62,856 kB
  • sloc: python: 314,055; xml: 42,697; sql: 4,113; php: 731; sh: 469; makefile: 253
file content (31 lines) | stat: -rw-r--r-- 1,002 bytes parent folder | download | duplicates (2)
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
# -*- mode: ruby -*-
# vi: set ft=ruby :

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.define "x86", primary: true do |m|
    m.vm.box = "hashicorp/precise32"
  end
  config.vm.define "x86_64", autostart: false do |m|
    m.vm.box = "hashicorp/precise64"
  end

  config.vm.provision "shell",
    inline: <<SCRIPT
sudo aptitude update -y
sudo aptitude install -y python python-dateutil python-dev python-docutils \
    python-mako python-matplotlib python-mysqldb python-numpy python-paramiko \
    python-pip python-qt4 python-qt4-gl python-qt4-sql python-scipy \
    python-setuptools python-sphinx python-sqlalchemy python-suds python-tz \
    python-unittest2 python-virtualenv python-vtk python-xlrd python-xlwt \
    imagemagick xvfb
cd /home/vagrant
virtualenv --system-site-packages venv
source venv/bin/activate
cd /vagrant
pip install -r requirements.txt
python setup.py develop
sudo chown -R vagrant:vagrant /home/vagrant/venv
SCRIPT
end