【求助帖】在CentOS8环境下用Docker部署Hawkeye出现问题

简介:

按照作者文档的部署方法,在Hawkeye目录下执行
docker build -t hawkeye .
但是报出以下错误:
[root@iZ8vb3yphb2x31i6psmb5rZ Hawkeye]# docker build -t hawkeye .
Sending build context to Docker daemon 2.441MB
Step 1/20 : FROM python:3.7-stretch
---> a6a4ed8843bf
Step 2/20 : LABEL MAINTAINER=0xbug
---> Using cache
---> 5c97808edc3f
Step 3/20 : ENV TZ=Asia/Shanghai
---> Using cache
---> 9b83d66fd19e
Step 4/20 : EXPOSE 80
---> Using cache
---> 9ec2c382a839
Step 5/20 : RUN apt-get update
---> Using cache
---> e34f28b4acda
Step 6/20 : RUN apt-get install --no-install-recommends -y curl gnupg git redis-server supervisor software-properties-common wget
---> Using cache
---> ea86c360bb96
Step 7/20 : RUN curl https://openresty.org/package/pubkey.gpg | apt-key add -
---> Using cache
---> 20b1a1b28123
Step 8/20 : RUN add-apt-repository -y "deb http://openresty.org/package/debian stretch openresty"
---> Using cache
---> cc147ca17fae
Step 9/20 : RUN apt-get update
---> Using cache
---> c89bddff7ab9
Step 10/20 : RUN apt-get install -y openresty
---> Using cache
---> c0fb4d1acc3d
Step 11/20 : COPY ./deploy /Hawkeye/deploy
---> Using cache
---> 13023d83c77d
Step 12/20 : RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r /Hawkeye/deploy/pyenv/requirements.txt -U
---> Running in f687e1308365
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting aniso8601==3.0.2
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/17/13/eecdcc638c0ea3b105ebb62ff4e76914a744ef1b6f308651dbed368c6c01/aniso8601-3.0.2-py2.py3-none-any.whl (22 kB)
Collecting certifi==2018.8.24
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/df/f7/04fee6ac349e915b82171f8e23cee63644d83663b34c539f7a09aed18f9e/certifi-2018.8.24-py2.py3-none-any.whl (147 kB)
Collecting chardet==3.0.4
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting Click==7.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl (81 kB)
Collecting Deprecated==1.2.3
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/83/2d/7a5a117eccdef0cdf4cf015830945a7d8fdbbc9ec866d7cead758dc4229c/Deprecated-1.2.3-py2.py3-none-any.whl (8.6 kB)
Collecting Flask==1.0.2
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/7f/e7/08578774ed4536d3242b14dacb4696386634607af824ea997202cd0edb4b/Flask-1.0.2-py2.py3-none-any.whl (91 kB)
Collecting Flask-RESTful==0.3.6
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/47/08/89cf8594735392cd71752f7cf159fa63765eac3e11b0da4324cdfeaea137/Flask_RESTful-0.3.6-py2.py3-none-any.whl (25 kB)
Collecting gunicorn==19.9.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/8c/da/b8dd8deb741bff556db53902d4706774c8e1e67265f69528c14c003644e6/gunicorn-19.9.0-py2.py3-none-any.whl (112 kB)
Collecting huey==1.10.2
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/0e/9f/7f905b90557a64633bbd64a4dae8e038dbe210a9f8641b81977a6653d84b/huey-1.10.2.tar.gz (311 kB)
Collecting idna==2.7
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl (58 kB)
Collecting itsdangerous==0.24
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/dc/b4/a60bcdba945c00f6d608d8975131ab3f25b22f2bcfe1dab221165194b2d4/itsdangerous-0.24.tar.gz (46 kB)
Collecting Jinja2==2.10
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl (126 kB)
Collecting MarkupSafe==1.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/4d/de/32d741db316d8fdb7680822dd37001ef7a448255de9699ab4bfcbdf4172b/MarkupSafe-1.0.tar.gz (14 kB)

