Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpb committed Jun 22, 2023
1 parent edf79ba commit 24d4f3d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
18 changes: 4 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ The compose file will run the following containers:
The compose file will create the following named volumes:

* etc_munge ( -> /etc/munge )
* etc_slurm ( -> /etc/slurm )
* slurm_jobdir ( -> /data )
* var_lib_mysql ( -> /var/lib/mysql )
* var_log_slurm ( -> /var/log/slurm )
Expand All @@ -37,19 +36,12 @@ tag:
docker build --build-arg SLURM_TAG="slurm-19-05-2-1" -t slurm-docker-cluster:19.05.2 .
```

Or equivalently using `docker-compose`:

```console
SLURM_TAG=slurm-19-05-2-1 IMAGE_TAG=19.05.2 docker-compose build
```


## Starting the Cluster

Run `docker-compose` to instantiate the cluster:

```console
IMAGE_TAG=19.05.2 docker-compose up -d
docker compose up -d
```

## Register the Cluster with SlurmDBD
Expand Down Expand Up @@ -101,16 +93,14 @@ slurm-2.out
## Stopping and Restarting the Cluster

```console
docker-compose stop
docker-compose start
docker compose stop
docker compose start
```

## Deleting the Cluster

To remove all containers and volumes, run:

```console
docker-compose stop
docker-compose rm -f
docker volume rm slurm-docker-cluster_etc_munge slurm-docker-cluster_etc_slurm slurm-docker-cluster_slurm_jobdir slurm-docker-cluster_var_lib_mysql slurm-docker-cluster_var_log_slurm
./rm-cluster
```
10 changes: 10 additions & 0 deletions rm-cluster
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail

docker compose stop
docker compose rm -f
docker volume rm \
slurm-docker-cluster_etc_munge \
slurm-docker-cluster_slurm_jobdir \
slurm-docker-cluster_var_lib_mysql \
slurm-docker-cluster_var_log_slurm

0 comments on commit 24d4f3d

Please sign in to comment.