Skip to content

Commit

Permalink
Initial Commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinabrahms committed Jun 23, 2011
0 parents commit 3136864
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Vagrant setup for Seajure hack nights.
As an attempt to get a reasonable development environment quickly for Seajure hacknights, I setup a shareable virtualbox via Vagrant. Let's all play along!
5 changes: 5 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Vagrant::Config.run do |config|
config.vm.box = "natty32"
config.vm.box_url = "http://dl.dropbox.com/u/7490647/talifun-ubuntu-11.04-server-i386.box"
config.vm.provision :shell, :path => "clojure_emacs.sh"
end
47 changes: 47 additions & 0 deletions clojure_emacs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash

# Installs: emacs24, git, clojure, clojure-contrib

# Thanks to @bretthoerner for the ubuntu mirror of emacs 24
wget -q -O - http://emacs.naquadah.org/key.gpg | sudo apt-key add -
echo "deb http://emacs.naquadah.org/ natty/" >> /etc/apt/sources.list
echo "deb-src http://emacs.naquadah.org/ natty/" >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get install -y emacs-snapshot

# clojure install instructions from http://riddell.us/ClojureOnUbuntu.html
# Worth mentioning that this will need to be altered for post 1.2.x

sudo apt-get install -y git-core
sudo apt-get install -y ant maven2
sudo apt-get install -y rlwrap

# Install clojure
mkdir ~/src
cd ~/src
git clone git://github.com/clojure/clojure.git
cd clojure
git checkout 1.2.x
ant
mkdir ~/.clojure
cp clojure.jar ~/.clojure

# Install clojure contrib
cd ~/src
git clone git://github.com/clojure/clojure-contrib.git
cd clojure-contrib
git checkout 1.2.x
mvn install
cp target/clojure-contrib*.jar ~/.clojure/clojure-contrib.jar

# bash startup script
echo "export CLOJURE_EXT=~/.clojure" >> ~/.bash_profile
echo "PATH=$PATH:~/src/clojure-contrib/launchers/bash:$HOME/bin/" >> ~/.bash_profile
echo "alias clj=clj-env-dir" >> ~/.bash_profile

# Install Leiningen
mkdir ~/bin/
wget https://github.com/technomancy/leiningen/raw/master/bin/lein
mv lein ~/bin/
chmod +x ~/bin/lein
~/bin/lein

0 comments on commit 3136864

Please sign in to comment.