Spaces:
Runtime error
Runtime error
Commit
·
91bdbb4
1
Parent(s):
78ce2d0
update dockerfile
Browse files- Dockerfile +2 -2
- start.sh +5 -6
Dockerfile
CHANGED
@@ -31,9 +31,9 @@ RUN chmod +x /start.sh \
|
|
31 |
|
32 |
# Install Elasticsearch
|
33 |
RUN curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
|
34 |
-
RUN echo "deb https://artifacts.elastic.co/packages/
|
35 |
RUN apt update
|
36 |
-
RUN apt -y install elasticsearch
|
37 |
|
38 |
# Executing argilla along with elasticsearch
|
39 |
CMD /bin/bash /start.sh
|
|
|
31 |
|
32 |
# Install Elasticsearch
|
33 |
RUN curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
|
34 |
+
RUN echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-7.x.list
|
35 |
RUN apt update
|
36 |
+
RUN apt -y install elasticsearch
|
37 |
|
38 |
# Executing argilla along with elasticsearch
|
39 |
CMD /bin/bash /start.sh
|
start.sh
CHANGED
@@ -4,14 +4,13 @@ set -e
|
|
4 |
|
5 |
# Changing user
|
6 |
echo "ubuntu" | sudo -S su user
|
7 |
-
sudo su
|
8 |
|
9 |
# Disable security in elasticsearch configuration
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
|
16 |
# Create elasticsearch directory and change ownership
|
17 |
echo "mkdir"
|
|
|
4 |
|
5 |
# Changing user
|
6 |
echo "ubuntu" | sudo -S su user
|
|
|
7 |
|
8 |
# Disable security in elasticsearch configuration
|
9 |
+
echo "xpack security"
|
10 |
+
sudo sed -i "s/xpack.security.enabled: true/xpack.security.enabled: false/g" /etc/elasticsearch/elasticsearch.yml
|
11 |
+
echo "cluster security"
|
12 |
+
sudo sed -i "s/cluster.initial_master_nodes/#cluster.initial_master_nodes/g" /etc/elasticsearch/elasticsearch.yml
|
13 |
+
echo "cluster.routing.allocation.disk.threshold_enabled: false" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
|
14 |
|
15 |
# Create elasticsearch directory and change ownership
|
16 |
echo "mkdir"
|