Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 686 Bytes
d47a112 23f7888 ab24c6f 23f7888 ab24c6f 23f7888 ab24c6f 23f7888 ab24c6f 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
python3 -m argilla
elif [ -z "$API_KEY" ] && [ -n "$PASSWORD" ]; then
export ARGILLA_LOCAL_AUTH_DEFAULT_PASSWORD=$PASSWORD
python3 -m argilla
elif [ -n "$API_KEY" ] && [ -z "$PASSWORD" ]; then
export ARGILLA_LOCAL_AUTH_DEFAULT_APIKEY=$API_KEY
python3 -m argilla
else
export ARGILLA_LOCAL_AUTH_DEFAULT_APIKEY=$API_KEY
export ARGILLA_LOCAL_AUTH_DEFAULT_PASSWORD=$PASSWORD
python3 -m argilla
fi
|