- Get an up-to-date clone of Islandora Vagrant.
- Shut off all VMs, and destroy any existing VMs with the same name.
vagrant up
(and wait for the base box to load up)- Log into Drupal and change the site name.
- Change the colours of the branding too, if appropriate.
- Clean up disk space. We just did a lot of apt-get so its cache is full.
$ sudo apt-get clean
Then, “zero out” the drive (this is for Ubuntu). The first command will exit with a failure, dd: error writing ‘/EMPTY’: No space left on device
. This is expected.
$ sudo dd if=/dev/zero of=/EMPTY bs=1M
$ sudo rm -f /EMPTY
Lastly, let’s clear the Bash History and exit the VM:
$ cat /dev/null > ~/.bash_history && history -c && exit
- In VirtualBox, disable the shared folders under the box's Settings.
- In VirtualBox, power down the machine.
- In VirtualBox, export the appliance (File > Export Appliance). Use OVF 1.0 and no manifest. It will save as a .ova file.
- Get the md5 hash of that file. - see also AWS Instructions
$ openssl md5 -binary Islandora-7.x-1.11-RC1-VM.ova |base64
- Install and configure aws (with secret key)
- Upload it to Amazon, using this command line (changing the MD5, the --body file, and the --key.)
aws s3api put-object --bucket=islandoravm --content-md5=LRFeyMoqxnx89/YgkKmR9g== --storage-class=REDUCED_REDUNDANCY --body Islandora-7.x-1.11-RC1-VM.ova --key 7.x-1.11/Islandora-7.x-1.11-RC1-VM.ova --content-type=application/vmware
Now you have a file at: ???