Skip to content

Instantly share code, notes, and snippets.

View serious-steve's full-sized avatar

Stefan Kombrink serious-steve

  • Ulm University
View GitHub Profile
@alanorth
alanorth / mirage2-ubuntu16.04.md
Last active July 30, 2020 20:26
Preparing the Mirage 2 build environment on Ubuntu 16.04

Build Environment for Mirage 2 on Ubuntu 16.04

My earlier notes for 14.04 basically work fine on Ubuntu 16.04 but I've corrected and improved a few things in this version.

DSpace 5's Mirage 2 requires some extra setup if you want to tweak the base config and rebuild it. As Mirage 2 is based on the Bootstrap framework it needs a few NodeJS and Ruby packages to be available in the build environment.

We build and deploy DSpace from the tomcat7 system user (which is the default user for Tomcat on Ubuntu), and there are a few assumptions that must be met to allow the installation of NodeJS and Ruby:

  • The tomcat7 user must be able to write to its home folder — /usr/share/tomcat7 — so it can create the ~/.nvm, ~/.npm, ~/.rvm, ~/.gnupg and other directories during installation
  • The ~tomcat7/.profile file must exist and be writable before installing nvm and rvm, as this is the default config file for lo