-
Notifications
You must be signed in to change notification settings - Fork 2
/
ltacmd
executable file
·26 lines (23 loc) · 1.48 KB
/
ltacmd
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
#!/usr/bin/env bash
#-------------------------------------------------------------------------------
# test configuration
#-------------------------------------------------------------------------------
# export CLIENT_ID=${CLIENT_ID:="long-term-archive"}
# export CLIENT_SECRET=${CLIENT_SECRET:="$(<keycloak-client-secret)"}
# export FILE_CATALOG_REST_TOKEN=${FILE_CATALOG_REST_TOKEN:="$(resources/solicit-token.sh)"}
# export FILE_CATALOG_REST_URL=${FILE_CATALOG_REST_URL:="http://127.0.0.1:8889"}
# export LTA_AUTH_OPENID_URL=${LTA_AUTH_OPENID_URL:="https://keycloak.icecube.wisc.edu/auth/realms/IceCube"}
# export LTA_REST_URL=${LTA_REST_URL:="http://127.0.0.1:8080"}
#-------------------------------------------------------------------------------
# production configuration
#-------------------------------------------------------------------------------
export CLIENT_ID=${CLIENT_ID:="long-term-archive"}
export CLIENT_SECRET=${CLIENT_SECRET:="$(<keycloak-client-secret)"}
export FILE_CATALOG_CLIENT_ID=${FILE_CATALOG_CLIENT_ID:="long-term-archive"}
export FILE_CATALOG_CLIENT_SECRET=${FILE_CATALOG_CLIENT_SECRET:="$(<keycloak-client-secret)"}
export FILE_CATALOG_REST_URL=${FILE_CATALOG_REST_URL:="https://file-catalog.icecube.wisc.edu"}
export LTA_AUTH_OPENID_URL=${LTA_AUTH_OPENID_URL:="https://keycloak.icecube.wisc.edu/auth/realms/IceCube"}
export LTA_REST_URL=${LTA_REST_URL:="https://lta.icecube.aq"}
# run the command
export PYTHONWARNINGS=${PYTHONWARNINGS:="ignore"}
python -m lta.lta_cmd $@