Using Docker Compose
Pre-Installation
Before you get started, ensure you have the following pre-requisites installed on your machine:
- docker
- docker compose
Running the License Manager Composed
To get started, clone the license-manager
repository from GitHub and run docker compose up
.
git clone https://github.com/omnivector-solutions/license-manager
cd license-manager/lm-composed
docker-compose up --build
The docker compose
command will start the following services:
- License Manager API
- Postgresql database (for the License Manager API)
- Keycloak (authentication provider for the-LM API)
- License Manager Simulator API
- Postgresql database (for the License Manager Simulator API)
- Slurm cluster (Slurmctld, Slurmdbd, Slurmrestd, and two Slurmd containers)
Submitting a job
- Log into the
slurmctld
container:
- Execute the job example:
The job will request 42 licenses to the License Manager Simulator API
and return it after a few minutes.
It will be submitted to the Slurm cluster and the License Manager Agent
will make a booking request to the License Manager API
.
The results will be available in the slurm-fake-nfs
directory.