dograh/scripts
Abhishek 88f4477edb
feat: add Helm chart for Kubernetes deployment (#365)
* feat: add Helm chart for Kubernetes deployment

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* Replace bundled Bitnami subcharts with in-chart manifests on official images

The Bitnami catalog removed all versioned image tags from docker.io/bitnami in
Aug 2025 (old images frozen in bitnamilegacy, maintained catalog now behind a
Broadcom subscription), so the bundled postgresql/redis/minio subcharts no
longer pull. Replace them with plain in-chart manifests built on official
upstream images, keeping the internal/all-in-one path fully self-contained and
free of third-party chart packaging that can disappear:

- internal-postgres.yaml: pgvector/pgvector:pg17 — upstream Postgres plus the
  `vector` extension the migrations require. POSTGRES_USER=dograh is the initdb
  superuser, so CREATE EXTENSION vector succeeds.
- internal-redis.yaml: redis:7.4-alpine, password-protected, AOF persistence.
- internal-minio.yaml: minio/minio, root creds shared with the app via a single
  secret (can't drift); the app auto-creates its bucket.

Service/secret names are unchanged (<rel>-postgresql, <rel>-redisinternal-master,
<rel>-minio) so the app wiring is untouched. Dep passwords are generated once and
persisted across upgrades via lookup. Drop the Chart.yaml dependencies,
Chart.lock, and the `helm dependency` step; the internal manifests gate on the
mode toggles (database.mode=internal, etc.).

Also fixes surfaced by smoke-testing on a live EKS cluster:
- Dockerfile: ship the per-service run_*.sh entrypoints the chart invokes.
- migrate-job: run as a post-install/pre-upgrade hook (the bundled Postgres does
  not exist during pre-install) with a wait-for-postgres init container.
- backend env: declare POSTGRES_PASSWORD/REDIS_PASSWORD before the DATABASE_URL/
  REDIS_URL that interpolate them (Kubernetes only expands back-references).
- worker liveness probes: pgrep isn't in the slim runtime image; check
  /proc/1/cmdline instead (each worker execs its process as PID 1).
- UI: set HOSTNAME=0.0.0.0 so Next.js standalone doesn't bind to the k8s-injected
  pod name (which maps to the pod IP only, breaking port-forward/loopback).

Verified end-to-end on EKS 1.36: all pods Ready, migrations applied (pgvector
extension + 27 tables), UI login page and web API served via port-forward.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-07-03 12:39:39 +05:30
..
lib feat(scripts): free trusted HTTPS via sslip.io for public-IP remote i… (#460) 2026-06-27 17:19:29 +05:30
AGENTS.md feat(scripts): free trusted HTTPS via sslip.io for public-IP remote i… (#460) 2026-06-27 17:19:29 +05:30
CLAUDE.md chore: add powershell version for setup_local 2026-05-14 15:01:11 +05:30
dump_docs_openapi.py chore: update documentation for telephony 2026-05-02 16:59:17 +05:30
format.sh feat: add openai realtime models (#298) 2026-05-16 18:05:23 +05:30
generate_sdk.sh feat: add Tuner Integration to Dograh (#311) 2026-05-20 14:37:33 +05:30
lint.sh Add alembic and start services scripts 2025-09-26 09:09:06 +05:30
makemigrate.ps1 Feat/add developer docs for windows (#213) 2026-04-03 07:04:13 +05:30
makemigrate.sh Add alembic and start services scripts 2025-09-26 09:09:06 +05:30
migrate.ps1 Feat/add developer docs for windows (#213) 2026-04-03 07:04:13 +05:30
migrate.sh Add alembic and start services scripts 2025-09-26 09:09:06 +05:30
pre_commit.sh Add alembic and start services scripts 2025-09-26 09:09:06 +05:30
prepare-slack-message.sh fix: slack message body (#59) 2025-11-22 13:59:07 +05:30
release_sdks.sh chore: release sdks 2026-05-31 17:13:42 +05:30
rolling_update.sh chore: drain active calls before rolling updates (#474) 2026-06-29 06:00:31 +05:30
run_ari_manager.sh feat: add Helm chart for Kubernetes deployment (#365) 2026-07-03 12:39:39 +05:30
run_arq_worker.sh feat: add Helm chart for Kubernetes deployment (#365) 2026-07-03 12:39:39 +05:30
run_campaign_orchestrator.sh feat: add Helm chart for Kubernetes deployment (#365) 2026-07-03 12:39:39 +05:30
run_dograh_init.sh chore: refactor setup scrpts (#288) 2026-05-14 14:45:34 +05:30
run_migrate.sh feat: add Helm chart for Kubernetes deployment (#365) 2026-07-03 12:39:39 +05:30
run_web.sh feat: add Helm chart for Kubernetes deployment (#365) 2026-07-03 12:39:39 +05:30
setup-worktree.sh chore: setup worktree on folder open 2026-06-30 16:15:10 +05:30
setup_custom_domain.sh feat(scripts): free trusted HTTPS via sslip.io for public-IP remote i… (#460) 2026-06-27 17:19:29 +05:30
setup_fork.ps1 feat: add devcontainer based setup (#352) 2026-05-25 20:44:22 +05:30
setup_fork.sh feat: add devcontainer based setup (#352) 2026-05-25 20:44:22 +05:30
setup_local.devcontainer.md feat: add devcontainer based setup (#352) 2026-05-25 20:44:22 +05:30
setup_local.ps1 feat(scripts): free trusted HTTPS via sslip.io for public-IP remote i… (#460) 2026-06-27 17:19:29 +05:30
setup_local.sh feat(scripts): free trusted HTTPS via sslip.io for public-IP remote i… (#460) 2026-06-27 17:19:29 +05:30
setup_pipecat.sh chore: update documentation 2026-06-19 18:11:35 +05:30
setup_remote.sh feat(scripts): free trusted HTTPS via sslip.io for public-IP remote i… (#460) 2026-06-27 17:19:29 +05:30
setup_requirements.ps1 chore: update documentation 2026-06-19 18:11:35 +05:30
setup_requirements.sh chore: update documentation 2026-06-19 18:11:35 +05:30
start_docker.ps1 fix: Windows PowerShell 5.1 start_docker crash and paste-safe docs snippets 2026-07-01 15:54:11 +05:30
start_docker.sh feat(scripts): free trusted HTTPS via sslip.io for public-IP remote i… (#460) 2026-06-27 17:19:29 +05:30
start_services.sh chore: drain active calls before rolling updates (#474) 2026-06-29 06:00:31 +05:30
start_services_dev.ps1 feat: add devcontainer based setup (#352) 2026-05-25 20:44:22 +05:30
start_services_dev.sh feat: add devcontainer based setup (#352) 2026-05-25 20:44:22 +05:30
start_services_docker.sh feat: an option to setup remote server with docker compose build (#280) 2026-05-13 17:22:14 +05:30
stop_services.ps1 Feat/add developer docs for windows (#213) 2026-04-03 07:04:13 +05:30
stop_services.sh feat: add rolling updates for production deployment (#175) 2026-03-02 14:44:04 +05:30
update_remote.sh Harden Docker service credential setup 2026-06-21 13:44:31 +05:30
worktree-assign-port.sh chore: setup worktree script 2026-06-30 15:59:18 +05:30