Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
a1bc35e
1
Parent(s):
16b5a62
Delete start.sh
Browse files
start.sh
DELETED
@@ -1,16 +0,0 @@
|
|
1 |
-
|
2 |
-
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 &
|
3 |
-
./wait-for-it.sh -t 30 localhost:9200
|
4 |
-
if [ -z "$API_KEY" ] && [ -z "$PASSWORD" ]; then
|
5 |
-
python3 -m argilla
|
6 |
-
elif [ -z "$API_KEY" ] && [ -n "$PASSWORD" ]; then
|
7 |
-
export ARGILLA_LOCAL_AUTH_DEFAULT_PASSWORD=$PASSWORD
|
8 |
-
python3 -m argilla
|
9 |
-
elif [ -n "$API_KEY" ] && [ -z "$PASSWORD" ]; then
|
10 |
-
export ARGILLA_LOCAL_AUTH_DEFAULT_APIKEY=$API_KEY
|
11 |
-
python3 -m argilla
|
12 |
-
else
|
13 |
-
export ARGILLA_LOCAL_AUTH_DEFAULT_APIKEY=$API_KEY
|
14 |
-
export ARGILLA_LOCAL_AUTH_DEFAULT_PASSWORD=$PASSWORD
|
15 |
-
python3 -m argilla
|
16 |
-
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|