Skip to content

Commit 136add8

Browse files
committed
removed $SINGULARITY_ENVIRONMENT jazz from current docs
1 parent fcc9315 commit 136add8

File tree

3 files changed

+0
-29
lines changed

3 files changed

+0
-29
lines changed

pages/docs/user-docs/docs-bootstrap-image.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,6 @@ You can add environment variables to be sourced when the container is used in th
151151
export SOLO=someguy
152152
```
153153

154-
You can also add environment variables to your container in the `%post` section (see below) using the following syntax:
155-
156-
```
157-
%post
158-
echo 'export JAWA_SEZ=wutini' >>$SINGULARITY_ENVIRONMENT
159-
```
160-
161-
Variables added to your container using the `$SINGULARITY_ENVIRONMENT` syntax take precedence over those added in the `%environment` section.
162-
163154
See <a href="/docs-environment-metadata">Environment and Metadata</a> for more information about the `%labels` and `%environment` sections.
164155

165156

pages/docs/user-docs/docs-bootstrap.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,6 @@ Beginning with Singularity v2.3 you can set up your environment using the `%envi
101101
export PATH=/opt/good/stuff:$PATH
102102
```
103103

104-
In older versions of Singularity you could set up your container's environment by adding text to a file called `/environment`. This method is now deprecated. If you need to add environment variables to your container during the `%post` section (perhaps because you will not know the values of some variables until some installation steps have completed). You can do so with the following syntax:
105-
106-
```
107-
%post
108-
echo 'export PATH=/opt/good/stuff:$PATH' >>$SINGULARITY_ENVIRONMENT
109-
```
110-
111-
Text in the `%environment` section will be appended to a file called `/.singularity.d/env/90-environment.sh`. Text redirected to the `$SINGULARITY_ENVIRONMENT` variable will added to a file called `/.singularity.d/env/91-environment.sh`. At runtime, scripts in `/.singularity/env` are sourced in order.
112-
113-
This means that variables in `$SINGULARITY_ENVIRONMENT` take precedence over those added via `%environment`.
114-
115104
### %runscript
116105
The `%runscript` is another scriptlet, but it does not get executed during bootstrapping. Instead it gets persisted within the container to a file called `/singularity` which is the execution driver when the container image is ***run*** (either via the `singularity run` command or via executing the container directly).
117106

pages/docs/user-docs/docs-environment-metadata.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,6 @@ From: ubuntu:latest
2323
export VARIABLE_NAME
2424
```
2525

26-
If you need to add an environment variable to your container during the `%post` section, you can do so using the `$SINGULARITY_ENVIRONMENT` variable with the following syntax:
27-
28-
```
29-
%post
30-
echo 'export VARIABLE_NAME=VARIABLE_VALUE' >>$SINGULARITY_ENVIRONMENT
31-
```
32-
33-
Text in the `%environment` section will be appended to the file `/.singularity.d/env/90-environment.sh` while text redirected to `$SINGULARITY_ENVIRONMENT` will end up in the file `/.singularity.d/env/91-environment.sh`. Because files in `/.singularity.d/env` are sourced in alpha-numerical order, this means that variables added using `$SINGULARITY_ENVIRONMENT` take precedence over those added via the `%environment` section.
34-
3526
Forget something, or need a variable defined at runtime? You can set any variable you want inside the container by prefixing it with "SINGULARITYENV_". It will be transposed automatically and the prefix will be stripped. For example, let's say we want to set the variable `HELLO` to have value `WORLD`. We can do that as follows:
3627

3728
```bash

0 commit comments

Comments
 (0)