File tree 5 files changed +23
-456
lines changed
5 files changed +23
-456
lines changed Original file line number Diff line number Diff line change 14
14
15
15
doraemon 的动态配置告警规则能力,来自相对独立的 rule-engine:其负责实现 QueryFunc、NotifyFunc + 定期对 Promethues 进行reload
16
16
17
+ # 编译
18
+
19
+ ``` cassandraql
20
+ git clone https://github.com/huangwei2013/doraemon.git
21
+ cd doraemon
22
+ touch go.sum
23
+
24
+ make build-backend-image
25
+ make build-frontend-image
26
+ make build-ruleengine-image
27
+
28
+
29
+
30
+ ```
17
31
18
32
-------------------------
19
33
另:
Original file line number Diff line number Diff line change 1
1
FROM golang:1.12 as backend
2
2
3
- WORKDIR /go/src/github.com/Qihoo360 /doraemon/cmd/alert-gateway
3
+ WORKDIR /go/src/github.com/huangwei2013 /doraemon/cmd/alert-gateway
4
4
5
5
COPY cmd/alert-gateway .
6
6
7
- COPY go.mod /go/src/github.com/Qihoo360 /doraemon
7
+ COPY go.mod /go/src/github.com/huangwei2013 /doraemon
8
8
9
- COPY go.sum /go/src/github.com/Qihoo360 /doraemon
9
+ COPY go.sum /go/src/github.com/huangwei2013 /doraemon
10
10
11
11
RUN export GO111MODULE=on && \
12
12
export GOPROXY=https://goproxy.cn && \
@@ -18,7 +18,7 @@ FROM 360cloud/centos:7
18
18
19
19
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
20
20
21
- COPY --from=backend /go/src/github.com/Qihoo360 /doraemon/cmd/alert-gateway/pack.tar /opt/doraemon/
21
+ COPY --from=backend /go/src/github.com/huangwei2013 /doraemon/cmd/alert-gateway/pack.tar /opt/doraemon/
22
22
23
23
WORKDIR /opt/doraemon/
24
24
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositorie
11
11
apk add git make && \
12
12
rm -rf /var/cache/apk/*
13
13
14
- WORKDIR /go/src/github.com/Qihoo360 /doraemon/cmd/rule-engine
14
+ WORKDIR /go/src/github.com/huangwei2013 /doraemon/cmd/rule-engine
15
15
16
16
COPY cmd/rule-engine .
17
17
18
- COPY go.mod /go/src/github.com/Qihoo360 /doraemon
18
+ COPY go.mod /go/src/github.com/huangwei2013 /doraemon
19
19
20
- COPY go.sum /go/src/github.com/Qihoo360 /doraemon
20
+ COPY go.sum /go/src/github.com/huangwei2013 /doraemon
21
21
22
22
RUN export GO111MODULE=on && \
23
23
export GOPROXY=https://mirrors.aliyun.com/goproxy/ && \
@@ -34,6 +34,6 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositorie
34
34
35
35
WORKDIR /data
36
36
37
- COPY --from=builder /go/src/github.com/Qihoo360 /doraemon/cmd/rule-engine/main ruleengine
37
+ COPY --from=builder /go/src/github.com/huangwei2013 /doraemon/cmd/rule-engine/main ruleengine
38
38
39
39
ENTRYPOINT ["./ruleengine" ]
Original file line number Diff line number Diff line change 1
- module github.com/Qihoo360 /doraemon
1
+ module github.com/huangwei2013 /doraemon
2
2
3
3
go 1.12
4
4
You can’t perform that action at this time.
0 commit comments