Permalink
Browse files

Add script to customise a fresh CentOS builder VM

  • Loading branch information...
1 parent 0f5a14b commit 74a099ff05c4c0603b8611ab783bd8f0f2b6ba53 David Scott committed May 16, 2012
Showing with 29 additions and 0 deletions.
  1. +29 −0 post-install.sh
View
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+# Take a clean CentOS install and install the necessary packages
+# to be able to run "make-initrd.sh"
+
+set -e
+set -x
+
+echo Installing base packages from upstream
+yum install kernel autoconf automake make gcc
+
+echo Downloading git
+wget http://git-core.googlecode.com/files/git-1.7.10.2.tar.gz
+tar -xvfz git-1.7.10.2.tar.gz
+(cd git-1.7.10.2; ./configure && make && make install)
+
+echo Building ocaml
+wget http://caml.inria.fr/pub/distrib/ocaml-3.12/ocaml-3.12.1.tar.bz2
+tar -xvjf ocaml-3.12.1.tar.bz2
+(cd ocaml-3.12.1; ./configure && make world.opt && make install)
+
+echo Building findlib
+wget http://download.camlcity.org/download/findlib-1.3.1.tar.gz
+tar -xvzf findlib-1.3.1.tar.gz
+(cd findlib-1.3.1; make all opt && make install)
+
+echo Building febootstrap
+(cd febootstrap; sh autogen.sh && ./configure && make)
+echo XXX need to patch embedded python

0 comments on commit 74a099f

Please sign in to comment.