推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
unknowfly
V2EX  ›  Python

使用 Python -slim 镜像的同学有没有遇到的坑分享一下

  •  
  •   unknowfly · Mar 27, 2020 · 3649 views
    This topic created in 2416 days ago, the information mentioned may be changed or developed.

    目前使用的是 900M 的完整版本运行一个 celery 项目,想换到 slim 镜像,试了一下可以正常运行,但还是担心以后会有问题出现,所以想问下大家有没有遇到的问题可以分享让我参考一下

    Supplement 1  ·  Mar 28, 2020
    我看了下 debian:buster-slim 应该不是基于 alpine 的吧?
    另外发现 celery 的官方镜像也是用的 python-slim,我决定就这样上吧,后面业务运行过程中有问题再说
    5 replies  •  2020-03-27 22:38:34 +08:00
    dcalsky
    dcalsky
    Mar 27, 2020 via Android
    1
    测试都通过就行,没写测试的话就把功能点全部测一遍。如果你还想换 Alpine 那要做的事情就更多了。
    watsy0007
    watsy0007
    Mar 27, 2020
    2
    分层. 安装之后把拷贝到新干净镜像就好了.
    mzdsxgl
    mzdsxgl
    Mar 27, 2020
    3
    涉及底层 C 的扩展,不要用 alpine 镜像
    enrolls
    enrolls
    Mar 27, 2020
    4
    其实没啥坑。slim 比 alpine 奇怪少问题。方便的话不妨贴出来优化一下,
    enrolls
    enrolls
    Mar 27, 2020
    5
    或者看看这个 aHR0cHM6Ly9naXQuaW8vSnZIS2U=
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   809 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 19:01 · PVG 03:01 · LAX 11:01 · JFK 14:01
    ♥ Do have faith in what you're doing.