Changes between Version 2 and Version 3 of AmazonEC2


Ignore:
Timestamp:
Jun 18, 2010 9:58:16 AM (5 years ago)
Author:
simonmar
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AmazonEC2

    v2 v3  
    114114 * Make it more suitable for development: e.g. add instructions for
    115115   using a persistent EBS volume for storage.
     116
     117== Notes on how to create a new EBS image ==
     118
     119Ubuntu EBS images are listed at [http://uec-images.ubuntu.com/releases/].  e.g. for Lucid,  [http://uec-images.ubuntu.com/releases/10.04/release/].
     120
     121Start a new instance with the appropriate AMI, and SSH into it.
     122
     123Check that it has an ephemeral disk mounted, `df` should say something like
     124
     125{{{
     126ubuntu@domU-12-31-38-00-B0-F1:~$ df
     127Filesystem           1K-blocks      Used Available Use% Mounted on
     128/dev/sda1             15481840    744060  13951348   6% /
     129devtmpfs               3813968       112   3813856   1% /dev
     130none                   3932272         0   3932272   0% /dev/shm
     131none                   3932272        48   3932224   1% /var/run
     132none                   3932272         0   3932272   0% /var/lock
     133none                   3932272         0   3932272   0% /lib/init/rw
     134/dev/sdb             433455904    203016 411234584   1% /mnt
     135}}}
     136
     137So `/mnt` is the ephemeral disk (unbacked-up storage) where we can do builds.
     138
     139Run the following script to get the GHC repo set up:
     140
     141{{{
     142#!/bin/sh -e
     143
     144cd $HOME
     145
     146REPO_TARBALL=ghc-HEAD-2010-05-19-ghc-corelibs-testsuite.tar.bz2
     147
     148# install required packages
     149sudo apt-get install darcs ghc happy alex autoconf automake libtool ncurses-dev zlib1g-dev
     150
     151# grab the repo tarball
     152wget http://darcs.haskell.org/${REPO_TARBALL}
     153
     154# unpack the repos
     155tar xvjf ${REPO_TARBALL}
     156
     157# update the repos
     158cd ghc
     159chmod +x ./darcs-all ./validate ./boot
     160./darcs-all pull -a
     161}}}