Skip to content

[BUG] docker运行无法启动 #2

@jayDocker

Description

@jayDocker

Describe the bug
在windows下按说明文档docker无法启动,发现以下问题

  1. error: failed to parse lock file at: /build/tianlu-intel-core/Cargo.lock
  2. Caused by: failed to parse manifest at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/home-0.5.12/Cargo.toml Caused by: feature edition2024 is required The package requires the Cargo feature called edition2024, but that feature is not stabilized in this version of Cargo (1.75.0 (1d8b05cdd 2023-11-20)).
  3. requirement安装失败
  4. 运行后网页报错db文件缺失

进行以下步骤后可正常启动:

  1. 删除tianlu-intel-core/Cargo.lock
  2. Dockerfile中rust:1.75-slim-bookworm改成rust:1.92-slim-bookworm
  3. COPY tianlu_intel_collectors ./tianlu_intel_collectors移动到pip install上面
  4. 在web_ui\dashboard.py中def get_db_path():开始添加
    env_path = os.getenv("TIANLU_DB_PATH")
    if env_path and os.path.exists(env_path):
    return env_path

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions