Spaces:
Runtime error
Runtime error
rhoitjadhav
commited on
Commit
•
6159a0f
1
Parent(s):
eff5763
update dockerfile
Browse files
start.sh
CHANGED
@@ -6,7 +6,8 @@ set -e
|
|
6 |
echo "ubuntu" | sudo -S su user
|
7 |
|
8 |
sudo sed -i "s/API_KEY/$API_KEY/g" /packages/users.yml
|
9 |
-
sudo sed -i "s/
|
|
|
10 |
|
11 |
# Disable security in elasticsearch configuration
|
12 |
sudo sed -i "s/xpack.security.enabled: true/xpack.security.enabled: false/g" /etc/elasticsearch/elasticsearch.yml
|
@@ -14,16 +15,23 @@ sudo sed -i "s/cluster.initial_master_nodes/#cluster.initial_master_nodes/g" /et
|
|
14 |
echo "cluster.routing.allocation.disk.threshold_enabled: false" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
|
15 |
|
16 |
# Create elasticsearch directory and change ownership
|
|
|
17 |
sudo mkdir -p /var/run/elasticsearch
|
|
|
18 |
sudo chown -R elasticsearch:elasticsearch /var/run/elasticsearch
|
19 |
|
20 |
# Starting elasticsearch
|
|
|
21 |
sudo systemctl daemon-reload
|
|
|
22 |
sudo systemctl enable elasticsearch
|
|
|
23 |
sudo systemctl start elasticsearch
|
24 |
|
25 |
# Load data
|
|
|
26 |
sudo python3.9 /load_data.py &
|
27 |
|
28 |
# Start argilla
|
|
|
29 |
uvicorn argilla:app --host "0.0.0.0"
|
|
|
6 |
echo "ubuntu" | sudo -S su user
|
7 |
|
8 |
sudo sed -i "s/API_KEY/$API_KEY/g" /packages/users.yml
|
9 |
+
sudo sed -i "s/ADMIN_PASSWORD/$ADMIN_PASSWORD/g" /packages/users.yml
|
10 |
+
sudo sed -i "s/ARGILLA_PASSWORD/$ARGILLA_PASSWORD/g" /packages/users.yml
|
11 |
|
12 |
# Disable security in elasticsearch configuration
|
13 |
sudo sed -i "s/xpack.security.enabled: true/xpack.security.enabled: false/g" /etc/elasticsearch/elasticsearch.yml
|
|
|
15 |
echo "cluster.routing.allocation.disk.threshold_enabled: false" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
|
16 |
|
17 |
# Create elasticsearch directory and change ownership
|
18 |
+
echo "mkdir"
|
19 |
sudo mkdir -p /var/run/elasticsearch
|
20 |
+
echo "chown"
|
21 |
sudo chown -R elasticsearch:elasticsearch /var/run/elasticsearch
|
22 |
|
23 |
# Starting elasticsearch
|
24 |
+
echo "reload"
|
25 |
sudo systemctl daemon-reload
|
26 |
+
echo "enable"
|
27 |
sudo systemctl enable elasticsearch
|
28 |
+
echo "start"
|
29 |
sudo systemctl start elasticsearch
|
30 |
|
31 |
# Load data
|
32 |
+
echo "Loading data"
|
33 |
sudo python3.9 /load_data.py &
|
34 |
|
35 |
# Start argilla
|
36 |
+
echo "start argilla"
|
37 |
uvicorn argilla:app --host "0.0.0.0"
|
users.yml
CHANGED
@@ -2,12 +2,12 @@
|
|
2 |
api_key: API_KEY
|
3 |
full_name: Hugging Face
|
4 |
email: hfdemo@argilla.io
|
5 |
-
hashed_password:
|
6 |
workspaces: [ ]
|
7 |
|
8 |
- username: "argilla"
|
9 |
api_key: API_KEY
|
10 |
full_name: Hugging Face
|
11 |
email: hfdemo@argilla.io
|
12 |
-
hashed_password:
|
13 |
workspaces: [ "admin" ]
|
|
|
2 |
api_key: API_KEY
|
3 |
full_name: Hugging Face
|
4 |
email: hfdemo@argilla.io
|
5 |
+
hashed_password: ADMIN_PASSWORD
|
6 |
workspaces: [ ]
|
7 |
|
8 |
- username: "argilla"
|
9 |
api_key: API_KEY
|
10 |
full_name: Hugging Face
|
11 |
email: hfdemo@argilla.io
|
12 |
+
hashed_password: ARGILLA_PASSWORD
|
13 |
workspaces: [ "admin" ]
|