...
- OPTIONAL:
- clone the puppet image as democontent-YYMMDD
- Register the archivist1@example.com user in Avalon, and log in as that user.
- this account is removed when the system is prepared for delivery.
Get the demo fixtures bundle
Code Block cd /tmp wget http://www.avalonmediasystem.org/downloads/AvalonDemoBatchDemoFixturesBatch.tar.gz tar xvzf AvalonDemoBatchDemoFixturesBatch.tar.gz chown -R avalondrop.dropbox AvalonDemoBatchDemoFixturesBatch mv AvalonDemoBatchDemoFixturesBatch /var/avalon/dropbox
Monitor progress in Matterhorn (at http://<whatever>:18080 using the default username/password) or within Avalon.
Modify /var/www/avalon/current/app/views/catalog/_home_text.html.erb and replace sample content with something like:
Code Block language html/xml <ul class="thumbnails"> <li class="span3"><h5>Featured Video</h5><a href="<%= media_object_path('avalon:1') %>" class="thumbnail" ><%= image_tag "AvalonDemoThumbnailsDemoFixturesThumbnails/organScreenshot.jpg", alt: "Featured Video" %></a></li> <li class="span3"><h5>Featured Video</h5><a href="<%= media_object_path('avalon:2') %>" class="thumbnail" ><%= image_tag "AvalonDemoThumbnailsDemoFixturesThumbnails/lunchroom_manners.jpg", alt: "Featured Video" %></a></li> <li class="span3"><h5>Featured Audio</h5><a href="<%= media_object_path('avalon:3') %>" class="thumbnail" ><%= image_tag "AvalonDemoThumbnailsDemoFixturesThumbnails/gustav_mahler.jpg", alt: "Featured Audio" %></a></li> </ul>
Thumbnail images can be downloaded from http://www.avalonmediasystem.org/downloads/AvalonDemoThumbnailsDemoFixturesThumbnails.tar.gz and should be unpacked into /var/www/avalon/current/app/assets/images. The values "avalon:1" to "avalon:3" should be changed to the appropriate container IDs.
Reload the avalon application by running
Code Block touch /var/www/avalon/current/tmp/restart.txt
and verify the changes are correct.
Fix the section titles of the audio example:
edit the item
- click on the "Manage Files" tab
- change the filenames to "CD 1" (for agz3068a.wav) and "CD 2" (for agz3068b.wav)
- click Save
- Fix access permissions on all three items:
- edit each item
- click on the "Access Control" tab
- click on the "Available to the general public" radio button
- click Save
- Click the 'Publish" button if it is available on the item view (Lunchroom Manners).
- edit each item
Remove source data
Code Block rm /tmp/AvalonDemoBatchDemoFixturesBatch.tar.gz rm -rf /var/avalon/dropbox/AvalonDemoBatchDemoFixturesBatch
VM Image Prep
- OPTIONAL:
- clone the latest democontent image as dist-YYMMDD
- Install avalon-vm-1.0-1.noarch.rpm to install the firstboot changes and tools
- If IPv6 was disabled during install, re-enable it by removing the lines added to /etc/sysctl.conf during BaseOS. If these lines are not removed, email will not work.
- Prepare the disk for compacting
clean up anything that's left over from the build process
Code Block rm -rf /root/Downloads/* /var/avalon/dropbox/* /home/makerpm/rpmbuild /opt/staging /root/avalon-installer-flat /root/flat.tar.gz yum clean all swapoff /dev/mapper/vg_avalon-lv_swap; dd if=/dev/zero of=/dev/mapper/vg_avalon-lv_swap bs=1M; mkswap /dev/mapper/vg_avalon-lv_swap
deleted files still take up space on the disk image. The disk image (as of 4/24/13) is roughly 12G in size, with 7.8G of actual data. Write zeros to a file until the disk is full to clear out the sectors which are unallocated but had data at one point. Since the .VDI image is sparsely allocated, the disk image size will actually grow less that 1G even though nearly 500G has been written.
Code Block dd if=/dev/zero of=/tmp/foo bs=1M oflag=direct; rm /tmp/foo
- run /usr/share/avalon/dist-prep to prepare the machine for release
- clear the command line history (history -cw)
- shutdown the VM
- Compact the disk image
On the host run:
Code Block VBoxManage modifyhd avalon-vm-disk-YYMMDD.vdi --compact
- Export the appliance
- Disable USB 2.0 in the VM to avoid a warning when users don't have the VirtualBox extensions loaded.
VM Settings:
Name Value Name avalon-vm Product Avalon Media System Product-URL http://avalonmediasystem.org Version R1
- copy the OVA to the distribution point
- Make sure to set the avalon-vm.ova symlink to the current release
- Set the permissions to 644 (they're 600 by default)
...