circus docker image web 运行异常问题的解决

经过查看官方文档,因为我使用的是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 测试,具体还得再仔细看看源码,分析下原因

参考资料

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

原文地址:https://www.cnblogs.com/rongfengliang/p/10996317.html