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

孤街浪徒 提交于 2019-12-22 07:59:33

经过查看官方文档,因为我使用的是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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!