Sign inSign up

giovtorres/slurm-docker

By giovtorres

Updated 27 days ago

Image
1

10K+

giovtorres/slurm-docker repository overview

slurm-docker

All-in-one Slurm container on Rocky Linux 10. Runs MariaDB, slurmdbd, slurmctld, slurmd (3 nodes), slurmrestd, and SSH in a single container.

Quick start

cp .env.example .env
make build && make up

Wait ~20 seconds, then make shell to access the cluster.

Supported versions

25.11.x (default), 25.05.x, 24.11.x. Switch with:

make set-version VER=24.11.7
make rebuild

Configuration

All settings go in .env (see .env.example):

VariableDefaultDescription
SLURM_VERSION25.11.2Slurm version to build
MYSQL_USERslurmMariaDB user
MYSQL_PASSWORDpasswordMariaDB password
EXTRA_PACKAGESAdditional packages to install at startup
ROOT_PASSWORDSet root password for SSH
SSH_PERMIT_ROOT_LOGINprohibit-passwordSSH root login policy
SSH_PASSWORD_AUTHnoEnable SSH password auth
Slurm configs

Version-specific configs in config/{25.11,25.05,24.11}/slurm.conf, shared configs in config/common/. Edit live:

docker exec -it slurm vi /etc/slurm/slurm.conf
docker exec slurm scontrol reconfigure

Exposed ports

  • 2222 — SSH
  • 6820 — slurmrestd

Make targets

Run make to see all available commands. Key targets: build, up, down, clean, rebuild, shell, test, status, logs.

Adding a new Slurm version

  1. Create config/XX.YY/slurm.conf
  2. Add to SUPPORTED_VERSIONS in Makefile
  3. Add to CI matrix in .github/workflows/test.yml

Tag summary

Content type

Image

Digest

sha256:204e6c61d

Size

385.6 MB

Last updated

27 days ago

docker pull giovtorres/slurm-docker