Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

maxkb源码打包镜像 #3024

Unanswered
AfterWindStop asked this question in Q&A
Discussion options

有人试过直接通过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):

  • SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "MAXKB_DB_PASSWORD") (line 37)
  • SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "POSTGRES_PASSWORD") (line 37)
    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文件也是不行,尝试了其他很多方式都不能解决这个问题, 有遇到同样问题的吗, 有解决方案吗

You must be logged in to vote

Replies: 1 comment

Comment options

1

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /