About
tana deployment system

Tags
containerdockerfirecrackertanavm

Languages
TypeScript 68%, Shell 17%, HTML 8%, Dockerfile 4%, JavaScript 3%, Slim 1%

tana-deploy

build execution service for the tana platform. receives build requests from tana-box-git after a git push, runs npm/vite builds in isolated containers, and uploads artifacts to t4 storage for on-chain deployment.

how it works

  1. developer pushes code via git push to tana-box-git
  2. box-git triggers a build request to this service
  3. tana-deploy clones the repo and runs npm install && npm run build in an isolated environment
  4. build artifacts are uploaded to t4 staging storage
  5. a deploy transaction is submitted to the blockchain queue
  6. after block production, files are promoted to permanent storage

running

# development with hot reload
bun run dev

# production
bun run start

# build standalone binary
bun run build:binary

api

build endpoints

  • POST /build - trigger a new build job
  • GET /jobs/:id - get build job status
  • GET /jobs/:id/logs - stream build logs

health

  • GET /health - service health check

configuration

variable default description
PORT 8509 server port
T4_URL http://localhost:8507 t4 storage service url
QUEUE_URL http://localhost:8502 transaction queue url
DATABASE_URL - postgres connection string

development

# run tests
bun test

# generate database migrations
bun run db:generate

# apply migrations
bun run db:push