Skip to content

Commit

Permalink
Automatically bind data and run directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Frits Sweijen committed Mar 11, 2024
1 parent bde82f1 commit a09ca60
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runners/run_LINC_calibrator_HBA.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ else
fi
export RUNDIR

# Automatically bind the data and runtime directories.
APPTAINER_BINDPATH=$RUNDIR:$DATADIR:$APPTAINER_BINDPATH
export APPTAINER_BINDPATH

## WORKDIR is where all the other directories will be stored.
export WORKDIR=$(mktemp -d -p "$RUNDIR")
echo "Working directory is $WORKDIR"
Expand Down
4 changes: 4 additions & 0 deletions runners/run_LINC_target_HBA.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ else
fi
export RUNDIR

# Automatically bind the data and runtime directories.
APPTAINER_BINDPATH=$RUNDIR:$DATADIR:$APPTAINER_BINDPATH
export APPTAINER_BINDPATH

## WORKDIR is where all the other directories will be stored.
export WORKDIR=$(mktemp -d -p "$RUNDIR")
echo "Working directory is $WORKDIR"
Expand Down
4 changes: 4 additions & 0 deletions runners/run_lofar-vlbi-delay-calibration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ else
fi
export RUNDIR

# Automatically bind the data and runtime directories.
APPTAINER_BINDPATH=$RUNDIR:$DATADIR:$APPTAINER_BINDPATH
export APPTAINER_BINDPATH

# Warn on low disk space (< 25 TB).
reqSpace=15000000000000
reqSpaceHum=$(echo "scale=1;$reqSpace/1000000000000" | bc -l)T
Expand Down
4 changes: 4 additions & 0 deletions runners/run_lofar-vlbi-split-directions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ else
fi
export RUNDIR

# Automatically bind the data and runtime directories.
APPTAINER_BINDPATH=$RUNDIR:$DATADIR:$APPTAINER_BINDPATH
export APPTAINER_BINDPATH

## WORKDIR is where all the other directories will be stored.
export WORKDIR=$(mktemp -d -p "$RUNDIR")
## Location of LINC. This must be a user-writable location for this wrapper script.
Expand Down

0 comments on commit a09ca60

Please sign in to comment.