Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add pelias/elasticsearch:8.12.2-beta docker image #344

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions images/elasticsearch/8.12.2-beta/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# see: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html

# base image
FROM docker.elastic.co/elasticsearch/elasticsearch:8.12.2
USER root

# environmental settings
ENV ES_JAVA_OPTS '-Xms512m -Xmx512m'
ENV cluster.name 'pelias-dev'
ENV discovery.type 'single-node'
ENV bootstrap.memory_lock 'true'
RUN echo 'vm.max_map_count=262144' >> /etc/sysctl.conf

# configure plugins
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-icu
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install repository-s3 --batch

# elasticsearch config
ADD elasticsearch.yml /usr/share/elasticsearch/config/
RUN chown elasticsearch:elasticsearch config/elasticsearch.yml

## set permissions so any user can run elasticsearch
# add read permissions to all files in dir
RUN chmod go+r /usr/share/elasticsearch -R

# add write permissions to config, log & data dirs
RUN chmod go+w /usr/share/elasticsearch \
/usr/share/elasticsearch/config \
/usr/share/elasticsearch/logs \
/usr/share/elasticsearch/data

# add execute permissions to bins
RUN chmod go+x /usr/share/elasticsearch/bin/*

# run as elasticsearch user
USER elasticsearch
9 changes: 9 additions & 0 deletions images/elasticsearch/8.12.2-beta/elasticsearch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
bootstrap.memory_lock: true
network.host: 0.0.0.0
http.port: 9200
node.roles: [ master, data ]
thread_pool:
write:
queue_size: 1000
indices.query.bool.max_clause_count: 4000
xpack.security.enabled: false