circus docker image web 運行異常問題的解決

通過查看官方文檔,由於我使用的是python 較高版本,存在兼容問題,解決方法python

  • 修改基礎鏡像版本
    代碼以下:
FROM python:2.7-slim-stretch
LABEL AUTHOR="dalongrong"
LABEL EMAIL="1141591465@qq.com"
RUN apt-get update && apt-get install -y --reinstall build-essential \
    && pip install circus circus-web chaussette \
    && apt-get remove -y --purge build-essential \
    && rm -rf /var/lib/apt/lists/*
 

說明

暫時對於python 3,其餘版本的沒有測試,根據官方文檔應該是支持到3.3 github 代碼上有
關於3.7 的tox 測試,具體還得再仔細看看源碼,分析下緣由git

參考資料

https://github.com/circus-tent/circus
https://circus.readthedocs.io/en/latest/tutorial/step-by-step/
https://github.com/rongfengliang/circus-dockergithub

相關文章
相關標籤/搜索