Skip to content
Open
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
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM docker.elastic.co/elasticsearch/elasticsearch:7.17.28
FROM docker.elastic.co/elasticsearch/elasticsearch:9.2.0

LABEL maintainer="Aad Versteden <aad.versteden@redpencil.io>"

ENV TAKE_FILE_OWNERSHIP /usr/share/elasticsearch/data
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this env var is now no longer supported. Added description in mu-search readme of how to work around this (create directory with broad access rights and add .gitkeep)

ENV MAX_MAP_COUNT 262144
ENV ES_JAVA_OPTS "-Xms2g -Xmx2g"
ENV MAX_MAP_COUNT=262144
ENV ES_JAVA_OPTS="-Xms2g -Xmx2g"
ENV discovery.type=single-node

RUN printf "\nxpack.security.enabled: false\nxpack.security.enrollment.enabled: false\n" >> /usr/share/elasticsearch/config/elasticsearch.yml
Copy link
Author

@Rahien Rahien Nov 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security is enabled by default now, but we don't need this as the service is not exposed. disabled it

RUN sed -i '/-Des.bundled_jdk*/a -Dlog4j2.formatMsgNoLookups=true \\' /usr/share/elasticsearch/bin/elasticsearch