Skip to content

Commit

Permalink
patch cherry picked docs
Browse files Browse the repository at this point in the history
Signed-off-by: jason yang <[email protected]>
  • Loading branch information
JasonYangShadow committed Mar 12, 2024
1 parent b192dba commit f0e6f4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions build_env.rst
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,7 @@ Environment Variables
You can set environment variables on the host to influence the behaviour of a
build. Note that environment variables are not passed into the build itself, and
cannot be accessed in the ``%post`` section of a definition file. To pass values
into a build, use the :ref:`templating / build-args support <sec:templating>`
introduced in {Singularity} 4.0.
into a build, use the :ref:`templating / build-args support <sec:templating>`.

Environment variables that control a build are generally associated with an
equivalent CLI option. The order of precendence is:
Expand Down
3 changes: 1 addition & 2 deletions definition_files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,7 @@ write configuration files, create new directories, etc.

The commands in the ``%post`` section run in a clean environment. Environment
variables from the host are not passed into the build. To pass values into a
build you should use the :ref:`templating / build-args support <sec:templating>`
introduced in {Singularity} 4.0.
build you should use the :ref:`templating / build-args support <sec:templating>`.

Consider the ``%post`` section from the example definition file above:

Expand Down

0 comments on commit f0e6f4b

Please sign in to comment.