Update all scripts to run Elasticsearch directly without Docker

This commit is contained in:
Andreas Düren 2025-03-16 13:59:33 +01:00
parent 231855b94b
commit 9e171700bf

View File

@ -17,9 +17,9 @@ RUN apt-get update && apt-get install -y \
# Set environment variables
ENV ELASTIC_VERSION=8.17.3
# Create elasticsearch user and group
RUN groupadd -g 1000 elasticsearch && \
useradd -u 1000 -g elasticsearch -s /bin/bash elasticsearch
# Check if elasticsearch user and group exist and create them if not
RUN getent group elasticsearch > /dev/null || groupadd -g 1000 elasticsearch && \
getent passwd elasticsearch > /dev/null || useradd -u 1000 -g elasticsearch -s /bin/bash elasticsearch
# Download and install Elasticsearch
RUN mkdir -p /usr/share/elasticsearch && \