mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-10 08:05:22 +02:00
feat: add Helm chart for Kubernetes deployment
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a725fda274
commit
0d59ae776c
39 changed files with 2420 additions and 0 deletions
12
scripts/run_ari_manager.sh
Executable file
12
scripts/run_ari_manager.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
BASE_DIR="$(cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")" && pwd)"
|
||||
ENV_FILE="$BASE_DIR/api/.env"
|
||||
|
||||
if [[ -f "$ENV_FILE" ]]; then
|
||||
set -a && . "$ENV_FILE" && set +a
|
||||
fi
|
||||
|
||||
cd "$BASE_DIR"
|
||||
exec python -m api.services.telephony.ari_manager
|
||||
12
scripts/run_arq_worker.sh
Executable file
12
scripts/run_arq_worker.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
BASE_DIR="$(cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")" && pwd)"
|
||||
ENV_FILE="$BASE_DIR/api/.env"
|
||||
|
||||
if [[ -f "$ENV_FILE" ]]; then
|
||||
set -a && . "$ENV_FILE" && set +a
|
||||
fi
|
||||
|
||||
cd "$BASE_DIR"
|
||||
exec python -m arq api.tasks.arq.WorkerSettings --custom-log-dict api.tasks.arq.LOG_CONFIG
|
||||
12
scripts/run_campaign_orchestrator.sh
Executable file
12
scripts/run_campaign_orchestrator.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
BASE_DIR="$(cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")" && pwd)"
|
||||
ENV_FILE="$BASE_DIR/api/.env"
|
||||
|
||||
if [[ -f "$ENV_FILE" ]]; then
|
||||
set -a && . "$ENV_FILE" && set +a
|
||||
fi
|
||||
|
||||
cd "$BASE_DIR"
|
||||
exec python -m api.services.campaign.campaign_orchestrator
|
||||
12
scripts/run_migrate.sh
Executable file
12
scripts/run_migrate.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
BASE_DIR="$(cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")" && pwd)"
|
||||
ENV_FILE="$BASE_DIR/api/.env"
|
||||
|
||||
if [[ -f "$ENV_FILE" ]]; then
|
||||
set -a && . "$ENV_FILE" && set +a
|
||||
fi
|
||||
|
||||
cd "$BASE_DIR"
|
||||
exec alembic -c "$BASE_DIR/api/alembic.ini" upgrade head
|
||||
14
scripts/run_web.sh
Executable file
14
scripts/run_web.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
BASE_DIR="$(cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")" && pwd)"
|
||||
ENV_FILE="$BASE_DIR/api/.env"
|
||||
|
||||
if [[ -f "$ENV_FILE" ]]; then
|
||||
set -a && . "$ENV_FILE" && set +a
|
||||
fi
|
||||
|
||||
PORT="${WEB_PORT:-8000}"
|
||||
|
||||
cd "$BASE_DIR"
|
||||
exec uvicorn api.app:app --host 0.0.0.0 --port "$PORT" --workers 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue