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,14 @@
FROM vulhub/elasticsearch:1.5.1
LABEL maintainer="phithon <root@leavesongs.com>"
ENV CATALINA_HOME=/usr/local/tomcat
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN set -ex \
&& mkdir -p $CATALINA_HOME \
&& wget -qO- http://www-us.apache.org/dist/tomcat/tomcat-8/v8.5.33/bin/apache-tomcat-8.5.33.tar.gz \
| tar zx --strip-components 1 -C $CATALINA_HOME \
&& sed -i 's/securerandom\.source=file:\/dev\/random/securerandom.source=file:\/dev\/.\/urandom/g' $JAVA_HOME/lib/security/java.security \
&& chmod +x /docker-entrypoint.sh

View File

@@ -0,0 +1,16 @@
#!/bin/bash
set -ex
${CATALINA_HOME}/bin/catalina.sh start
# 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 "$@"