Page History
...
It is required to keep the container writable (true by default) to use the hook.
The following EDF file shows an example of enabling the SSH hook and authorizing a user-provided public key:
Code Block |
---|
[<vcluster>][<username>@<vcluster>-ln001 ~]$ cat $HOME/.edf/ubuntu-ssh.toml
image = "ubuntu:latest"
writable = true
[annotations.com.hooks.ssh]
enabled = "true"
authorize_ssh_key = "<public key file>" |
...
It is required to keep the container writable (true by default) to be able to use the hook.
...
Code Block |
---|
[<vcluster>][<username>@<vcluster>-ln001 ~]$ cat $HOME/.edf/vectoradd-cuda-mps.toml image = "nvcr.io#nvidia/k8s/cuda-sample:vectoradd-cuda12.5.0-ubuntu22.04" writable = true [annotations] com.hooks.nvidia_cuda_mps.enabled = "true" [<vcluster>][<username>@<vcluster>-ln001 ~]$ srun -t2 -N1 -n8 --environment=vectoradd-cuda-mps /cuda-samples/vectorAdd | grep "Test PASSED" | wc -l 8 |
...
Parameter | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Ordered list of EDFs that this file inherits from. Parameters from listed environments are evaluated sequentially. Supports up to 10 levels of recursion.
| ||||||||||||||
Examples
| |||||||||||||||
| The container image to use. Can reference a remote Docker/OCI registry or a local Squashfs file as a filesystem path.
| ||||||||||||||
Examples
| |||||||||||||||
| Initial working directory when the container starts. | ||||||||||||||
Examples
| |||||||||||||||
| If | ||||||||||||||
Examples
| |||||||||||||||
| If | ||||||||||||||
Examples
| |||||||||||||||
| List of bind mounts in the format
| ||||||||||||||
Examples
| |||||||||||||||
| Environment variables to set in the container. Null-string values will unset the variable.
| ||||||||||||||
Examples
| |||||||||||||||
| |||||||||||||||
Examples
|
...