You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Mounting the scratch filesystem using a host environment variable
796
-
797
-
mounts = ["${SCRATCH}:/scratch"]
798
-
799
-
800
-
801
-
802
-
env
803
-
804
-
Type: TABLE
805
-
806
-
Default:
807
-
808
-
Inherited from
809
-
810
-
host and
811
-
812
-
image
813
-
814
-
815
-
816
-
Environment variables to setin the container. Null-string values will unset the variable.
817
-
818
-
By default, containers inherit environment variables from the container image and the host environment, with variables from the image taking precedence.
819
-
The env table can be used to further customize the container environment by setting, modifying, or unsetting variables.
820
-
Values of the table entries must be strings. If an entry has a null value, the variable corresponding to the entry key is unsetin the container.
821
-
822
-
823
-
824
-
Examples
825
-
826
-
1. Basic env block
827
-
828
-
[env]
829
-
MY_RUN = "production",
830
-
DEBUG = "false"
831
-
2. Use of environment variable expansion
832
-
[env]
833
-
MY_NODE = "${VAR_FROM_HOST}",
834
-
PATH = "${PATH}:/custom/bin",
835
-
DEBUG = "true"
836
-
837
-
838
-
839
-
840
-
841
-
842
-
843
-
844
-
annotations
845
-
846
-
Type: TABLE
750
+
<details>
751
+
<summary>Notes</summary>
847
752
848
-
Default: N/A
753
+
* Mount flags are separated with a plus symbol, for example: ro+private.
754
+
* Optional flags from docker format or OCI (need reference)
* Mounting the scratch filesystem using a host environment variable
771
+
```bash
772
+
mounts = ["${SCRATCH}:/scratch"]
773
+
```
774
+
</details>
857
775
858
776
777
+
### env (TABLE)
859
778
779
+
Environment variables to setin the container. Null-string values will unset the variable. Default: inherited from the host and the image.
860
780
861
-
Examples
781
+
<details>
782
+
<summary>Notes</summary>
862
783
863
-
1. Disabling the CXI hook
784
+
* By default, containers inherit environment variables from the container image and the host environment, with variables from the image taking precedence.
785
+
* The env table can be used to further customize the container environment by setting, modifying, or unsetting variables.
786
+
* Values of the table entries must be strings. If an entry has a null value, the variable corresponding to the entry key is unsetin the container.
787
+
</details>
864
788
865
-
[annotations]
866
-
com.hooks.cxi.enabled = "false"
789
+
<details>
790
+
<summary>Example</summary>
867
791
868
-
2. Control of SSH hook parameters via annotation and variable expansion
Environment variable expansion and relative paths expansion are only available on the Bristen vCluster as technical preview.
837
+
>**INFO**: Environment variable expansion and relative paths expansion are only available on the Bristen vCluster as technical preview.
886
838
887
839
### Environment Variable Expansion
888
840
@@ -895,9 +847,9 @@ Environment variable expansion allows for dynamic substitution of environment va
895
847
* *Limitations*
896
848
* Variables defined within the [env] EDF table cannot reference other entries from [env] tables in the same or other EDF files (e.g. the ones entered as base environments) . Therefore, only environment variables from the host or image can be referenced.
897
849
* *Environment Variable Resolution Order*. The environment variables are resolved based on the following order:
898
-
1. TOML env: Variable values as defined in EDF’s env.
899
-
2. Container Image: Variables defined in the container image's environment take precedence.
900
-
3. Host Environment: Environment variables defined in the host system.
850
+
* TOML env: Variable values as defined in EDF’s env.
851
+
* Container Image: Variables defined in the container image's environment take precedence.
852
+
* Host Environment: Environment variables defined in the host system.
901
853
902
854
### Relative paths expansion
903
855
@@ -911,7 +863,7 @@ Alpine Linux is incompatible with some hooks, causing errors when used with Slur
0 commit comments