https://github.com/natefoo/slurm-test-dev
A tool for running Slurm for development and testing using Docker Compose
https://github.com/natefoo/slurm-test-dev
Last synced: about 1 year ago
JSON representation
A tool for running Slurm for development and testing using Docker Compose
- Host: GitHub
- URL: https://github.com/natefoo/slurm-test-dev
- Owner: natefoo
- License: mit
- Created: 2022-12-23T20:11:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-23T21:01:54.000Z (over 3 years ago)
- Last Synced: 2025-02-15T19:21:04.595Z (over 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# slurm-test-dev
## Overview
A [Docker Compose][docker-compose]-based solution for easing the testing of [Slurm][slurm] configs.
## Usage
You must have [Docker][get-docker] and [Docker Compose][docker-compose] installed.
To start, run:
```console
$ make up
```
This does a bit of one-time preparation:
- Creating the Docker Compose `.env` file
- Creating a munge key at `context/munge.key`
- Creating a pseudo-shared filesystem in the `cluster` subdirectory, mounted at `/cluster` in the containers.
- Create the `slurm.conf.d` subdirectory for your modified configs.
After which, it runs `docker-compose up`. As is normal with foreground Docker Compose sessions, hit `Ctrl-C` to
terminate. To start daemonized, run:
```console
$ make up-d
```
And to stop:
```console
$ make down
```
Once the one-time setup has been performed, you can forego the Makefile and run `docker-compose` commands directly, if
you prefer.
To reset to the initial state, run:
```console
$ make clean
```
This removes `.env` and the munge key, but does not remove the `cluster` directory. It also removes the Docker containers and images.
To change the Slurm configuration, copy the relevant config (e.g. `slurm.conf` from `context/` to `slurm.conf.d`, make
your changes, and then run:
```console
$ make restart
```
To submit jobs:
```console
$ cat > cluster/slurm.sh <