|
|
5 dagen geleden | |
|---|---|---|
| .. | ||
| Dockerfile | 5 dagen geleden | |
| readme.md | 1 jaar geleden | |
Here's a Dockerfile that meets your requirements:
FROM docker.elastic.co/elasticsearch/elasticsearch:7.17.23
# Disable Elasticsearch security
RUN echo "xpack.security.enabled: false" >> /usr/share/elasticsearch/config/elasticsearch.yml
# Install the ingest-attachment plugin
RUN bin/elasticsearch-plugin install --batch ingest-attachment
This Dockerfile will:
To build and use this image:
docker build -t elasticsearch-ingest .docker run -p 9200:9200 -p 9300:9300 elasticsearch-ingestNote: The --batch flag is used to ensure the plugin installation runs in non-interactive mode, which is necessary for automated builds. The security configuration is appended to the existing elasticsearch.yml file that comes with the base image.