{"id":23449954,"url":"https://github.com/natefoo/slurm-test-dev","last_synced_at":"2025-04-10T05:54:52.583Z","repository":{"id":77041825,"uuid":"581642622","full_name":"natefoo/slurm-test-dev","owner":"natefoo","description":"A tool for running Slurm for development and testing using Docker Compose ","archived":false,"fork":false,"pushed_at":"2022-12-23T21:01:54.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T19:21:04.595Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/natefoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-23T20:11:52.000Z","updated_at":"2022-12-26T18:19:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8659cf2-5668-48c1-9634-2c2eaebb51b6","html_url":"https://github.com/natefoo/slurm-test-dev","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natefoo%2Fslurm-test-dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natefoo%2Fslurm-test-dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natefoo%2Fslurm-test-dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natefoo%2Fslurm-test-dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natefoo","download_url":"https://codeload.github.com/natefoo/slurm-test-dev/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166928,"owners_count":21058480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-23T23:31:13.242Z","updated_at":"2025-04-10T05:54:52.565Z","avatar_url":"https://github.com/natefoo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slurm-test-dev\n\n## Overview\n\nA [Docker Compose][docker-compose]-based solution for easing the testing of [Slurm][slurm] configs.\n\n## Usage\n\nYou must have [Docker][get-docker] and [Docker Compose][docker-compose] installed.\n\nTo start, run:\n\n```console\n$ make up\n```\n\nThis does a bit of one-time preparation:\n\n- Creating the Docker Compose `.env` file\n- Creating a munge key at `context/munge.key`\n- Creating a pseudo-shared filesystem in the `cluster` subdirectory, mounted at `/cluster` in the containers.\n- Create the `slurm.conf.d` subdirectory for your modified configs.\n\nAfter which, it runs `docker-compose up`. As is normal with foreground Docker Compose sessions, hit `Ctrl-C` to\nterminate. To start daemonized, run:\n\n```console\n$ make up-d\n```\n\nAnd to stop:\n\n```console\n$ make down\n```\n\nOnce the one-time setup has been performed, you can forego the Makefile and run `docker-compose` commands directly, if\nyou prefer.\n\nTo reset to the initial state, run:\n\n```console\n$ make clean\n```\n\nThis removes `.env` and the munge key, but does not remove the `cluster` directory. It also removes the Docker containers and images.\n\nTo change the Slurm configuration, copy the relevant config (e.g. `slurm.conf` from `context/` to `slurm.conf.d`, make\nyour changes, and then run:\n\n```console\n$ make restart\n```\n\nTo submit jobs:\n\n```console\n$ cat \u003e cluster/slurm.sh \u003c\u003cEOF\n#!/bin/sh\nuname -a\nEOF\n$ make submit\nuser@submit:~$ cd /cluster\nuser@submit:/cluster$ sbatch slurm.sh\nSubmitted batch job 1\nuser@submit:/cluster$ cat slurm-1.out\nLinux slurmd 5.10.0-8-amd64 #1 SMP Debian 5.10.46-4 (2021-08-03) x86_64 x86_64 x86_64 GNU/Linux\nuser@submit:/cluster$ ^D\nlogout\n$\n```\n\n[slurm]: https://slurm.schedmd.com/\n[get-docker]: https://docs.docker.com/get-docker/\n[docker-compose]: https://docs.docker.com/compose/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatefoo%2Fslurm-test-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatefoo%2Fslurm-test-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatefoo%2Fslurm-test-dev/lists"}