ERROR: Command errored out with exit status 1:
 command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z45ys48z/MarkupSafe/setup.py'"'"'; __file__='"'"'/tmp/pip-install-z45ys48z/MarkupSafe/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-3chwijex
     cwd: /tmp/pip-install-z45ys48z/MarkupSafe/
Complete output (5 lines):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-z45ys48z/MarkupSafe/setup.py", line 6, in <module>
    from setuptools import setup, Extension, Feature
ImportError: cannot import name 'Feature' from 'setuptools' (/usr/local/lib/python3.7/site-packages/setuptools/__init__.py)
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.1; however, version 20.1.1 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
The command '/bin/sh -c pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r /Hawkeye/deploy/pyenv/requirements.txt -U' returned a non-zero code: 1
仔细阅读了一下发现step1默认运行了python3.7版本,而我服务器端安装的是python3.8
并且看到这一句
ImportError: cannot import name 'Feature' from 'setuptools' (/usr/local/lib/python3.7/site-packages/setuptools/__init__.py)
这分明是去找python3.7的目录了,我检查过我的python3.8目录下是有需要调用的文件的
求助应该怎么解决

相关文章
|
15天前
|
存储 测试技术 Linux
【Docker项目实战】使用Docker部署bender个人仪表板
【4月更文挑战第2天】使用Docker部署bender个人仪表板
28 1
|
16天前
|
前端开发 应用服务中间件 nginx
Nginx配置详解Docker部署Nginx使用Nginx部署vue前端项目
Nginx配置详解Docker部署Nginx使用Nginx部署vue前端项目
78 0
|
1天前
|
测试技术 Linux 网络安全
【好玩的开源项目】使用Docker部署SyncTV视频同步和共享平台
【4月更文挑战第16天】使用Docker部署SyncTV视频同步和共享平台
14 0
|
3天前
|
JavaScript Linux 数据安全/隐私保护
如何在CentOS7部署Wiki.js知识库并实现分享好友公网远程使用【内网穿透】
如何在CentOS7部署Wiki.js知识库并实现分享好友公网远程使用【内网穿透】
|
5天前
|
测试技术 Linux 数据安全/隐私保护
【Docker项目实战】使用Docker部署Seatsurfing预订座位系统
【4月更文挑战第12天】使用Docker部署Seatsurfing预订座位系统
31 3
|
8天前
|
JavaScript 前端开发 Docker
全栈开发实战:结合Python、Vue和Docker进行部署
【4月更文挑战第10天】本文介绍了如何使用Python、Vue.js和Docker进行全栈开发和部署。Python搭配Flask创建后端API,Vue.js构建前端界面,Docker负责应用的容器化部署。通过编写Dockerfile,将Python应用构建成Docker镜像并运行,前端部分使用Vue CLI创建项目并与后端交互。最后,通过Nginx和另一个Dockerfile部署前端应用。这种组合提升了开发效率,保证了应用的可维护性和扩展性,适合不同规模的企业使用。
|
12天前
|
测试技术 Linux 数据安全/隐私保护
【Docker项目实战】使用Docker部署PicoShare共享文件平台
【4月更文挑战第5天】使用Docker部署PicoShare共享文件平台
46 4
|
13天前
|
jenkins 测试技术 持续交付
软件测试|docker搭建Jenkins+Python+allure自动化测试环境
通过以上步骤,你可以在Docker中搭建起Jenkins自动化测试环境,实现Python测试的自动化执行和Allure报告生成。 买CN2云服务器,免备案服务器,高防服务器,就选蓝易云。百度搜索:蓝易云
32 6
|
17天前
|
测试技术 Linux Docker
Docker部署RPG网页小游戏
Docker部署RPG网页小游戏
44 2
|
20天前
|
Linux Shell 开发工具
CentOS8中Docker安装及部署
CentOS8中Docker安装及部署
67 0