Skip to content
Snippets Groups Projects
Commit 635a916a authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

ATHENA_PREFIX -> EIC_SHELL_PREFIX

parent fda0da91
No related branches found
No related tags found
1 merge request!319ATHENA_PREFIX -> EIC_SHELL_PREFIX
...@@ -29,7 +29,7 @@ eic-shell ...@@ -29,7 +29,7 @@ eic-shell
``` ```
4. Within your development environment (`eic-shell`), you can install software to the 4. Within your development environment (`eic-shell`), you can install software to the
internal `$ATHENA_PREFIX` internal `$EIC_SHELL_PREFIX`
Singularity Container setup for Development Usage Singularity Container setup for Development Usage
------------- -------------
......
#!/bin/bash #!/bin/bash
export BINARY_TAG=x86_64-linux-gcc9-opt export BINARY_TAG=x86_64-linux-gcc9-opt
if [ ! -z ${ATHENA_PREFIX} ]; then if [ ! -z ${EIC_SHELL_PREFIX} ]; then
if [ "$LD_LIBRARY_PATH" != *"${ATHENA_PREFIX}/lib"* ]; then if [ "$LD_LIBRARY_PATH" != *"${EIC_SHELL_PREFIX}/lib"* ]; then
export LD_LIBRARY_PATH=$ATHENA_PREFIX/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=$EIC_SHELL_PREFIX/lib:$LD_LIBRARY_PATH
export PATH=$ATHENA_PREFIX/bin:$PATH export PATH=$EIC_SHELL_PREFIX/bin:$PATH
fi fi
fi fi
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
## in your local environment under $PREFIX/local/lib ## in your local environment under $PREFIX/local/lib
## and creates a simple top-level launcher script ## and creates a simple top-level launcher script
## that launches the container for this working directory ## that launches the container for this working directory
## with the $ATHENA_PREFIX variable pointing ## with the $EIC_SHELL_PREFIX variable pointing
## to the $PREFIX/local directory ## to the $PREFIX/local directory
CONTAINER="jug_xl" CONTAINER="jug_xl"
...@@ -195,7 +195,7 @@ function install_singularity() { ...@@ -195,7 +195,7 @@ function install_singularity() {
done done
## create a new top-level eic-shell launcher script ## create a new top-level eic-shell launcher script
## that sets the ATHENA_PREFIX and then starts singularity ## that sets the EIC_SHELL_PREFIX and then starts singularity
cat << EOF > eic-shell cat << EOF > eic-shell
#!/bin/bash #!/bin/bash
...@@ -278,7 +278,7 @@ if [ ! -z \${UPGRADE} ]; then ...@@ -278,7 +278,7 @@ if [ ! -z \${UPGRADE} ]; then
exit 0 exit 0
fi fi
export ATHENA_PREFIX=$PREFIX/local export EIC_SHELL_PREFIX=$PREFIX/local
export SINGULARITY_BINDPATH=$BINDPATH export SINGULARITY_BINDPATH=$BINDPATH
\${SINGULARITY:-$SINGULARITY} exec \${SINGULARITY_OPTIONS:-} \${SIF:-$SIF} eic-shell \$@ \${SINGULARITY:-$SINGULARITY} exec \${SINGULARITY_OPTIONS:-} \${SIF:-$SIF} eic-shell \$@
EOF EOF
...@@ -325,7 +325,7 @@ function install_docker() { ...@@ -325,7 +325,7 @@ function install_docker() {
fi fi
## create a new top-level eic-shell launcher script ## create a new top-level eic-shell launcher script
## that sets the magix PREFIX and then starts singularity ## that sets the EIC_SHELL_PREFIX and then starts singularity
cat << EOF > eic-shell cat << EOF > eic-shell
#!/bin/bash #!/bin/bash
...@@ -384,7 +384,7 @@ if [ ! -z \${UPGRADE} ]; then ...@@ -384,7 +384,7 @@ if [ ! -z \${UPGRADE} ]; then
exit 0 exit 0
fi fi
docker run $PLATFORM_FLAG $MOUNT -w=$PWD -it --rm -e ATHENA_PREFIX=$PREFIX/local $IMG eic-shell \$@ docker run $PLATFORM_FLAG $MOUNT -w=$PWD -it --rm -e EIC_SHELL_PREFIX=$PREFIX/local $IMG eic-shell \$@
EOF EOF
chmod +x eic-shell chmod +x eic-shell
......
...@@ -4,7 +4,7 @@ source /opt/detector/setup.sh ...@@ -4,7 +4,7 @@ source /opt/detector/setup.sh
git clone https://eicweb.phy.anl.gov/EIC/tutorials/ip6_tutorial_1.git part1 git clone https://eicweb.phy.anl.gov/EIC/tutorials/ip6_tutorial_1.git part1
pushd part1 pushd part1
cmake -B build -S . -DCMAKE_INSTALL_PREFIX=$ATHENA_PREFIX -DCMAKE_CXX_STANDARD=17 cmake -B build -S . -DCMAKE_INSTALL_PREFIX=$EIC_SHELL_PREFIX -DCMAKE_CXX_STANDARD=17
cmake --build build -j4 -- install cmake --build build -j4 -- install
dd_web_display --export gem_tracker.xml dd_web_display --export gem_tracker.xml
checkOverlaps -t 0.0001 -c gem_tracker.xml checkOverlaps -t 0.0001 -c gem_tracker.xml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment