Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • OPTIONAL:
    • clone the puppet image as democontent-YYMMDD
  • Get the demo fixtures bundle

    Code Block
    cd /tmp
    wget http://dlib.indiana.edu/~cjcolvar/DemoFixturesBatch.tar.gz     #We need a better place to serve this from
    tar xvzf DemoFixturesBatch.tar.gz
    chown -R avalondrop.dropbox DemoFixturesBatch
    mv DemoFixturesBatch /var/avalon/dropbox

    Monitor progress at http://<whatever>:18080.  

  • Modify /var/www/avalon/current/app/views/catalog/_home_text.html.erb and replace sample content with something like:

    Code Block
    languagehtml/xml
     <ul class="thumbnails">
    	<li class="span3"><h5>Featured Video</h5><a href="<%= media_object_path('avalon:1') %>" class="thumbnail" <%= image_tag "thumbnail.name.png", alt: "Featured Video" %></a></li>
    	<li class="span3"><h5>Featured Video</h5><a href="<%= media_object_path('avalon:2') %>" class="thumbnail" <%= image_tag "thumbnail.name.png", alt: "Featured Video" %></a></li>
    	<li class="span3"><h5>Featured Video</h5><a href="<%= media_object_path('avalon:3') %>" class="thumbnail" <%= image_tag "thumbnail.name.png", alt: "Featured Video" %></a></li>
    </ul>

    Thumbnail images should be stored in /var/www/avalon/current/app/assets/images

  • Remove source data

    Adding the demo batch increased the size of the
    Code Block
    rm /tmp/DemoFixturesBatch.tar.gz
    rm -rf /var/avalon/dropbox/DemoFixturesBatch
    Info

VM

...

VM Image Prep

 

Info

Adding the demo batch increased the size of the VM download from 3.2G to 7.4G.  Partially its because we've make derivatives and there's really new content on the VM.  But for a bigger reason, any disk space that gets allocated is stored in the image file – the VM doesn't know what's being used and what isn't.  Since we download a largish package, untar it, and create a bunch of temp files, the VM disk image has a bunch of unused (from the OS point of view) disk that it still has to keep track of.  Future research should include how to 'unuse' the disk space.

"zerofree" should do the trick, when combined with vboxmanager modifyhd <name> --compact