| Roger Meier | 14ff9c8 | 2013-05-30 14:11:45 +0200 | [diff] [blame] | 1 | # -*- mode: ruby -*- | 
 | 2 | # vi: set ft=ruby : | 
 | 3 |  | 
| Carl Yeksigian | 1ed7991 | 2013-06-03 18:29:31 -0400 | [diff] [blame] | 4 | # | 
 | 5 | # Licensed to the Apache Software Foundation (ASF) under one | 
 | 6 | # or more contributor license agreements. See the NOTICE file | 
 | 7 | # distributed with this work for additional information | 
 | 8 | # regarding copyright ownership. The ASF licenses this file | 
 | 9 | # to you under the Apache License, Version 2.0 (the | 
 | 10 | # "License"); you may not use this file except in compliance | 
 | 11 | # with the License. You may obtain a copy of the License at | 
 | 12 | # | 
 | 13 | #   http://www.apache.org/licenses/LICENSE-2.0 | 
 | 14 | # | 
 | 15 | # Unless required by applicable law or agreed to in writing, | 
 | 16 | # software distributed under the License is distributed on an | 
 | 17 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | 
 | 18 | # KIND, either express or implied. See the License for the | 
 | 19 | # specific language governing permissions and limitations | 
 | 20 | # under the License. | 
 | 21 | # | 
 | 22 |  | 
| Roger Meier | 14ff9c8 | 2013-05-30 14:11:45 +0200 | [diff] [blame] | 23 | $script = <<SCRIPT | 
 | 24 | echo I am provisioning for Apache Thrift ... | 
 | 25 | sudo apt-get update -qq -y | 
 | 26 | sudo apt-get upgrade -qq -y | 
 | 27 | sudo apt-get install -qq libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev make libqt4-dev | 
 | 28 | sudo apt-get install -qq ant openjdk-7-jdk | 
 | 29 | sudo apt-get install -qq python-all python-all-dev python-all-dbg | 
 | 30 | sudo apt-get install -qq libbit-vector-perl | 
 | 31 | sudo apt-get install -qq php5-dev php5-cli phpunit | 
 | 32 | sudo apt-get install -qq libglib2.0-dev | 
 | 33 | sudo apt-get install -qq git erlang-base erlang-eunit erlang-dev | 
 | 34 | sudo apt-get install -qq mono-gmcs mono-devel libmono-system-web2.0-cil | 
 | 35 | #sudo apt-get install -qq ghc6 cabal-install libghc6-binary-dev libghc6-network-dev libghc6-http-dev | 
 | 36 | sudo apt-get install -qq mingw32 mingw32-binutils mingw32-runtime | 
 | 37 | echo I am building Apache Thrift ... | 
| Carl Yeksigian | 1ed7991 | 2013-06-03 18:29:31 -0400 | [diff] [blame] | 38 | cd /thrift | 
| Roger Meier | 14ff9c8 | 2013-05-30 14:11:45 +0200 | [diff] [blame] | 39 | sh bootstrap.sh | 
| jfarrell | 69b02aa | 2013-06-20 15:40:48 -0500 | [diff] [blame] | 40 | sh configure --without-erlang | 
| Roger Meier | 14ff9c8 | 2013-05-30 14:11:45 +0200 | [diff] [blame] | 41 | make | 
 | 42 | make dist | 
 | 43 | make check | 
 | 44 | #sh test/test.sh | 
 | 45 | date > /etc/vagrant_provisioned_at | 
 | 46 | SCRIPT | 
 | 47 |  | 
 | 48 | Vagrant.configure("2") do |config| | 
 | 49 |   # Ubuntu 12.04 LTS (Precise Pangolin) | 
 | 50 |   config.vm.box = "precise64" | 
 | 51 |   config.vm.box_url = "http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-vagrant-amd64-disk1.box" | 
 | 52 |   # config.vm.box = "precise32" | 
 | 53 |   # config.vm.box_url = "http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-vagrant-i386-disk1.box" | 
 | 54 |  | 
| Carl Yeksigian | 1ed7991 | 2013-06-03 18:29:31 -0400 | [diff] [blame] | 55 |   config.vm.synced_folder "../", "/thrift" | 
 | 56 |  | 
| Roger Meier | 14ff9c8 | 2013-05-30 14:11:45 +0200 | [diff] [blame] | 57 |   # call the script | 
 | 58 |   config.vm.provision :shell, :inline => $script | 
 | 59 | end |