Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

搭建环境时出错,无法加载 #108

Closed
chenxs-sx opened this issue Apr 5, 2021 · 6 comments
Closed

搭建环境时出错,无法加载 #108

chenxs-sx opened this issue Apr 5, 2021 · 6 comments

Comments

@chenxs-sx
Copy link

image
报错内容。
有大神能帮助解决下嘛

@PINGXcpost
Copy link

我也是

@wdsjxh
Copy link

wdsjxh commented Apr 8, 2021

我也是重新docker装下,报同样的错误

@chenxs-sx
Copy link
Author

解决不了哇。有解决掉的吗?

@dhcty
Copy link

dhcty commented Apr 17, 2021

image
报错内容。
有大神能帮助解决下嘛

pip版本的问题,更新即可,在Dockerfile的RUN pip3 install -r /requirement.txt命令之前加入升级pip的命令(之所以要小于21.0是因为最新版本python3.5用不了):
FROM ubuntu:16.04
MAINTAINER Tuuu Nyasong@secbox.cn

install system requirement

RUN sed -i s/archive.ubuntu.com/mirrors.aliyun.com/g /etc/apt/sources.list
RUN sed -i s/security.ubuntu.com/mirrors.aliyun.com/g /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y python3 python3-dev python3-pip nginx supervisor libmysqlclient-dev redis-server libssl-dev libffi-dev &&
rm -rf /var/lib/apt/lists/*

setup all the configfiles

RUN echo "daemon off;" >> /etc/nginx/nginx.conf
RUN rm -rf /etc/nginx/sites-enabled/default
RUN sed -i '/include /etc/nginx/sites-enabled//a\tinclude /home/docker/Github-Monitor/docker/nginx-app.conf;' /etc/nginx/nginx.conf
RUN sed -i 's//etc/supervisor/conf.d/*.conf//home/docker/Github-Monitor/docker/supervisor-app.conf/g' /etc/supervisor/supervisord.conf

install requirement

RUN python3 -m pip install --upgrade "pip<21.0"
COPY server/requirements.pip /requirement.txt
RUN pip3 install -r /requirement.txt

volumne

VOLUME ["/var/lib/redis"]
VOLUME ["/home/docker/Github-Monitor/"]

WORKDIR /home/docker/Github-Monitor/

ENV LANG C.UTF-8

EXPOSE 80

CMD ["/bin/bash", "/home/docker/Github-Monitor/docker/run.sh"]

@TuuuNya
Copy link
Member

TuuuNya commented Aug 10, 2021

@dhcty 正解,完整的可以参考 #115

@TuuuNya TuuuNya closed this as completed Aug 10, 2021
@wdsjxh
Copy link

wdsjxh commented Aug 10, 2021

感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants