Skip to content

Deploying a NOMAD Oasis with the UniSysCat Plugin

Prerequisites

  • A GitHub account, which can be created for free on github.com.
  • Docker installed on your computer; installation instructions can be found on docs.docker.com/desktop/.
  • The following instructions are for the Windows operating system. If you are using Linux, please refer to the detailed instructions here or read the NOMAD plugin documentation for all details on how to deploy the plugin on your NOMAD instance.

To install this plugin, follow part 4 of the FAIRmat tutorial 13 or read the NOMAD plugin documentation for all details on how to deploy the plugin on your NOMAD Oasis instance.

Outline

  1. Create a Docker image
  2. Add the plugin
  3. Update permissions
  4. Run the OASIS

1. Create a Docker image

We will now create a custom Docker image for your OASIS. There is a GitHub template repository with predefined workflows that can be used for this at github.com/FAIRmat-NFDI/nomad-distribution-template.

To use the template, choose the "Create a new repository" option after pressing the green "Use this template" button in the upper right corner. Please note that you have to be logged into GitHub to see this option.

gif for creating an Oasis deployment on GitHub

2. Add the plugin

We will now add the plugin we developed as a demonstration for UniSysCat. To do this, we need to add the following line to the plugins.txt file:

git+https://github.com/FAIRmat-NFDI/nomad-unisyscat-plugin.git@main

We can do this directly from the GitHub web UI. Once this is saved, a workflow will run to create the image.

gif for adding the plugin to NOMAD Oasis deployment

3. Update permissions

  1. Make sure you have Docker installed. Docker nowadays comes with docker compose built in. Prior, you needed to install the stand-alone docker-compose.
  2. Download the nomad-oasis.zip archive from your distribution repository to your computer.
  3. Unzip the nomad-oasis.zip file.

gif for downloading and unzipping the Oasis file

  1. Open Docker Desktop.
  2. Open the Windows command prompt and set the directory to the location where you have unzipped the nomad-oasis file. Below is an example for navigating to the directory where we saved the file. Make sure to change this to the directory you specified.
cd C:\Users\Fair-04\Documents\UniSysCat demo\nomad-oasis\nomad-oasis
  1. Pull the images specified in the docker-compose.yaml (retrieved from the nomad-oasis.zip). Note that the image needs to be public or you need to provide a PAT.
docker compose pull
  1. Run it with Docker Compose in detached (--detach or -d) mode.
docker compose up -d
  1. Optionally, you can now test that NOMAD is running with:
curl localhost/nomad-oasis/alive

gif for pulling and decomposing the Oasis with Docker

  1. Finally, open NOMAD Oasis in your browser to start using your new NOMAD Oasis.
http://localhost/nomad-oasis

gif for accessing NOMAD Oasis locally

Additional Instructions

If you already have a NOMAD Oasis, you just need to add the line:

git+https://github.com/FAIRmat-NFDI/nomad-unisyscat-plugin.git@main

to the plugin.txt in your NOMAD Oasis repository.