Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add README file. Add .gitignore. Install ack, git, vim. Cleanup after…

… ruby, gem install.
  • Loading branch information...
commit bddd1b609f1244c0389c4dee31d6caef5e584526 1 parent d2f11d7
Jonas Bengtsson jonasb authored
Showing with 27 additions and 0 deletions.
  1. +2 −0  .gitignore
  2. +18 −0 README.md
  3. +7 −0 definitions/forskbox/postinstall.sh
2  .gitignore
View
@@ -0,0 +1,2 @@
+*.box
+iso/
18 README.md
View
@@ -0,0 +1,18 @@
+## Use pre-built box
+
+You can download a pre-built box manually, verify that the md5 sum corresponds to this document and add it to Vagrant (`vagrant box add 'forskbox' 'forskbox.box'`). Another alternative is to just run `vagrant up` in a project which already includes the url to the box.
+
+## Build your own box
+
+* Install [VeeWee](https://github.com/jedi4ever/veewee).
+* Build: `vagrant basebox build 'forskbox'`
+* Validate box: `vagrant basebox validate 'forskbox'`
+* Export .box file: `vagrant basebox export 'forskbox'`
+* *(Optional)* Upload to `http://files.forskningsavd.se/boxes/forskbox.box` and update the md5 sums in this document.
+* Install it to your Vagrant setup: `vagrant box add 'forskbox' 'forskbox.box'`
+* *(Optional)* You can now delete the temporary files to save space: `rm forskbox.box; rm -rf iso/`
+
+## Current boxes and md5 sums
+
+ http://files.forskningsavd.se/boxes/
+ forskbox.box: b8781b5a60d4a03b853cdc8d33a0fc05
7 definitions/forskbox/postinstall.sh
View
@@ -28,6 +28,7 @@ make
make install
cd ..
rm -rf ruby-1.9.2-p290
+rm ruby-1.9.2-p290.tar.gz
# Install RubyGems 1.7.2
wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.11.tgz
@@ -36,6 +37,7 @@ cd rubygems-1.8.11
/opt/ruby/bin/ruby setup.rb
cd ..
rm -rf rubygems-1.8.11
+rm rubygems-1.8.11.tgz
# Installing chef & Puppet
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
@@ -45,6 +47,11 @@ rm -rf rubygems-1.8.11
# Ruby, RubyGems, and Chef/Puppet are visible
echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/vagrantruby.sh
+# Install basic development tools
+apt-get -y install ack
+apt-get -y install git
+apt-get -y install vim
+
# Installing vagrant keys
mkdir /home/vagrant/.ssh
chmod 700 /home/vagrant/.ssh
Please sign in to comment.
Something went wrong with that request. Please try again.