File size: 682 Bytes
d47a112
 
 
23f7888
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

ES_JAVA_OPTS=-'Xms512m -Xmx512m' elasticsearch -E node.name=elasticsearch -E cluster.name=es-local -E discovery.type=single-node -E cluster.routing.allocation.disk.threshold_enabled=false &
./wait-for-it.sh -t 30 localhost:9200
if [ -z "$API_KEY" ] && [ -z "$PASSWORD" ]; then
  python -m argilla
elif [ -z "$API_KEY" ] && [ -n "$PASSWORD" ]; then
  export ARGILLA_LOCAL_AUTH_DEFAULT_PASSWORD=$PASSWORD
  python -m argilla
elif [ -n "$API_KEY" ] && [ -z "$PASSWORD" ]; then
  export ARGILLA_LOCAL_AUTH_DEFAULT_APIKEY=$API_KEY
  python -m argilla
else
  export ARGILLA_LOCAL_AUTH_DEFAULT_APIKEY=$API_KEY
  export ARGILLA_LOCAL_AUTH_DEFAULT_PASSWORD=$PASSWORD
  python -m argilla
fi