diff --git a/ci-html/Dockerfile b/ci-html/Dockerfile index e5078a4..604a28b 100644 --- a/ci-html/Dockerfile +++ b/ci-html/Dockerfile @@ -5,6 +5,8 @@ MAINTAINER kennylee26 RUN apk update && apk upgrade && \ 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 local_repo=$HOME/html_repo\ repo_remote=http://sys:11111111@192.168.3.231:10080/zgbj/gkxt.git\ diff --git a/consul/Dockerfile b/consul/Dockerfile index 91ae35e..2982227 100755 --- a/consul/Dockerfile +++ b/consul/Dockerfile @@ -1,4 +1,4 @@ -# see also +# see also https://github.com/hashicorp/docker-consul FROM consul MAINTAINER kennylee26 diff --git a/elasticsearch/Dockerfile b/elasticsearch/Dockerfile new file mode 100755 index 0000000..5665cf2 --- /dev/null +++ b/elasticsearch/Dockerfile @@ -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 diff --git a/elasticsearch/README.md b/elasticsearch/README.md new file mode 100644 index 0000000..cb85470 --- /dev/null +++ b/elasticsearch/README.md @@ -0,0 +1,11 @@ +# ElasticSearch + +[elasticsearch](https://github.com/elastic/elasticsearch-docker) 的本地化镜像,主要是为了国内加速和一些修改。 + +修改如下: + +* 默认阿里云镜像源。 +* 安装 curl bash tzdata tar unzip 包。 +* 中国时区。 + + diff --git a/kibana/Dockerfile b/kibana/Dockerfile new file mode 100755 index 0000000..f5c5eed --- /dev/null +++ b/kibana/Dockerfile @@ -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 +# +# + +CMD /usr/local/bin/kibana-docker diff --git a/kibana/README.md b/kibana/README.md new file mode 100644 index 0000000..8738290 --- /dev/null +++ b/kibana/README.md @@ -0,0 +1,10 @@ +# Kibana + +[kibana](https://github.com/elastic/elasticsearch-docker) 的本地化镜像,主要是为了国内加速和一些修改。 + +修改如下: + +* 默认163镜像源。 +* 安装 curl git unzip vim wget 包 +* 中国时区。 +* 中文语言包 diff --git a/logstash/Dockerfile b/logstash/Dockerfile new file mode 100755 index 0000000..a9887db --- /dev/null +++ b/logstash/Dockerfile @@ -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 + + diff --git a/logstash/README.md b/logstash/README.md new file mode 100644 index 0000000..dba6ebe --- /dev/null +++ b/logstash/README.md @@ -0,0 +1,11 @@ +# Logstash + +[logstash](https://github.com/elastic/logstash-docker) 的本地化镜像,主要是为了国内加速和一些修改。 + +修改如下: + +* 默认163镜像源。 +* 中国时区。 +* 中文语言包 + +