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

未关闭 适合新手
#969 1 条评论 1 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@alvarohare 已经在做这个了。

开始于 2026年10月28日。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
aws, docker, typescript

调研方向

在 CDK 工具和部署指南中找到 clean:disk 脚本。先检查 CDK_DOCKER 如何用于本地镜像构建;更新磁盘清理,使其使用配置的引擎,并将 Finch 作为示例写入文档。两个清理命令都使用所选引擎,且指南说明如何配置非 Docker 引擎后,即为完成。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
170
派生
52
平均合并
2 天 21 小时
30 天内合并 PR
11

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aws-samples/sample-autonomous-cloud-coding-agents 的其他 Issue

查看 aws-samples/sample-autonomous-cloud-coding-agents 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。