Docker Compose setup fails on wait-for-it host web:8000 and missing runtime .env
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 77/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- docker-compose, python
- Lĩnh vực
- devops, infrastructure
Hướng nghiên cứu
Bắt đầu với docker-compose.yml và .dockerignore; kiểm tra các đích chờ của scheduler và worker, cấu hình env_file khi chạy và khóa phiên bản Compose đã lỗi thời được mô tả trong issue. Chạy thiết lập Docker Compose để xác nhận worker chờ vulnerablecode:8000 và các container nhận được những biến môi trường cần thiết khi chạy. Hoàn tất khi lỗi khởi động và cảnh báo ngừng hỗ trợ được xử lý, kể cả với các thiết lập sử dụng /etc/vulnerablecode/.env.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
While setting up VulnerableCode locally with Docker Compose, I hit a few issues in docker-compose.yml and .dockerignore:
-
Scheduler and RQ workers wait on
web:8000instead ofvulnerablecode:8000
vulnerablecode_scheduler,vulnerablecode_rqworker, andvulnerablecode_rqworker_highrunwait-for-it web:8000, which does not match any service name indocker-compose.yml(nginxproxies tovulnerablecode:8000). On startup, all three time out:vulnerablecode_rqworker-1 | wait-for-it: timeout occurred after waiting 15 seconds for web:8000 vulnerablecode_rqworker_high-1 | wait-for-it: timeout occurred after waiting 15 seconds for web:8000 vulnerablecode_scheduler-1 | wait-for-it: timeout occurred after waiting 15 seconds for web:8000Updating this to
wait-for-it -t 60 vulnerablecode:8000waits on the actual service and allows initial migrations to finish before workers start. -
.envis not loaded viaenv_fileat container runtime (and is missing from.dockerignore)
docker-compose.ymlcurrently only specifiesdocker.envunderenv_file. If images are built beforemake envfileis run, all application and worker containers exit immediately on startup:django.core.exceptions.ImproperlyConfigured: Set the SECRET_KEY environment variableAdding
.envto.dockerignore(alongsidedocker.env) keeps build layers clean, and loading.envwithrequired: falseindocker-compose.ymlpassesSECRET_KEYandALTCHA_HMAC_KEYat runtime without breaking setups that use/etc/vulnerablecode/.env. -
Obsolete top-level
version: "3"key
Docker Compose v2 logs a deprecation warning on every command untilversion: "3"is removed.
I have tested these fixes locally and will open a PR with a regression test shortly.
- Ngôn ngữ chính
- Python
- Star
- 716
- Fork
- 347
- Merge trung bình
- 13 giờ 47 phút
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của aboutcode-org/vulnerablecode
-
OSV parser drops all crates.io affected entries because the ecosystem mapping uses cargoCó thể đã có người làm @Ashutosh-Panda2004 đã nhận 6 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
aboutcode-org/vulnerablecode#2485 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
OVAL parser corrupts version bounds when the epoch is 10, 20 or the version contains "0:"Có thể đã có người làm @Ashutosh-Panda2004 đã nhận 7 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
aboutcode-org/vulnerablecode#2474 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docker build fails on Apple Silicon (arm64) — only x86_64 wheels pinned for extractcode-7z, extractcode-libarchive, typecode-libmagicCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
aboutcode-org/vulnerablecode#2426 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Get NuGet package versions from federated PURL version data in https://github.com/aboutcode-data/Có thể làm lại được @Anshi321 đã nhận 28 ngày trước và không có pull request nào đang mở. Đang mởbug data-quality
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
aboutcode-org/vulnerablecode#2418 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
We do not collect the affected range for Gitlab advisoriesCó thể đã có người làm @akashrajeev đã nhận 15 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
aboutcode-org/vulnerablecode#2412 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của aboutcode-org/vulnerablecode
Issue tương tự
-
question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
conda-forge/vc-feedstock#132 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
limitlessprojects/Go-Hybrid#3342 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
UKGovernmentBEIS/inspect_ai#6268 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
LSSTDESC/rail_sompz#42 ·
-
All tests fail with 'EXITED with status 3' on pytest 9.2.0 (TestReport._id is not marshallable)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
pytest-dev/pytest-forked#113 ·