Skip to content
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

Merged

Conversation

chengyu-l
Copy link
Contributor

feat: support building pika_exporter docker image

@github-actions github-actions bot added the ✏️ Feature New feature or request label Mar 5, 2024
@@ -0,0 +1,35 @@
FROM golang:1.19 AS builder

LABEL maintainer="chengyu_l@126.com"
Copy link
Collaborator

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

Copy link
Contributor Author

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

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议添加一个你们团队的邮箱组,这样有问题大家都可以收到,有利于项目维护。

原来的 Dockerfile 也有类似的问题,可以一并改掉。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done,已改用公共邮箱 @baerwang @machinly


FROM ubuntu:22.04

LABEL LABEL maintainer="chengyu_l@126.com"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Collaborator

@baerwang baerwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix comment

@machinly
Copy link
Collaborator

machinly commented Mar 6, 2024

Can you add the build and push processes to the CI?
You can refer to

  • .github/workflows/publish_nightly_docker_image.yml
  • .github/workflows/publish_release_docker_image.yml

@chengyu-l
Copy link
Contributor Author

Can you add the build and push processes to the CI? You can refer to

  • .github/workflows/publish_nightly_docker_image.yml
  • .github/workflows/publish_release_docker_image.yml

added

@chengyu-l
Copy link
Contributor Author

please fix comment

don’t use private email the reason is ? @baerwang

CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o bin/$(PROJNAME)
endif
endif
go build -o bin/$(PROJNAME)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CGO_ENABLED=0 最好不要去掉

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CGO_ENABLED=0 最好不要去掉

done

PIKA_BUILD_DIR=/tmp/pika \
PIKA_EXPORTER_BUILD_DIR=/tmp/pika/tools/pika_exporter \
# GO111MODULE=on \
# GOPROXY=https://goproxy.cn \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

最好加个参数,同时支持国内外网络环境
参考 codis/Dockerfile

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

最好加个参数,同时支持国内外网络环境 参考 codis/Dockerfile

done


FROM ubuntu:22.04

LABEL LABEL maintainer="chengyu_l@126.com"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1


FROM ubuntu:22.04

LABEL LABEL maintainer="pikiwidb@gmail.com"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double LABEL

@machinly machinly merged commit 6398fd9 into OpenAtomFoundation:unstable Mar 11, 2024
10 of 12 checks passed
@chengyu-l chengyu-l deleted the pika_exporter_docker_image branch March 11, 2024 09:24
luky116 pushed a commit to luky116/pika that referenced this pull request Mar 14, 2024
luky116 pushed a commit to luky116/pika that referenced this pull request Mar 14, 2024
luky116 pushed a commit that referenced this pull request Mar 18, 2024
Co-authored-by: liuchengyu <liuchengyu@360.cn>
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this pull request Jun 8, 2024
cheniujh pushed a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
cheniujh pushed a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✏️ Feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants