chore: rebrand farhoodliquor → farhoodlabs, API-only mode, split infra
- Rename org references from farhoodliquor to farhoodlabs in CI workflows and GHCR image tags - Rewrite README for Hightower as API-driven K8s fork of Shannon - Update CLAUDE.md to reflect API-only deployment model - Delete docker-compose files (K8s only, no Docker Compose support) - Delete shannon CLI entry point (API-only going forward) - Move K8s manifests to farhoodlabs/hightower-infra Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,50 +0,0 @@
|
||||
networks:
|
||||
default:
|
||||
name: shannon-net
|
||||
|
||||
services:
|
||||
temporal:
|
||||
image: temporalio/temporal:latest
|
||||
container_name: shannon-temporal
|
||||
command: ["server", "start-dev", "--db-filename", "/home/temporal/temporal.db", "--ip", "0.0.0.0"]
|
||||
ports:
|
||||
- "127.0.0.1:7233:7233"
|
||||
- "127.0.0.1:8233:8233"
|
||||
volumes:
|
||||
- temporal-data:/home/temporal
|
||||
healthcheck:
|
||||
test: ["CMD", "temporal", "operator", "cluster", "health", "--address", "localhost:7233"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
start_period: 30s
|
||||
|
||||
router:
|
||||
image: node:20-slim
|
||||
container_name: shannon-router
|
||||
profiles: ["router"]
|
||||
command: >
|
||||
sh -c "apt-get update && apt-get install -y gettext-base &&
|
||||
npm install -g @musistudio/claude-code-router &&
|
||||
mkdir -p /root/.claude-code-router &&
|
||||
envsubst < /config/router-config.json > /root/.claude-code-router/config.json &&
|
||||
ccr start"
|
||||
ports:
|
||||
- "127.0.0.1:3456:3456"
|
||||
volumes:
|
||||
- ./router-config.json:/config/router-config.json:ro
|
||||
environment:
|
||||
- HOST=0.0.0.0
|
||||
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
|
||||
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
|
||||
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
|
||||
- ROUTER_DEFAULT=${ROUTER_DEFAULT:-openai,gpt-4o}
|
||||
healthcheck:
|
||||
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3456/health', r => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
|
||||
volumes:
|
||||
temporal-data:
|
||||
@@ -1,69 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: hightower-router
|
||||
namespace: hightower
|
||||
labels:
|
||||
app: hightower-router
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: hightower-router
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: hightower-router
|
||||
spec:
|
||||
containers:
|
||||
- name: router
|
||||
image: node:20-slim
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
apt-get update && apt-get install -y gettext-base &&
|
||||
npm install -g @musistudio/claude-code-router &&
|
||||
mkdir -p /root/.claude-code-router &&
|
||||
envsubst < /config/router-config.json > /root/.claude-code-router/config.json &&
|
||||
ccr start
|
||||
ports:
|
||||
- containerPort: 3456
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: hightower-credentials
|
||||
env:
|
||||
- name: HOST
|
||||
value: "0.0.0.0"
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /config
|
||||
readOnly: true
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 3456
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 5
|
||||
resources:
|
||||
requests:
|
||||
memory: 128Mi
|
||||
cpu: 100m
|
||||
volumes:
|
||||
- name: config
|
||||
configMap:
|
||||
name: hightower-router-config
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: hightower-router
|
||||
namespace: hightower
|
||||
spec:
|
||||
selector:
|
||||
app: hightower-router
|
||||
ports:
|
||||
- port: 3456
|
||||
targetPort: 3456
|
||||
@@ -1,98 +0,0 @@
|
||||
# CNPG PostgreSQL cluster for Temporal persistence
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: hightower-temporal-db
|
||||
namespace: hightower
|
||||
spec:
|
||||
instances: 1
|
||||
storage:
|
||||
size: 5Gi
|
||||
storageClass: ceph-block
|
||||
bootstrap:
|
||||
initdb:
|
||||
database: temporal
|
||||
owner: temporal
|
||||
postInitSQL:
|
||||
- CREATE DATABASE temporal_visibility OWNER temporal;
|
||||
---
|
||||
# Temporal auto-setup — handles schema creation/migration automatically
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: hightower-temporal
|
||||
namespace: hightower
|
||||
labels:
|
||||
app: hightower-temporal
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: hightower-temporal
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: hightower-temporal
|
||||
spec:
|
||||
containers:
|
||||
- name: temporal
|
||||
image: temporalio/auto-setup:latest
|
||||
ports:
|
||||
- containerPort: 7233
|
||||
name: grpc
|
||||
- containerPort: 8233
|
||||
name: web-ui
|
||||
env:
|
||||
- name: DB
|
||||
value: postgres12
|
||||
- name: DB_PORT
|
||||
value: "5432"
|
||||
- name: POSTGRES_SEEDS
|
||||
value: hightower-temporal-db-rw
|
||||
- name: DBNAME
|
||||
value: temporal
|
||||
- name: VISIBILITY_DBNAME
|
||||
value: temporal_visibility
|
||||
- name: POSTGRES_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: hightower-temporal-db-app
|
||||
key: username
|
||||
- name: POSTGRES_PWD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: hightower-temporal-db-app
|
||||
key: password
|
||||
- name: NUM_HISTORY_SHARDS
|
||||
value: "4"
|
||||
- name: SKIP_DB_CREATE
|
||||
value: "true"
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: 7233
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 15
|
||||
resources:
|
||||
requests:
|
||||
memory: 512Mi
|
||||
cpu: 250m
|
||||
limits:
|
||||
memory: 1Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: hightower-temporal
|
||||
namespace: hightower
|
||||
spec:
|
||||
selector:
|
||||
app: hightower-temporal
|
||||
ports:
|
||||
- name: grpc
|
||||
port: 7233
|
||||
targetPort: 7233
|
||||
- name: web-ui
|
||||
port: 8233
|
||||
targetPort: 8233
|
||||
@@ -1,12 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: hightower-workspaces
|
||||
namespace: hightower
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
storageClassName: ceph-filesystem
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
Reference in New Issue
Block a user