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

This commit is contained in:
2025-09-06 16:08:15 +08:00
commit 63285f61aa
2624 changed files with 88491 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
FROM openjdk:8-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-6.8.6.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"]

View 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 "$@"

View File

@@ -0,0 +1,2 @@
cluster.name: "docker-cluster"
network.host: 0.0.0.0