新增elk基础镜像

This commit is contained in:
KennyLee 2017-04-11 14:24:23 +08:00
parent 700770b686
commit 1d9ea0b419
8 changed files with 111 additions and 1 deletions

View File

@ -5,6 +5,8 @@ MAINTAINER kennylee26 <kennylee26@gmail.com>
RUN apk update && apk upgrade && \ RUN apk update && apk upgrade && \
apk add --no-cache git openssh apk add --no-cache git openssh
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
ENV HOME /root ENV HOME /root
ENV local_repo=$HOME/html_repo\ ENV local_repo=$HOME/html_repo\
repo_remote=http://sys:11111111@192.168.3.231:10080/zgbj/gkxt.git\ repo_remote=http://sys:11111111@192.168.3.231:10080/zgbj/gkxt.git\

View File

@ -1,4 +1,4 @@
# see also # see also https://github.com/hashicorp/docker-consul
FROM consul FROM consul
MAINTAINER kennylee26 <kennylee26@gmail.com> MAINTAINER kennylee26 <kennylee26@gmail.com>

20
elasticsearch/Dockerfile Executable file
View File

@ -0,0 +1,20 @@
# https://github.com/elastic/elasticsearch-docker
FROM docker.elastic.co/elasticsearch/elasticsearch:5.3.0
USER root
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
# Install base packages
RUN apk --no-cache update && \
apk --no-cache add curl bash tzdata tar unzip && \
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone && \
echo -ne "Alpine Linux 3.4.4 image. (`uname -rsv`)\n" >> /root/.built && \
rm -fr /tmp/* /var/cache/apk/*
USER elasticsearch
CMD ["/bin/bash", "bin/es-docker"]
EXPOSE 9200 9300

11
elasticsearch/README.md Normal file
View File

@ -0,0 +1,11 @@
# ElasticSearch
[elasticsearch](https://github.com/elastic/elasticsearch-docker) 的本地化镜像,主要是为了国内加速和一些修改。
修改如下:
* 默认阿里云镜像源。
* 安装 curl bash tzdata tar unzip 包。
* 中国时区。

31
kibana/Dockerfile Executable file
View File

@ -0,0 +1,31 @@
# https://github.com/elastic/kibana-docker
FROM docker.elastic.co/kibana/kibana:5.3.0
USER root
RUN sed -i 's/archive.ubuntu.com/mirrors.163.com/g' /etc/apt/sources.list
RUN \
apt-get update && \
apt-get install -y curl git unzip vim wget && \
apt-get install -y language-pack-zh-hans && \
rm -rf /var/lib/apt/lists/*
RUN locale
ENV LANG=zh_CN.UTF-8\
LANGUAGE=zh_CN:zh:en_US:en\
LC_ALL=zh_CN.UTF-8\
TZ=Asia/Shanghai\
TERM=xterm
RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone && \
dpkg-reconfigure --frontend noninteractive tzdata
USER kibana
# Add your kibana plugins setup here
# Example: RUN kibana-plugin install <name|url>
#
#
CMD /usr/local/bin/kibana-docker

10
kibana/README.md Normal file
View File

@ -0,0 +1,10 @@
# Kibana
[kibana](https://github.com/elastic/elasticsearch-docker) 的本地化镜像,主要是为了国内加速和一些修改。
修改如下:
* 默认163镜像源。
* 安装 curl git unzip vim wget 包
* 中国时区。
* 中文语言包

25
logstash/Dockerfile Executable file
View File

@ -0,0 +1,25 @@
# https://github.com/elastic/logstash-docker
FROM docker.elastic.co/logstash/logstash:5.3.0
USER root
RUN sed -i 's/archive.ubuntu.com/mirrors.163.com/g' /etc/apt/sources.list
RUN \
apt-get update && \
apt-get install -y language-pack-zh-hans && \
rm -rf /var/lib/apt/lists/*
RUN locale
ENV LANG=zh_CN.UTF-8\
LANGUAGE=zh_CN:zh:en_US:en\
LC_ALL=zh_CN.UTF-8\
TZ=Asia/Shanghai\
TERM=xterm
RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone && \
dpkg-reconfigure --frontend noninteractive tzdata
USER logstash

11
logstash/README.md Normal file
View File

@ -0,0 +1,11 @@
# Logstash
[logstash](https://github.com/elastic/logstash-docker) 的本地化镜像,主要是为了国内加速和一些修改。
修改如下:
* 默认163镜像源。
* 中国时区。
* 中文语言包