mirror of
https://github.com/deviantony/docker-elk.git
synced 2025-12-14 19:00:43 +01:00
X-Pack (alpha-2) support
This commit is contained in:
@@ -2,11 +2,6 @@ FROM elasticsearch:5
|
||||
|
||||
ENV ES_JAVA_OPTS="-Des.path.conf=/etc/elasticsearch"
|
||||
|
||||
RUN elasticsearch-plugin install x-pack
|
||||
RUN elasticsearch-plugin install --batch x-pack
|
||||
|
||||
RUN apt-get update && apt-get install -y netcat
|
||||
|
||||
COPY entrypoint.sh /tmp/entrypoint.sh
|
||||
RUN chmod +x /tmp/entrypoint.sh
|
||||
|
||||
CMD ["/tmp/entrypoint.sh"]
|
||||
CMD ["-E", "es.network.host=0.0.0.0", "-E", "es.discovery.zen.minimum_master_nodes=1"]
|
||||
|
||||
@@ -1,19 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo "Starting Elasticsearch"
|
||||
gosu elasticsearch elasticsearch -E es.network.host=0.0.0.0 -E es.discovery.zen.minimum_master_nodes=1 &
|
||||
|
||||
echo "Waiting for Elasticsearch to boot..."
|
||||
while true; do
|
||||
nc -q 1 localhost 9200 2>/dev/null && break
|
||||
done
|
||||
|
||||
echo "Elasticsearch ready. Creating x-pack users..."
|
||||
|
||||
/usr/share/elasticsearch/bin/x-pack/users useradd elastic -r admin -p 'pass-elastic'
|
||||
/usr/share/elasticsearch/bin/x-pack/users useradd kibana -r kibana4_server -p 'pass-kibana'
|
||||
/usr/share/elasticsearch/bin/x-pack/users useradd logstash -r logstash -p 'pass-logstash'
|
||||
|
||||
while true; do sleep 1000; done
|
||||
|
||||
exit 0
|
||||
exec gosu elasticsearch elasticsearch -E es.network.host=0.0.0.0 -E es.discovery.zen.minimum_master_nodes=1
|
||||
|
||||
Reference in New Issue
Block a user