Skip to content

Instantly share code, notes, and snippets.

@rosiel
rosiel / package-vagrant-box.md
Last active May 15, 2018 13:29 — forked from DiegoPino/package-vagrant-box.md
How to create an Islandora VM

Creating a VM (.ova) from a vagrant box

  1. Get an up-to-date clone of Islandora Vagrant.
  2. Shut off all VMs, and destroy any existing VMs with the same name.
  3. vagrant up (and wait for the base box to load up)
  4. Log into Drupal and change the site name.
  5. Change the colours of the branding too, if appropriate.
  6. Clean up disk space. We just did a lot of apt-get so its cache is full.
$ sudo apt-get clean
@rosiel
rosiel / vagrant-clean.sh
Created October 23, 2017 21:25 — forked from DiegoPino/vagrant-clean.sh
Script to clean up Ubuntu Vagrant box before packaging
#!/bin/bash
# This script zeroes out any space not needed for packaging a new Ubuntu Vagrant base box.
# Run the following command in a root shell:
#
# bash <(curl -s https://gist.github.com/justindowning/5670884/raw/vagrant-clean.sh)
function print_green {
echo -e "\e[32m${1}\e[0m"
}