20 lines
568 B
Docker
20 lines
568 B
Docker
ARG BASE_IMAGE=opensearchproject/opensearch:latest
|
|
FROM ${BASE_IMAGE}
|
|
|
|
# Install dependencies for configuration
|
|
RUN microdnf update -y && \
|
|
microdnf install -y gettext bash jq && \
|
|
microdnf clean all
|
|
|
|
# Copy configuration files and scripts
|
|
COPY rootfs/ /
|
|
|
|
# Create directories and set permissions
|
|
RUN mkdir -p /usr/share/opensearch/config/jvm.options.d && \
|
|
chown -R opensearch:opensearch /usr/share/opensearch && \
|
|
chmod +x /usr/bin/configure-opensearch
|
|
|
|
USER opensearch
|
|
|
|
# Use our custom entrypoint script
|
|
ENTRYPOINT ["/usr/bin/configure-opensearch"] |