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:
14
base/elasticsearch/1.5.1/with-tomcat/Dockerfile
Normal file
14
base/elasticsearch/1.5.1/with-tomcat/Dockerfile
Normal 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
|
16
base/elasticsearch/1.5.1/with-tomcat/docker-entrypoint.sh
Normal file
16
base/elasticsearch/1.5.1/with-tomcat/docker-entrypoint.sh
Normal 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 "$@"
|
Reference in New Issue
Block a user