Skip to content
Snippets Groups Projects
Singularity 1.07 KiB
Newer Older
Whitney Armstrong's avatar
Whitney Armstrong committed
Bootstrap: docker
From: hallac/hcana:latest
Whitney Armstrong's avatar
Whitney Armstrong committed

Whitney Armstrong's avatar
Whitney Armstrong committed
%help
  Help me. I'm in the container.

%labels
  Maintainer "Whitney Armstrong"
  Version v1.0

%environment -c /bin/bash
  export PYTHONPATH=/usr/local/lib:$PYTHONPATH
  source /usr/local/bin/thisroot.sh

%post -c /bin/bash
  echo "Hello from post"
  source /usr/local/bin/thisroot.sh
  export PYTHONPATH=/usr/local/lib:$PYTHONPATH
  #git clone https://gitlab+deploy-token-1:FaNA-Yg4s7hpjvWPZnq8@eicweb.phy.anl.gov/upsilon/Pcsim.git 
  #mkdir Pcsim/build && cd Pcsim/build 
  #cmake ../. 
  #make -j20
  #make install
Whitney Armstrong's avatar
Whitney Armstrong committed


%runscript
  echo "Hello from runscirpt"
  echo "Rooooar!"
  echo "Arguments received: $*"
  exec echo "$@"

#  derp=
#  if [ -p /dev/stdin ]; then
#    # If we want to read the input line by line
#    while IFS= read line; do
#      #echo "Line: ${line}"
#      if [ -z ${derp} ]; then
#        derp="${line}"
#      else 
#        derp="${derp}\n${line}"
#      fi
#    done
#  fi
#  /bin/bash <<EOF
#  source /usr/local/bin/geant4.sh
#  echo -e ${derp} | bubble_chamber $@
#EOF
#  #exec /usr/local/bin/run_bubble_sim "$@"