Spaces:
Runtime error
Runtime error
File size: 639 Bytes
2c80eb3 0dafcc8 fcffc62 2c80eb3 0dafcc8 2c80eb3 0dafcc8 fcffc62 2c80eb3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
#!/usr/bin/env bash
set -e
# Start Elasticsearch
echo "Starting Elasticsearch"
elasticsearch 1>/dev/null 2>/dev/null &
whoami
# Create users.yml file
echo "Creating users schema"
cat >"$HOME"/users.yml <<EOF
- username: "team"
api_key: TEAM_API_KEY
full_name: Team
email: [email protected]
hashed_password: TEAM_PASSWORD
workspaces: []
- username: "argilla"
api_key: ARGILLA_API_KEY
full_name: Argilla
email: [email protected]
hashed_password: ARGILLA_PASSWORD
workspaces: ["team"]
EOF
echo "Waiting for elasticsearch to start"
sleep 15
# Start Argilla
echo "Starting Argilla"
uvicorn argilla:app --host "0.0.0.0"
|