-
Notifications
You must be signed in to change notification settings - Fork 0
/
entrypoint.sh
executable file
·34 lines (29 loc) · 1.04 KB
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash -l
unset CURRENTLY_BUILDING_DOCKER_IMAGE
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib/ovis-lib:/usr/local/lib/ovis-ldms:${LD_LIBRARY_PATH}
export PATH=/usr/local/bin:/usr/local/sbin:${PATH}
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:${PYTHONPATH}
export INCLUDE=/usr/local/include:${INCLUDE}
export SHARE=/usr/local/share:${SHARE}
export MANPATH=${SHARE}/man
export ZAP_LIBPATH=/usr/local/lib:/usr/local/lib/ovis-lib
export LDMS_AUTH_FILE=/opt/ldms_wheeler/ldmsauth.conf
if [ "$1" '=' 'docker-shell' ] ; then
if [ -t 0 ] ; then
exec bash -il
else
(
echo -n "It looks like you're trying to run an intractive shell"
echo -n " session, but either no psuedo-TTY is allocateed for this"
echo -n " container's STDIN, or it is closed."
echo
echo -n "Make sure you run docker with the --interactive and --tty"
echo -n " options."
echo
) >&2
exit 1
fi
else
/home/docker/commands.sh "$@"
exit $?
fi