Spaces:
Runtime error
Runtime error
rhoitjadhav
commited on
Commit
·
f7a1118
1
Parent(s):
6e62606
update dockerfile
Browse files
start.sh
CHANGED
@@ -5,6 +5,12 @@ set -e
|
|
5 |
# Changing user
|
6 |
sudo -S su user
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
# Disable security in elasticsearch configuration
|
9 |
sudo sed -i "s/xpack.security.enabled: true/xpack.security.enabled: false/g" /etc/elasticsearch/elasticsearch.yml
|
10 |
sudo sed -i "s/cluster.initial_master_nodes/#cluster.initial_master_nodes/g" /etc/elasticsearch/elasticsearch.yml
|
@@ -24,12 +30,6 @@ echo "starting"
|
|
24 |
sudo systemctl start elasticsearch.service
|
25 |
echo "started"
|
26 |
|
27 |
-
# Update API_KEY and PASSWORD from users.yml
|
28 |
-
echo "sed"
|
29 |
-
sudo sed -i 's,API_KEY,'"$API_KEY"',g' /packages/users.yml
|
30 |
-
sudo sed -i 's,ADMIN_PASSWORD,'"$ADMIN_PASSWORD"',g' /packages/users.yml
|
31 |
-
sudo sed -i 's,ARGILLA_PASSWORD,'"$ARGILLA_PASSWORD"',g' /packages/users.yml
|
32 |
-
|
33 |
# Load data
|
34 |
echo "load data"
|
35 |
pip3 install datasets
|
|
|
5 |
# Changing user
|
6 |
sudo -S su user
|
7 |
|
8 |
+
# Update API_KEY and PASSWORD from users.yml
|
9 |
+
echo "sed"
|
10 |
+
sudo sed -i 's,API_KEY,'"$API_KEY"',g' /packages/users.yml
|
11 |
+
sudo sed -i 's,ADMIN_PASSWORD,'"$ADMIN_PASSWORD"',g' /packages/users.yml
|
12 |
+
sudo sed -i 's,ARGILLA_PASSWORD,'"$ARGILLA_PASSWORD"',g' /packages/users.yml
|
13 |
+
|
14 |
# Disable security in elasticsearch configuration
|
15 |
sudo sed -i "s/xpack.security.enabled: true/xpack.security.enabled: false/g" /etc/elasticsearch/elasticsearch.yml
|
16 |
sudo sed -i "s/cluster.initial_master_nodes/#cluster.initial_master_nodes/g" /etc/elasticsearch/elasticsearch.yml
|
|
|
30 |
sudo systemctl start elasticsearch.service
|
31 |
echo "started"
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
# Load data
|
34 |
echo "load data"
|
35 |
pip3 install datasets
|