dvsrepo commited on
Commit
ab24c6f
1 Parent(s): 23f7888

python3 oops

Browse files
Files changed (1) hide show
  1. start.sh +4 -4
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
- python -m argilla
6
  elif [ -z "$API_KEY" ] && [ -n "$PASSWORD" ]; then
7
  export ARGILLA_LOCAL_AUTH_DEFAULT_PASSWORD=$PASSWORD
8
- python -m argilla
9
  elif [ -n "$API_KEY" ] && [ -z "$PASSWORD" ]; then
10
  export ARGILLA_LOCAL_AUTH_DEFAULT_APIKEY=$API_KEY
11
- python -m argilla
12
  else
13
  export ARGILLA_LOCAL_AUTH_DEFAULT_APIKEY=$API_KEY
14
  export ARGILLA_LOCAL_AUTH_DEFAULT_PASSWORD=$PASSWORD
15
- python -m argilla
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