Skip to content

feat: replace deployment shell scripts with TS/Node alternatives (COW-977)#66

Merged
lgahdl merged 4 commits into
developfrom
luizhatem/cow-977-replace-shell-scripts-in-deployment-with-typescriptnode-or
May 28, 2026
Merged

feat: replace deployment shell scripts with TS/Node alternatives (COW-977)#66
lgahdl merged 4 commits into
developfrom
luizhatem/cow-977-replace-shell-scripts-in-deployment-with-typescriptnode-or

Conversation

@lgahdl
Copy link
Copy Markdown
Contributor

@lgahdl lgahdl commented May 28, 2026

Summary

Replace the three .sh files in deployment/ with TypeScript/Node alternatives and declarative compose config. Removes an unnecessary security surface area and makes the deploy tooling easier to maintain and test.

Changes

  • deployment/manage.shdeployment/manage.ts (tsx script, same CLI interface)
  • deployment/deploy-remotely.shdeployment/deploy-remotely.ts (tsx script, same behavior)
  • deployment/static/start-db.sh → inline command: flags in deployment/docker-compose.yml (fixed values for 1G memory limit default)
  • Added deploy:up, deploy:down, deploy:remote scripts to package.json
  • Added tsx to devDependencies

How to Test

  1. pnpm deploy:up --env-file deployment/.env --revision <rev> — verify docker compose up runs
  2. pnpm deploy:down --env-file deployment/.env — verify stack tears down
  3. pnpm typecheck && pnpm lint — should pass

Checklist

  • Tests pass locally
  • Linting passes
  • Documentation updated (if needed)
  • Breaking changes documented (if any)

Breaking Changes

None — all previous script behaviors are preserved via pnpm scripts and TS equivalents.

Related Issues

COW-977

jeffersonBastos and others added 3 commits May 6, 2026 10:39
feat: COW-970/972/973/969/922 — timestamp policy, candidate expiry, ownerAddressType, GQL docs, bootstrap retry queue
…ves (COW-977)

Replace manage.sh, deploy-remotely.sh, and static/start-db.sh with tsx scripts
and inline compose config. Adds deploy:up/down/remote pnpm scripts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 28, 2026

COW-977

@socket-security
Copy link
Copy Markdown

socket-security Bot commented May 28, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedtsx@​4.22.31001008293100

View full report

@lgahdl lgahdl changed the base branch from main to develop May 28, 2026 16:48
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would add a comment that this file is only for bleu development context

Copy link
Copy Markdown
Contributor Author

@lgahdl lgahdl May 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, added a note at the top of the file clarifying this is specific to Bleu's internal deployment workflow.

Comment thread deployment/manage.ts
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is also specific for bleu deployment context, right?

Copy link
Copy Markdown
Contributor Author

@lgahdl lgahdl May 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, exactly. Added the same note to manage.ts as well.

Clarify that manage.ts and deploy-remotely.ts are tailored to Bleu's
internal deployment workflow, as requested in PR review.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lgahdl lgahdl merged commit 5a72928 into develop May 28, 2026
4 checks 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.

3 participants