Commit 2563273f
Changed files (2)
script
script/bootstrap.sh
@@ -1,12 +1,34 @@
#!/usr/bin/env bash
-apt-get update
-apt-get install -y nginx
-apt-get install -y imagemagick
-apt-get install -y postgresql-9.1
-apt-get install -y nodejs
-apt-get install -y npm
-apt-get install -y bash curl git patch bzip2 build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev libcurl3-dev imagemagick libmagickwand-dev libpcre3-dev libpq-dev
+apt-get update -y
+apt-get -y install curl git-core python-software-properties imagemagick libmagickwand-dev memcached
+apt-get -y install build-essential
+apt-get -y install tklib
+# Extras for RubyGems and Rails:
+apt-get -y install zlib1g-dev libssl-dev
+# Readline Dev on Ubuntu 12.04 LTS:
+apt-get -y install libreadline-gplv2-dev
+# Install some nokogiri dependencies:
+apt-get -y install libxml2 libxml2-dev libxslt1-dev
+apt-get -y install gawk libreadline6-dev libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev
+apt-get -y autoremove
+add-apt-repository -y ppa:nginx/stable
+apt-get -y update
+apt-get -y install nginx
+add-apt-repository -y ppa:pitti/postgresql
+apt-get -y update
+apt-get -y install postgresql-9.2 libpq-dev
+add-apt-repository -y ppa:chris-lea/node.js
+apt-get -y update
+apt-get -y install nodejs
+apt-get -y install build-essential
+# Packages required for compilation of some stdlib modules
+apt-get -y install tklib
+# Extras for RubyGems and Rails:
+apt-get -y install zlib1g-dev libssl-dev
+# Readline Dev on Ubuntu 12.04 LTS:
+apt-get -y install libreadline-gplv2-dev
+# Install some nokogiri dependencies:
+apt-get -y install libxml2 libxml2-dev libxslt1-dev
su -c 'bash /vagrant/script/bootstrap-vagrant.sh' vagrant
-\curl -#L https://get.rvm.io | bash -s stable --autolibs=3 --ruby
Vagrantfile
@@ -2,16 +2,8 @@
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
- # All Vagrant configuration is done here. The most common configuration
- # options are documented and commented below. For a complete reference,
- # please see the online documentation at vagrantup.com.
-
- # Every Vagrant virtual environment requires a box to build off of.
- config.vm.box = "precise32"
-
- # The url from where the 'config.vm.box' box will be fetched if it
- # doesn't already exist on the user's system.
- config.vm.box_url = "http://files.vagrantup.com/precise32.box"
+ config.vm.box = "precise64"
+ config.vm.box_url = "http://files.vagrantup.com/precise64_vmware.box"
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
@@ -19,6 +11,7 @@ Vagrant.configure("2") do |config|
#config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.network :forwarded_port, guest: 3000, host: 3000
config.vm.provision :shell, :path => 'script/bootstrap.sh'
+ config.ssh.forward_agent = true
# Create a private network, which allows host-only access to the machine
# using a specific IP.
@@ -46,32 +39,10 @@ Vagrant.configure("2") do |config|
# # Use VBoxManage to customize the VM. For example to change memory:
# vb.customize ["modifyvm", :id, "--memory", "1024"]
# end
- #
- # View the documentation for the provider you're using for more
- # information on available options.
-
- # Enable provisioning with Puppet stand alone. Puppet manifests
- # are contained in a directory path relative to this Vagrantfile.
- # You will need to create the manifests directory and a manifest in
- # the file base.pp in the manifests_path directory.
- #
- # An example Puppet manifest to provision the message of the day:
- #
- # # group { "puppet":
- # # ensure => "present",
- # # }
- # #
- # # File { owner => 0, group => 0, mode => 0644 }
- # #
- # # file { '/etc/motd':
- # # content => "Welcome to your Vagrant-built virtual machine!
- # # Managed by Puppet.\n"
- # # }
- #
- # config.vm.provision :puppet do |puppet|
- # puppet.manifests_path = "manifests"
- # puppet.manifest_file = "init.pp"
- # end
+ config.vm.provider :vmware_workstation do |vm|
+ vm.gui = false
+ vm.vmx["displayname"] = "cakeside"
+ end
# Enable provisioning with chef solo, specifying a cookbooks path, roles
# path, and data_bags path (all relative to this Vagrantfile), and adding