Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. #!/bin/bash -l
  2.  
  3. unset CURRENTLY_BUILDING_DOCKER_IMAGE
  4.  
  5. export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib/ovis-lib:/usr/local/lib/ovis-ldms:${LD_LIBRARY_PATH}
  6. export PATH=/usr/local/bin:/usr/local/sbin:${PATH}
  7. export PYTHONPATH=/usr/local/lib/python2.7/site-packages:${PYTHONPATH}
  8. export INCLUDE=/usr/local/include:${INCLUDE}
  9. export SHARE=/usr/local/share:${SHARE}
  10. export MANPATH=${SHARE}/man
  11. export ZAP_LIBPATH=/usr/local/lib:/usr/local/lib/ovis-lib
  12. export LDMS_AUTH_FILE=/opt/ldms_wheeler/ldmsauth.conf
  13.  
  14. if [ "$1" '=' 'docker-shell' ] ; then
  15. if [ -t 0 ] ; then
  16. exec bash -il
  17. else
  18. (
  19. echo -n "It looks like you're trying to run an intractive shell"
  20. echo -n " session, but either no psuedo-TTY is allocateed for this"
  21. echo -n " container's STDIN, or it is closed."
  22. echo
  23.  
  24. echo -n "Make sure you run docker with the --interactive and --tty"
  25. echo -n " options."
  26. echo
  27. ) >&2
  28.  
  29. exit 1
  30. fi
  31. elif [ "$1" '=' 'orted' ] ; then
  32. echo "I am about to launch orted from inside container."
  33. echo which orted: $(which orted)
  34. orted
  35. else
  36. echo "I am about to run commands.sh"
  37. echo "which orted: $(which orted)"
  38. echo "echo \${OMPI_MCA_orte_launch_agent}: ${OMPI_MCA_orte_launch_agent}"
  39. /home/docker/commands.sh "$@"
  40. exit $?
  41. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement