base image for slurm on k8s
251
This is a development install of the Slurm cluster running as a controller and multiple types of workers. We split all related services into different containers, such as slurmd, slurmctld, slurmdbd, and munged. So you don't recommend you to run these images directly, you can deploy them using Helm or Operator. Please check Helm Chart and Operator for more information.
Slurm is an open-source cluster resource management and job scheduling system that strives to be simple, scalable, portable, fault-tolerant, and interconnect agnostic. SLURM currently has been tested only under Linux.
As a cluster resource manager, SLURM provides three key functions. First, it allocates exclusive and/or non-exclusive access to resources (compute nodes) to users for some duration of time so they can perform work. Second, it provides a framework for starting, executing, and monitoring work (normally a parallel job) on the set of allocated nodes. Finally, it arbitrates conflicting requests for resources by managing a queue of pending work.
For more information on Slurm, consult the official website, check link
As we said, we are not recommend you to run these images directly, you can deploy them using Helm or Operator. Please check Helm Chart and Operator for more information.
But you still can run it using docker compose.
docker compose up
This will start several containers with a login process which will run a sshd server on exposed port 22.
You will need to create an interactive session in order to run jobs in this container.
There are two ways to do this.
First, you can start a container with the default command and ssh in.
docker exec -it slurm-login -- bin/bash
Once you have a session in the container, you can submit jobs using the sbatch command. A test script is included in the image at /home/slurm/hello.slurm. You can submit this script to verify the scheduler is working properly.
sbatch `/home/slurm/hello.slurm`
Build from this directory using the enclosed Dockerfile
MPI_TYPE=open-mpi #intel-mpi
bash ./container/builder/build.sh
bash ./container/base/build.sh
bash ./container/munged/build.sh
bash ./container/login/build.sh
bash ./container/slurmctld/build.sh
bash ./container/slurmd/build.sh
bash ./container/slurmdbd/build.sh
And then, load images to minikube for test
MPI_TYPE=open-mpi #intel-mpi
bash ./container/load-into-minikube.sh
Content type
Image
Digest
sha256:88149dbf9…
Size
116.4 MB
Last updated
over 1 year ago
docker pull aaron666/slurm-base