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

Posted rongfengliang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了circus docker image web 运行异常问题的解决相关的知识,希望对你有一定的参考价值。

经过查看官方文档,因为我使用的是python 较高版本,存在兼容问题,解决方法

  • 修改基础镜像版本
    代码如下:
FROM python:2.7-slim-stretch
LABEL AUTHOR="dalongrong"
LABEL EMAIL="[email protected]"
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

以上是关于circus docker image web 运行异常问题的解决的主要内容,如果未能解决你的问题,请参考以下文章

docker强制批量删除none的image镜像

使用docker容器定制镜像(image)并部署简单 web应用

使用docker容器定制镜像(image)并部署简单 web应用

使用 jest-circus 后 Jasmine 未定义错误

How does Circus stack compare to a classical stack?

Docker Explanation and Apache Image