-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup
65 lines (48 loc) · 1.93 KB
/
setup
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
echo ""
echo " --- [sPHENIX Setup] --- "
echo ""
# Default to production instance, otherwise test instance
select=''
if [[ -z $1 ]]; then
select='prod'
else
select=$1
fi
echo "Setting up sPHENIX environment"
echo "----------------------------------------------------------------------"
source /opt/sphenix/core/bin/sphenix_setup.sh
#echo "Setting up PanDA environment"
export PANDA_ROOT_ENV=/cvmfs/sphenix.sdcc.bnl.gov/gcc-12.1.0/opt/sphenix/core/stow/Python-3.10.8/
export PANDA_SERVER=https://sphenix-pandaserver.apps.rcf.bnl.gov
source ${PANDA_ROOT_ENV}/etc/panda/panda_setup.sh
export PANDA_CONFIG_ROOT=.pathena/
if [ $select == 'prod' ]; then
echo "Setting up PanDA production environment"
export PANDA_URL_SSL=${PANDA_SERVER}/server/panda
export PANDA_URL=${PANDA_SERVER}/server/panda
export PANDACACHE_URL=${PANDA_SERVER}/server/panda
export PANDAMON_URL=https://sphenix-panda.apps.rcf.bnl.gov
export PS1="\u@\h [\d]$ "
else
echo "Setting up PanDA test environment"
export PANDA_URL_SSL=https://sphenix-pandaserver-test.apps.rcf.bnl.gov/server/panda
export PANDA_URL=https://sphenix-pandaserver-test.apps.rcf.bnl.gov/server/panda
export PANDACACHE_URL=https://sphenix-pandaserver-test.apps.rcf.bnl.gov/server/panda
export PANDAMON_URL=https://sphenix-panda-test.apps.rcf.bnl.gov
export PS1="\u@\h [test]$ "
fi
export PANDA_AUTH=oidc
export PANDA_AUTH_VO=sphenix.production
export PANDA_USE_NATIVE_HTTPLIB=1
export PANDA_BEHIND_REAL_LB=1
echo "Sourcing rucio setup script"
source /cvmfs/sphenix.sdcc.bnl.gov/rucio-clients/setup.sh
export PATH=~/bin:${PATH}
export EDITOR='vim'
export SHREKSYS="${SHREK_INSTALL:-${HOME}/shreksys/}"
export PYTHONPATH=${PYTHONPATH}:${SHREKSYS}:.
alias shrek='${SHREKSYS}/shrek/scripts/submitWorflowToPanDA.py'
alias donkey='${SHREKSYS}/shrek/scripts/DonkeyApplication.py --user donkey --password donkey'
function pshow() {
echo "show(limit=10)" | pbook
}