File tree Expand file tree Collapse file tree 6 files changed +14
-369
lines changed
Expand file tree Collapse file tree 6 files changed +14
-369
lines changed Original file line number Diff line number Diff line change 1- FROM golang:1.16 -alpine3.12 as builder
1+ FROM golang:1.20.6 -alpine3.18 as builder
22
33WORKDIR $GOPATH/src/github.com/feiyu563/PrometheusAlert
44
5- RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
6- apk update && apk upgrade && \
5+ RUN apk update && \
76 apk add --no-cache gcc g++ sqlite-libs make git
87
98ENV GO111MODULE on
@@ -15,17 +14,17 @@ COPY . $GOPATH/src/github.com/feiyu563/PrometheusAlert
1514RUN make build
1615
1716# -----------------------------------------------------------------------------
18- FROM alpine:3.12
17+ FROM alpine:3.18
1918
2019LABEL maintainer="jikun.zhang"
2120
22- RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/ apk/repositories && \
23- apk add tzdata && \
21+ RUN apk update && \
22+ apk add --no-cache tzdata && \
2423 cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
2524 echo "Asia/Shanghai" > /etc/timezone && \
2625 apk del tzdata && \
2726 mkdir -p /app/logs && \
28- apk update && apk upgrade && apk add --no-cache sqlite-libs curl sqlite
27+ apk add --no-cache sqlite-libs curl sqlite
2928
3029HEALTHCHECK --start-period=10s --interval=20s --timeout=3s --retries=3 \
3130 CMD curl -fs http://localhost:8080/health || exit 1
Original file line number Diff line number Diff line change @@ -73,9 +73,9 @@ curl http://localhost:8080/health
7373
7474```
7575#打开PrometheusAlert releases页面,根据需要选择需要的版本下载到本地解压并进入解压后的目录
76- 如linux版本(https://github.com/feiyu563/PrometheusAlert/releases/download/v4.7 /linux.zip)
76+ 如linux版本(https://github.com/feiyu563/PrometheusAlert/releases/download/v4.9 /linux.zip)
7777
78- # wget https://github.com/feiyu563/PrometheusAlert/releases/download/v4.7 /linux.zip && unzip linux.zip &&cd linux/
78+ # wget https://github.com/feiyu563/PrometheusAlert/releases/download/v4.9 /linux.zip && unzip linux.zip &&cd linux/
7979
8080#运行PrometheusAlert
8181# ./PrometheusAlert (#后台运行请执行 nohup ./PrometheusAlert &)
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments