Skip to content

fix(ci): clear Terraform stub command on keeper ECS deploy#24

Merged
abs2023 merged 2 commits into
devfrom
fix/keeper-deploy-clear-stub-cmd
May 26, 2026
Merged

fix(ci): clear Terraform stub command on keeper ECS deploy#24
abs2023 merged 2 commits into
devfrom
fix/keeper-deploy-clear-stub-cmd

Conversation

@abs2023
Copy link
Copy Markdown
Contributor

@abs2023 abs2023 commented May 26, 2026

Summary

Fixes keeper failing to stay up on dev ECS after deploy:

  1. Deploy workflow — Strip Terraform stub command / entryPoint when registering the task definition so the image CMD runs (was: sleep infinity + stub echo → ALB /health failed).

  2. Dockerfile — Split exec-form CMD so --import=amaro/strip is its own argv (was one combined string → ERR_PACKAGE_PATH_NOT_EXPORTED and exit code 1 on task 0cb5565749a449478e506763876802b9).

Files:

  • .github/workflows/deploy-keeper.yml
  • keeper/Dockerfile

After merge

  1. Deploy Collateral Margin Keeper runs on push to dev (new image + task def).
  2. Watch deploy/verify, then ECS svc-col-mar-keeper-dev (--profile titanio-dev).
  3. Logs should show keeper startup; https://keeper.dev.hashpower.exchange/health should pass.

Test plan

  • Review workflow jq + Dockerfile CMD
  • Merge to dev
  • Deploy workflow green
  • ECS running=1, healthy target, no amaro import error in CloudWatch

abs2023 and others added 2 commits May 26, 2026 16:34
Deploy was swapping the GHCR image but keeping the bedrock stub
`command` (busybox sleep), so /health never came up. Drop command and
entryPoint so the image CMD runs the real keeper process.

Co-authored-by: Cursor <cursoragent@cursor.com>
Exec-form CMD must pass --import and script as separate argv entries.
A single combined flag made Node resolve amaro/strip --conditions=typescript
and exit with ERR_PACKAGE_PATH_NOT_EXPORTED on ECS.

Co-authored-by: Cursor <cursoragent@cursor.com>
@abs2023 abs2023 merged commit b15474e into dev May 26, 2026
1 check passed
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