Skip to content

Commit 028ab38

Browse files
committed
Reference
1 parent 4977dd6 commit 028ab38

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/tools/container-engine.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ machine registry.ethz.ch login <username> password <GITLAB_TOKEN>
316316
machine gitlab.ethz.ch login <username> password <GITLAB_TOKEN>
317317
```
318318

319-
## Annotations 
319+
## <a name="annotations"></a> Annotations 
320320

321321
Annotations define arbitrary metadata for containers in the form of key-value pairs. Within the EDF, annotations are designed to be similar in appearance and behavior to those defined by the [OCI Runtime Specification](https://github.com/opencontainers/runtime-spec/blob/main/config.md#annotations). Annotation keys usually express a hierarchical namespace structure, with domains separated by "." (full stop) characters.
322322

@@ -634,9 +634,9 @@ Ordered list of EDFs that this file inherits from. Parameters from listed enviro
634634
<details>
635635
<summary>Notes</summary>
636636
637-
* Parameters from the listed environments are evaluated sequentially, adding new entries or overwriting previous ones, before evaluating the parameters from the current EDF. In other words, the current EDF inherits the parameters from the EDFs listed in base_environment. When evaluating mounts or env parameters, values from downstream EDFs are appended to inherited values.
637+
* Parameters from the listed environments are evaluated sequentially, adding new entries or overwriting previous ones, before evaluating the parameters from the current EDF. In other words, the current EDF inherits the parameters from the EDFs listed in `base_environment`. When evaluating `mounts` or `env` parameters, values from downstream EDFs are appended to inherited values.
638638
639-
* The individual EDF entries in the array follow the same search rules as the arguments of the --environment CLI option for Slurm; they can be either file paths or filenames without extension if the file is located in the [EDF search path](#edf-search-path).
639+
* The individual EDF entries in the array follow the same search rules as the arguments of the `--environment` CLI option for Slurm; they can be either file paths or filenames without extension if the file is located in the [EDF search path](#edf-search-path).
640640
641641
* This parameter can be a string if there is only one base environment.
642642
</details>
@@ -662,11 +662,11 @@ The container image to use. Can reference a remote Docker/OCI registry or a loca
662662
<details>
663663
<summary>Notes</summary>
664664
665-
* The full format for remote references is [USER@][REGISTRY#]IMAGE[:TAG].
666-
* [REGISTRY#] : (optional) registry URL, followed by #. Default: Docker Hub.
667-
* IMAGE : image name.
668-
* [:TAG] : (optional) image tag name, preceded by :.
669-
* The registry user can also be specified in the $HOME/.config/enroot/.credentials file.
665+
* The full format for remote references is `[USER@][REGISTRY#]IMAGE[:TAG]`.
666+
* `[REGISTRY#]`: (optional) registry URL, followed by #. Default: Docker Hub.
667+
* `IMAGE`: image name.
668+
* `[:TAG]`: (optional) image tag name, preceded by :.
669+
* The registry user can also be specified in the `$HOME/.config/enroot/.credentials` file.
670670
</details>
671671
672672
<details>
@@ -710,7 +710,7 @@ Initial working directory when the container starts. Default: inherited from ima
710710
workdir = "/home/user/projects"
711711
```
712712
713-
* Workdir pointing to the /tmp directory
713+
* Workdir pointing to the `/tmp` directory
714714
```bash
715715
workdir = "/tmp"
716716
```
@@ -745,12 +745,12 @@ writable = true
745745
746746
### (ARRAY) mounts
747747
748-
List of bind mounts in the format SOURCE:DESTINATION[:FLAGS]. Flags are optional and can include ro, private, etc.
748+
List of bind mounts in the format `SOURCE:DESTINATION[:FLAGS]`. Flags are optional and can include `ro`, `private`, etc.
749749
750750
<details>
751751
<summary>Notes</summary>
752752
753-
* Mount flags are separated with a plus symbol, for example: ro+private.
753+
* Mount flags are separated with a plus symbol, for example: `ro+private`.
754754
* Optional flags from docker format or OCI (need reference)
755755
</details>
756756
@@ -762,7 +762,7 @@ List of bind mounts in the format SOURCE:DESTINATION[:FLAGS]. Flags are optional
762762
mounts = ["/capstor/scratch/cscs/amadonna:/capstor/scratch/cscs/amadonna"]
763763
```
764764
765-
* Mapping path with env variable expansion
765+
* Mapping path with `env` variable expansion
766766
```bash
767767
mounts = ["/capstor/scratch/cscs/${USER}:/capstor/scratch/cscs/${USER}"]
768768
```
@@ -789,7 +789,7 @@ Environment variables to set in the container. Null-string values will unset the
789789
<details>
790790
<summary>Example</summary>
791791
792-
* Basic env block
792+
* Basic `env` block
793793
```bash
794794
[env]
795795
MY_RUN = "production",
@@ -808,7 +808,7 @@ Environment variables to set in the container. Null-string values will unset the
808808
809809
### (TABLE) annotations
810810
811-
OCI-like annotations for the container. For more details, refer to the Annotations section.
811+
OCI-like annotations for the container. For more details, refer to the [Annotations](#annotations) section.
812812
813813
<details>
814814
<summary>Example</summary>

0 commit comments

Comments
 (0)