mirror of
https://github.com/hanzoai/stack.git
synced 2026-11-19 03:06:57 +00:00
Per CTO directive: hanzo/stack is the OSS quickstart, not the dev environment.
For dev, use hanzoai/universe (mono); for production k8s, use hanzoai/operator.
What this drops:
- 18 git submodules + .gitmodules entirely. Users don't clone submodules
for a quickstart — they just `docker compose up -d` and pull images.
- 12 service stub dirs (agent/, app/, chat/, cloud/, flow/, llm/, runtime/,
search/, nginx/, postgres/, templates/, legacy/) — were Dockerfiles for
building from submodule sources. Dead now.
- compose.dev.yml + compose.core.yml — build-from-source dev variants.
Use hanzoai/universe for that.
- compose/ directory of split-per-service compose fragments. Everything in
one compose.yml now.
- helm/ + k8s/ — point at hanzoai/operator for k8s.
- 527-line Makefile with submodule machinery → 50-line wrapper around
docker compose.
- 30+ "fix-*.sh", "test-*.sh", "check-*.sh", "setup-*.sh" scripts. Dev
artifacts not relevant to OSS users.
- 5 status/planning markdown files (DOCKER_DEPLOYMENT, PORT_CONFLICT_FIX,
PR_DESCRIPTION, UNIVERSE_SETUP, LLM.md).
- 8 `build:` blocks from compose.yml. Just use the `image:` line — public
users pull from ghcr.io, they don't build.
What this keeps:
- compose.yml (one source of truth) + per-env overrides
(compose.{adnexus,amd64,emulation,override}.yml)
- config/ + env.example + env.core.example
- README.md (rewritten as clean OSS quickstart, points at universe + operator)
- Makefile (50 lines)
- LICENSE
Tree size: dropped from ~900MB / 35 dirs / 18 submodules to ~40KB / 2 dirs /
0 submodules. Plain compose. Pulls from ghcr.io. Done.
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
# Hanzo Stack — OSS quickstart Makefile
|
|
# Wraps the common docker compose invocations.
|
|
|
|
COMPOSE := docker compose -f compose.yml
|
|
|
|
.DEFAULT_GOAL := help
|
|
|
|
.PHONY: help
|
|
help:
|
|
@echo "Hanzo Stack — OSS quickstart"
|
|
@echo ""
|
|
@echo "Quickstart targets:"
|
|
@echo " make up - Start the full stack in the background"
|
|
@echo " make down - Stop the stack (volumes preserved)"
|
|
@echo " make logs - Tail logs from all services"
|
|
@echo " make ps - Show service status"
|
|
@echo " make restart - Restart all services"
|
|
@echo " make pull - Pull latest images from ghcr.io"
|
|
@echo " make clean - Stop and remove all data volumes (DESTRUCTIVE)"
|
|
@echo ""
|
|
@echo "For development of Hanzo services, use: github.com/hanzoai/universe"
|
|
@echo "For production Kubernetes, use: github.com/hanzoai/operator"
|
|
|
|
.PHONY: up
|
|
up:
|
|
$(COMPOSE) up -d
|
|
|
|
.PHONY: down
|
|
down:
|
|
$(COMPOSE) down
|
|
|
|
.PHONY: logs
|
|
logs:
|
|
$(COMPOSE) logs -f --tail=100
|
|
|
|
.PHONY: ps
|
|
ps:
|
|
$(COMPOSE) ps
|
|
|
|
.PHONY: restart
|
|
restart:
|
|
$(COMPOSE) restart
|
|
|
|
.PHONY: pull
|
|
pull:
|
|
$(COMPOSE) pull
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(COMPOSE) down -v
|