Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

cdk: support Docker-compatible engines such as Finch (clean:disk hard-codes docker)

Đang mở Phù hợp với người mới
#969 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
82/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
aws, docker, typescript
Lĩnh vực
cloud, devops, infrastructure

Hướng nghiên cứu

Tìm script clean:disk trong bộ công cụ CDK và hướng dẫn triển khai. Bắt đầu bằng cách kiểm tra cách CDK_DOCKER được dùng để tạo image cục bộ; cập nhật thao tác dọn dẹp ổ đĩa để dùng engine đã cấu hình và ghi tài liệu về Finch làm ví dụ. Hoàn tất khi cả hai lệnh dọn dẹp đều dùng engine được chọn và hướng dẫn giải thích cách cấu hình engine không phải Docker.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Component: CDK / infrastructure (local image builds)

Use case

CDK builds the agent image locally and honours the CDK_DOCKER environment variable, so any Docker-CLI-compatible engine works: for example Finch (open source, from AWS), Podman or Rancher Desktop. Some organisations cannot use Docker Desktop (licensing for larger companies, or managed sign-in requirements that block the daemon), and Finch is a natural choice for deploying to AWS.

Deploying with CDK_DOCKER=finch works, with one gap in the repo's own tooling: //cdk:clean:disk (which runs before every //cdk:deploy) hard-codes docker image prune -f and docker builder prune -f. With Finch, the low-disk prune either fails silently (|| true) or prunes an idle Docker installation instead of the engine actually holding the build cache, so the disk-space safeguard does nothing.

Proposed solution

  1. In clean:disk, prune with the engine CDK uses: ENGINE="${CDK_DOCKER:-docker}"; "$ENGINE" image prune -f; "$ENGINE" builder prune -f. Finch supports both subcommands. (Verified locally with Finch 1.17.)
  2. Document CDK_DOCKER in the deployment guide as the supported way to use a non-Docker engine, with Finch as the example. Finch also builds linux/arm64 natively on Apple Silicon, matching the AgentCore image.

Other information

Happy to open the PR for (1); it is a three-line change.

Ngôn ngữ chính
TypeScript
Star
165
Fork
50
Merge trung bình
10 giờ 39 phút
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aws-samples/sample-autonomous-cloud-coding-agents

Tất cả issue của aws-samples/sample-autonomous-cloud-coding-agents

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.