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

unify python version for development env and production env #126

Open
rainchen opened this issue Jun 17, 2019 · 3 comments
Open

unify python version for development env and production env #126

rainchen opened this issue Jun 17, 2019 · 3 comments
Assignees

Comments

@rainchen
Copy link
Member

rainchen commented Jun 17, 2019

  1. 开发环境的 python 版本应该要跟 agent 里的python image 版本一致,这样能及早发现问题
  2. agent 里的python image,要尽量选择体积最小的版本,这样运行时不需要pull 很大的image

refs:
Screen Shot 2019-06-17 at 3 50 01 PM

@blankwu
Copy link
Contributor

blankwu commented Jul 15, 2019

在构建过程中安装依赖包,alpine 和 slim tag 的版本安装报错,原因是基础环境依赖问题;
暂时无法使用较小的版本去做,目前定义是 python:3 是因为3+的版本都可以正常运行;

@rainchen
Copy link
Member Author

rainchen commented Jul 15, 2019

@blankwu 自定义dockerfile 用 slim 版加上依赖包呢 ?开发环境也需要有自定义 dockerfile 的

@jiangxianliang007
Copy link
Contributor

https://github.com/cryptape/cita-monitor/tree/reduce-cita-exporter-image-size 这个分支大小可以缩小1半。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants