Skip to content

Commit 65b06ce

Browse files
authored
Merge pull request #175 from trz42/adjustments-for-eessi-bot
tweak scripts to make them a bit more flexible (so they can be leveraged by software-layer bot)
2 parents 677e04c + a15b869 commit 65b06ce

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

build_container.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ else
5050
export SINGULARITY_BIND="$SINGULARITY_BIND,$BIND_PATHS"
5151
fi
5252

53-
export SINGULARITY_HOME="$EESSI_TMPDIR/home:/home/$USER"
53+
# allow that SINGULARITY_HOME is defined before script is run
54+
if [ -z $SINGULARITY_HOME ]; then
55+
export SINGULARITY_HOME="$EESSI_TMPDIR/home:/home/$USER"
56+
fi
5457

5558
# set environment variables for fuse mounts in Singularity container
5659
export EESSI_PILOT_READONLY="container:cvmfs2 pilot.eessi-hpc.org /cvmfs_ro/pilot.eessi-hpc.org"

configure_easybuild

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ export EASYBUILD_ZIP_LOGS=bzip2
1414
export EASYBUILD_RPATH=1
1515
export EASYBUILD_FILTER_ENV_VARS=LD_LIBRARY_PATH
1616

17-
export EASYBUILD_HOOKS=$(realpath eb_hooks.py)
17+
# assume that eb_hooks.py is located in same directory as this script (configure_easybuild)
18+
TOPDIR=$(dirname $(realpath $BASH_SOURCE))
19+
export EASYBUILD_HOOKS=$(realpath ${TOPDIR}/eb_hooks.py)
1820
# make sure hooks are available, so we can produce a clear error message
1921
if [ ! -f $EASYBUILD_HOOKS ]; then
2022
fatal_error "$EASYBUILD_HOOKS does not exist!"

init/minimal_eessi_env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# define minimal EESSI environment, without relying on external scripts
22

33
export EESSI_CVMFS_REPO="/cvmfs/pilot.eessi-hpc.org"
4-
export EESSI_PILOT_VERSION="2021.12"
4+
export EESSI_PILOT_VERSION="${EESSI_PILOT_VERSION_OVERRIDE:=2021.12}"
55
export EESSI_PREFIX=$EESSI_CVMFS_REPO/versions/$EESSI_PILOT_VERSION
66

77
if [[ $(uname -s) == 'Linux' ]]; then

0 commit comments

Comments
 (0)