Spaces:
Sleeping
Sleeping
dvsrepo
commited on
Commit
•
ab24c6f
1
Parent(s):
23f7888
python3 oops
Browse files
start.sh
CHANGED
@@ -2,15 +2,15 @@
|
|
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 |
-
|
6 |
elif [ -z "$API_KEY" ] && [ -n "$PASSWORD" ]; then
|
7 |
export ARGILLA_LOCAL_AUTH_DEFAULT_PASSWORD=$PASSWORD
|
8 |
-
|
9 |
elif [ -n "$API_KEY" ] && [ -z "$PASSWORD" ]; then
|
10 |
export ARGILLA_LOCAL_AUTH_DEFAULT_APIKEY=$API_KEY
|
11 |
-
|
12 |
else
|
13 |
export ARGILLA_LOCAL_AUTH_DEFAULT_APIKEY=$API_KEY
|
14 |
export ARGILLA_LOCAL_AUTH_DEFAULT_PASSWORD=$PASSWORD
|
15 |
-
|
16 |
fi
|
|
|
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
|