Skip to content

feat(templates): support Container builds in the strands-http-python template - #6

Draft
Hweinstock wants to merge 6 commits into
refactorfrom
feat/strands-container-support
Draft

feat(templates): support Container builds in the strands-http-python template#6
Hweinstock wants to merge 6 commits into
refactorfrom
feat/strands-container-support

Conversation

@Hweinstock

@Hweinstock Hweinstock commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Problem

strands-http-python didn't support Container builds — create --template strands-python --build Container errored, and the template shipped no Dockerfile.

Changes

Verification

Built via bun run compile:linux-x64; bun test → 2170 pass.

create --template strands-python --build Container   → build "Container", Dockerfile + .dockerignore present
create --template strands-python                     → build "CodeZip", no Dockerfile
  • Container image builds, runs, and returns real streamed data on POST /invocations locally.
  • CodeZip: deployed (project deploy) and invoked (aws bedrock-agentcore invoke-agent-runtime) → 200, real response.
  • Container: strands container agent deployed (project deployCREATE_COMPLETE in us-east-1) and invoked (aws bedrock-agentcore invoke-agent-runtime200, real response). Note: a region whose CDK bootstrap uses a scoped exec role lacking kms:CreateGrant will fail ECR-repo creation — an account/bootstrap config matter, not a template/code issue.

Reproduce

bun install && bun test && bun run compile:linux-x64
dist/bin/agentcore-linux-x64 project create --template strands-python --build Container --name p --skip-install --skip-git
cat p/agentcore/agentcore.json | jq '.runtimes[0].build'   # "Container"
ls -A p/app/strands_agent | grep -i docker                 # Dockerfile + .dockerignore

@github-actions github-actions Bot added agentcore-harness-reviewing AgentCore Harness review in progress and removed agentcore-harness-reviewing AgentCore Harness review in progress labels Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant