20 lines
		
	
	
		
			577 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			577 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
ARG BASE_IMAGE=opensearchproject/opensearch:latest
 | 
						|
FROM ${BASE_IMAGE}
 | 
						|
 | 
						|
# Install dependencies for configuration (Amazon Linux 2023 uses dnf)
 | 
						|
RUN dnf update -y && \
 | 
						|
    dnf install -y gettext jq && \
 | 
						|
    dnf 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"] |