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:
19
base/elasticsearch/1.4.2/Dockerfile
Normal file
19
base/elasticsearch/1.4.2/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM openjdk:8-jre
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
COPY logging.yml ./config/logging.yml
|
||||
COPY docker-entrypoint.sh /
|
||||
|
||||
RUN set -ex \
|
||||
&& mkdir -p /usr/share/elasticsearch \
|
||||
&& wget -qO- https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.4.2.tar.gz | tar zx \
|
||||
--strip-components 1 -C /usr/share/elasticsearch \
|
||||
&& chmod +x /docker-entrypoint.sh
|
||||
|
||||
ENV PATH /usr/share/elasticsearch/bin:$PATH
|
||||
WORKDIR /usr/share/elasticsearch
|
||||
EXPOSE 9200 9300
|
||||
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
CMD ["elasticsearch"]
|
13
base/elasticsearch/1.4.2/docker-entrypoint.sh
Normal file
13
base/elasticsearch/1.4.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 "$@"
|
15
base/elasticsearch/1.4.2/logging.yml
Normal file
15
base/elasticsearch/1.4.2/logging.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
# you can override this using by setting a system property, for example -Des.logger.level=DEBUG
|
||||
es.logger.level: INFO
|
||||
rootLogger: ${es.logger.level}, console
|
||||
logger:
|
||||
# log action execution errors for easier debugging
|
||||
action: DEBUG
|
||||
# reduce the logging for aws, too much is logged under the default INFO
|
||||
com.amazonaws: WARN
|
||||
|
||||
appender:
|
||||
console:
|
||||
type: console
|
||||
layout:
|
||||
type: consolePattern
|
||||
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
|
Reference in New Issue
Block a user