Part 11: Glassfish V3 Pet Catalog sample DEMO in VM Template - Pack and Publish
By natiku on Jan 14, 2010
In this example I will DEMOnstrate creation of Evaluation type Virtual Appliance / VM Template which will leveradge OpenSolaris 200906 JeOS prototype and just in Dec/09 released Glassfish v3, Java EE 6 and Netbeans 6.8 with simple Java EE 6 demo. This entry is part of Virtual Appliances & OVF workshop.
New Glassfish V3 introduce an unique network repository based modular structure, so we can more easily create really simple initial DEMO setup which user can extend by installation more samples right from Glassfish V3 repository or from Netbeans GUI.
Step 7: Pack and Publish Images
Step 7a: Pack each Image with compression tool
We will use 7zip to pack corresponding image directory for concrete virtualization platform in single archive file,
it generates for ZFS much smaller files
Best results can be achieved with this 7zip Ultra setup (LZMZ type compression)
Step 7b: Generate a checksum for each archive
We want to allow users to allow mirror and redistribute this VM Template sample, so we will publish checksum so users can go back and check archive consistency.
Recently there was a concerns about MD5 and SHA1, so I will generate SHA256 and SHA512 hashes.
sha256sum -b archname.7z >archname.sum sha512sum -b archname.7z >>archname.sum
Step 7c: Load files to distribution server
For such demo stuff you will probably like to have downloads stats, so use some distribution service, like a DLC in our case.
Step 7d: Create a Download page with helper instructions
Like we create a Download page for OpenSolaris 200906 JeOS Prototype,
simple start up instructions for each Virtualization platform groups and FAQ for more deeper dive information.