Sign inSign up

xenonmiddleware/slurm

By xenonmiddleware

•Updated over 6 years ago

SLURM batch scheduler for Xenon integration tests

Image
5

100K+

xenonmiddleware/slurm repository overview

This container provides a SLURM⁠ installation.

Available tags

Image description

The image includes:

  • A Cluster mycluster with two queues/partitions: mypartition and otherpartition. Running an sinfo inside the container yields:

    $ sinfo
    PARTITION      AVAIL  TIMELIMIT  NODES  STATE NODELIST
    mypartition*      up   infinite      5   idle node-[0-4]
    otherpartition    up   infinite      3   idle node-[0-2]
    
  • SSH access for user xenon with password javagat

  • an example SLURM job script, /home/xenon/test-slurm.job

  • file system fixtures for integration testing, as follows:

    -rw-r--r-- 1 xenon xenon 12 Jul 25 14:05 file0
    -rw-r--r-- 1 xenon xenon  0 Jul 25 14:05 file1
    lrwxrwxrwx 1 xenon xenon 47 Jul 25 14:05 link0 -> /home/xenon/filesystem-test-fixture/links/file0
    lrwxrwxrwx 1 xenon xenon 47 Jul 25 14:05 link1 -> /home/xenon/filesystem-test-fixture/links/file1
    lrwxrwxrwx 1 xenon xenon 47 Jul 25 14:05 link2 -> /home/xenon/filesystem-test-fixture/links/file2
    lrwxrwxrwx 1 xenon xenon 47 Jul 25 14:05 link3 -> /home/xenon/filesystem-test-fixture/links/link0
    lrwxrwxrwx 1 xenon xenon 47 Jul 25 14:05 link4 -> /home/xenon/filesystem-test-fixture/links/link2
    lrwxrwxrwx 1 xenon xenon 47 Jul 25 14:05 link5 -> /home/xenon/filesystem-test-fixture/links/link6
    lrwxrwxrwx 1 xenon xenon 47 Jul 25 14:05 link6 -> /home/xenon/filesystem-test-fixture/links/link5
    

Building the Docker image

docker build --tag xenonmiddleware/slurm:<tag> .

Running the Docker container (background)

docker run --detach --publish 10022:22 xenonmiddleware/slurm:<tag>

Once the container is running, you can log into it with (password is 'javagat'):

ssh -p 10022 xenon@localhost

You can then submit a job, e.g.:

srun /bin/hostname

or you can submit the example job script

sbatch /home/xenon/test-slurm.job

check the status with

squeue
sacct

Tag summary

Content type

Image

Digest

Size

171 MB

Last updated

over 6 years ago

docker pull xenonmiddleware/slurm