Automate the install of License file for Nexus Repo Manager

Can someone help me out on how to automate the install of license file for Nexus Repo Manager when installing on a OpenShift Cluster?

See here for your options: How to Install a Nexus Repository Manager 3 License – Sonatype Support

The system property to specify the license file can be passed in via the INSTALL4J_ADD_VM_PARAMS environment variable as “-Dnexus.licenseFile=/absolute/path/to/your/nexus/repository/manager/license.lic”

Appreciate your response.

Some more questions:

  1. From a security standpoint, Is there a way in the step you mentioned to use an encrypted version of the license file during the install?
  2. How to export the manual config settings and apply them for any new or repeat installs?

Thank you.