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 Bootsrap it needs a few nodejs and ruby packages to be available in the build environment.
We build and deploy DSpace from the tomcat7
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 installingnvm
andrvm
, as this is the default rc file for login shells, iesudo su - tomcat7
. These tools will append lines to those files to setup their environments on login.
This setup is based on the documentation that shipped with Mirage 2