first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
24
base/elasticsearch/7.14.2/Dockerfile
Normal file
24
base/elasticsearch/7.14.2/Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
FROM openjdk:8u102-jre
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
ARG ESHOME=/usr/share/elasticsearch
|
||||
COPY docker-entrypoint.sh /
|
||||
|
||||
RUN set -ex \
|
||||
&& mkdir -p ${ESHOME} \
|
||||
&& wget -qO- https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.16.0-no-jdk-linux-x86_64.tar.gz | tar zx \
|
||||
--strip-components 1 -C ${ESHOME} \
|
||||
&& chmod +x /docker-entrypoint.sh
|
||||
|
||||
ENV PATH ${ESHOME}/bin:$PATH
|
||||
WORKDIR ${ESHOME}
|
||||
EXPOSE 9200 9300
|
||||
|
||||
COPY elasticsearch.yml ./config/
|
||||
RUN sed -ex \
|
||||
&& chown nobody:nogroup -R ${ESHOME}
|
||||
|
||||
USER nobody:nogroup
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
CMD ["elasticsearch"]
|
13
base/elasticsearch/7.14.2/docker-entrypoint.sh
Normal file
13
base/elasticsearch/7.14.2/docker-entrypoint.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Add elasticsearch as command if needed
|
||||
if [ "${1:0:1}" = '-' ]; then
|
||||
set -- elasticsearch "$@"
|
||||
fi
|
||||
|
||||
# As argument is not related to elasticsearch,
|
||||
# then assume that user wants to run his own process,
|
||||
# for example a `bash` shell to explore this image
|
||||
exec "$@"
|
5
base/elasticsearch/7.14.2/elasticsearch.yml
Normal file
5
base/elasticsearch/7.14.2/elasticsearch.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
cluster.name: "docker-cluster"
|
||||
network.host: 0.0.0.0
|
||||
http.port: 9200
|
||||
transport.host: localhost
|
||||
transport.tcp.port: 9300
|
Reference in New Issue
Block a user