File: init

package info (click to toggle)
apptainer 1.4.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,748 kB
  • sloc: sh: 3,321; ansic: 1,706; awk: 414; python: 103; makefile: 54
file content (23 lines) | stat: -rw-r--r-- 763 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# This will be sourced before launching an Apptainer container.
# Any variables prefixed with "APPTAINERENV_" will be transposed
# properly into the container. For example:
# APPTAINERENV_LD_LIBRARY_PATH -> LD_LIBRARY_PATH

# Environment modules if set, cause errors in containers
unset module
unset ml

# Bash env has been known to cause issues in containers
unset BASH_ENV

# Provide a sane path within the container
if [ -z ${APPTAINERENV_PATH+x} ]; then
    APPTAINERENV_PATH="/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin"
else
    APPTAINERENV_PATH="$APPTAINERENV_PATH:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin"
fi

# Don't save the shell's HISTFILE
APPTAINERENV_HISTFILE=""

export APPTAINERENV_PATH APPTAINERENV_HISTFILE