maxkb源码打包镜像 #3024
Unanswered
AfterWindStop
asked this question in
Q&A
maxkb源码打包镜像
#3024
Replies: 1 comment
-
1 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
有人试过直接通过maxkb来打包镜像文件吗?
看installer文件还下面有个Dockerfile文件, 就尝试着通过docker来打包源码成一个镜像文件,但是遇到各种问题,其中一个问题就是:
7.71 pyproject.toml changed significantly since poetry.lock was last generated. Run
poetry lock [--no-update]
to fix the lock file.2 warnings found (use docker --debug to expand):
Dockerfile:24
23 | WORKDIR /opt/maxkb/app
24 | >>> RUN python3 -m venv /opt/py3 &&
25 | >>> pip install poetry==1.8.5 --break-system-packages &&
26 | >>> poetry config virtualenvs.create false &&
27 | >>> . /opt/py3/bin/activate &&
28 | >>> if [ "$(uname -m)" = "x86_64" ]; then sed -i 's/^torch.*/torch = {version = "2.6.0+cpu", source = "pytorch"}/g' pyproject.toml; fi &&
29 | >>> poetry install &&
30 | >>> export MAXKB_CONFIG_TYPE=ENV && python3 /opt/maxkb/app/apps/manage.py compilemessages
31 |
ERROR: failed to solve: process "/bin/sh -c python3 -m venv /opt/py3 && pip install poetry==1.8.5 --break-system-packages && poetry config virtualenvs.create false && . /opt/py3/bin/activate && if [ "$(uname -m)" = "x86_64" ]; then sed -i 's/^torch.*/torch = {version = "2.6.0+cpu", source = "pytorch"}/g' pyproject.toml; fi && poetry install && export MAXKB_CONFIG_TYPE=ENV && python3 /opt/maxkb/app/apps/manage.py compilemessages" did not complete successfully: exit code: 1
会一直报poetry.lock和pyproject.toml文件不一致, 试了poetry lock重新生成lock文件也是不行,尝试了其他很多方式都不能解决这个问题, 有遇到同样问题的吗, 有解决方案吗
Beta Was this translation helpful? Give feedback.
All reactions