1 Star 0 Fork 167

Castiel/open-monitor

forked from WeBank/open-monitor 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 2.46 KB
一键复制 编辑 原始数据 按行查看 历史
广意 提交于 2020-11-24 17:10 . Add kubernetes cluster monitor
FROM ccr.ccs.tencentyun.com/webankpartners/wecube-prometheus:v1.0
LABEL maintainer = "Webank CTB Team"
ENV JAVA_HOME=/opt/jdk
ENV PATH=$PATH:/opt/jdk/bin
ENV BASE_HOME=/app/monitor
ENV PROMETHEUS_HOME=$BASE_HOME/prometheus
ENV ALERTMANAGER_HOME=$BASE_HOME/alertmanager
ENV MONITOR_HOME=$BASE_HOME/monitor
ENV AGENT_MANAGER_HOME=$BASE_HOME/agent_manager
ENV AGENT_MANAGER_DEPLOY=/app/deploy
ENV TRANS_GATEWAY=$BASE_HOME/transgateway
ENV PING_EXPORTER=$BASE_HOME/ping_exporter
ENV ARCHIVE_TOOL=$BASE_HOME/archive_mysql_tool
ENV DB_DATA_EXPORTER=$BASE_HOME/db_data_exporter
RUN mkdir -p $BASE_HOME $PROMETHEUS_HOME $PROMETHEUS_HOME/rules $PROMETHEUS_HOME/token $ALERTMANAGER_HOME $MONITOR_HOME $MONITOR_HOME/conf $AGENT_MANAGER_HOME $PING_EXPORTER $AGENT_MANAGER_DEPLOY $TRANS_GATEWAY $ARCHIVE_TOOL $DB_DATA_EXPORTER
COPY build/start.sh $BASE_HOME/
COPY build/stop.sh $BASE_HOME/
COPY build/conf/prometheus.yml $PROMETHEUS_HOME/
COPY build/conf/kubernetes_prometheus.tpl $PROMETHEUS_HOME/
COPY build/conf/prometheus.yml $PROMETHEUS_HOME/prometheus_tpl.yml
COPY build/conf/sd_file $PROMETHEUS_HOME/sd_file
COPY build/conf/alertmanager.yml $ALERTMANAGER_HOME/
COPY build/conf/base.yml $PROMETHEUS_HOME/
COPY monitor-server/monitor-server $MONITOR_HOME/
COPY build/conf/monitor.json $MONITOR_HOME/conf/default.json
COPY monitor-server/conf/i18n $MONITOR_HOME/conf/i18n
COPY monitor-ui/dist $MONITOR_HOME/public
COPY monitor-agent/agent_manager/agent_manager $AGENT_MANAGER_HOME/
COPY monitor-agent/agent_manager/exporters.tar.gz $AGENT_MANAGER_HOME/
COPY build/conf/agent_manager.json $AGENT_MANAGER_HOME/conf.json
COPY monitor-agent/transgateway/transgateway $TRANS_GATEWAY/
COPY monitor-agent/ping_exporter/ping_exporter $PING_EXPORTER/
COPY build/conf/ping_exporter.json $PING_EXPORTER/cfg.json
COPY monitor-agent/archive_mysql_tool/archive_mysql_tool $ARCHIVE_TOOL/
COPY build/conf/archive_mysql_tool.json $ARCHIVE_TOOL/default.json
COPY monitor-agent/db_data_exporter/db_data_exporter $DB_DATA_EXPORTER/
RUN chmod +x $PROMETHEUS_HOME/prometheus
RUN chmod +x $PROMETHEUS_HOME/promtool
RUN chmod +x $PROMETHEUS_HOME/tsdb
RUN chmod +x $ALERTMANAGER_HOME/alertmanager
RUN chmod +x $AGENT_MANAGER_HOME/agent_manager
RUN chmod +x $TRANS_GATEWAY/transgateway
RUN chmod +x $MONITOR_HOME/monitor-server
RUN chmod +x $BASE_HOME/*.sh
RUN chmod +x $PING_EXPORTER/ping_exporter
RUN chmod +x $ARCHIVE_TOOL/archive_mysql_tool
RUN chmod +x $DB_DATA_EXPORTER/db_data_exporter
WORKDIR $BASE_HOME
ENTRYPOINT ["/bin/sh", "start.sh"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/castiel_chen/open-monitor.git
git@gitee.com:castiel_chen/open-monitor.git
castiel_chen
open-monitor
open-monitor
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385