Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions deploy/one-click/Tiltfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# FinMind Universal One-Click Deployment via Tilt
# Configured by Atlas (PDT Timezone Fixed)

# 1. Frontend (Vite)
docker_build('finmind-frontend', '../../app',
dockerfile='../../app/Dockerfile',
live_update=[
sync('../../app/src', '/app/src'),
run('npm install', trigger='../../app/package.json')
]
)

# 2. Backend (Flask)
docker_build('finmind-backend', '../../packages/backend',
live_update=[
sync('../../packages/backend/app', '/app/app'),
run('pip install -r requirements.txt', trigger='../../packages/backend/requirements.txt')
]
)

# 3. K8s Resources
k8s_yaml(['../k8s/namespace.yaml', '../k8s/app-stack.yaml', '../k8s/monitoring-stack.yaml'])

# 4. Port Forwards
k8s_resource('frontend', port_forwards=5173)
k8s_resource('backend', port_forwards=8000)
k8s_resource('grafana', port_forwards=3000)
14 changes: 14 additions & 0 deletions deploy/one-click/universal-deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
# Atlas Environmental Sentry - Universal Deployer
echo "🚀 Initializing FinMind Universal One-Click Setup..."

if command -v tilt >/dev/null 2>&1; then
echo "✅ Tilt detected. Launching Kubernetes-native developer experience..."
tilt up
elif command -v docker-compose >/dev/null 2>&1; then
echo "⚠️ Tilt/K8s not found. Falling back to enhanced Docker-Compose mode..."
docker-compose up -d
else
echo "❌ Error: Neither Tilt nor Docker-Compose detected. Please install Docker Desktop."
exit 1
fi