-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support building pika_exporter docker image #2451
feat: support building pika_exporter docker image #2451
Conversation
docker/Dockerfile_pika_exporter
Outdated
@@ -0,0 +1,35 @@ | |||
FROM golang:1.19 AS builder | |||
|
|||
LABEL maintainer="[email protected]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don’t use private email
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is private email not allowed? @baerwang
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议添加一个你们团队的邮箱组,这样有问题大家都可以收到,有利于项目维护。
原来的 Dockerfile 也有类似的问题,可以一并改掉。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docker/Dockerfile_pika_exporter
Outdated
|
||
FROM ubuntu:22.04 | ||
|
||
LABEL LABEL maintainer="[email protected]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please fix comment
Can you add the build and push processes to the CI?
|
5bbdcfe
to
a482575
Compare
added |
|
a482575
to
9e38eaf
Compare
tools/pika_exporter/Makefile
Outdated
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o bin/$(PROJNAME) | ||
endif | ||
endif | ||
go build -o bin/$(PROJNAME) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CGO_ENABLED=0 最好不要去掉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CGO_ENABLED=0 最好不要去掉
done
docker/Dockerfile_pika_exporter
Outdated
PIKA_BUILD_DIR=/tmp/pika \ | ||
PIKA_EXPORTER_BUILD_DIR=/tmp/pika/tools/pika_exporter \ | ||
# GO111MODULE=on \ | ||
# GOPROXY=https://goproxy.cn \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
最好加个参数,同时支持国内外网络环境
参考 codis/Dockerfile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
最好加个参数,同时支持国内外网络环境 参考 codis/Dockerfile
done
docker/Dockerfile_pika_exporter
Outdated
|
||
FROM ubuntu:22.04 | ||
|
||
LABEL LABEL maintainer="[email protected]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
3855d05
to
225fadd
Compare
225fadd
to
e9c1b0e
Compare
docker/Dockerfile_pika_exporter
Outdated
|
||
FROM ubuntu:22.04 | ||
|
||
LABEL LABEL maintainer="[email protected]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double LABEL
…#2451) Co-authored-by: liuchengyu <[email protected]>
…#2451) Co-authored-by: liuchengyu <[email protected]>
Co-authored-by: liuchengyu <[email protected]>
…#2451) Co-authored-by: liuchengyu <[email protected]>
…#2451) Co-authored-by: liuchengyu <[email protected]>
…#2451) Co-authored-by: liuchengyu <[email protected]>
feat: support building pika_exporter docker image