zeekayandHanzo Dev 881e26fabf release: point published images at hanzoai/pack, not railwayapp/railpack
PRODUCTION_GITHUB_REPOSITORY was still hardcoded to the upstream org/repo,
so every derived name (builder, runtime, frontend image) resolved under
ghcr.io/railwayapp/*. Flipping this one knob is enough: the existing
template arithmetic in mise.ci.toml already produces
ghcr.io/hanzoai/pack-builder, ghcr.io/hanzoai/pack-runtime, and
ghcr.io/hanzoai/pack-frontend from it, matching how the rest of the repo
(hanzo.yml, README, go.mod) already names this project.

Also pins goreleaser's project_name explicitly instead of leaving it to
implicit directory-name inference, since install.sh's download URL has to
agree with whatever name goreleaser gives its release archives. Removes an
unused IMAGE_NAME env var left over in the publish-runtime job.

This does not yet change what `pack build` pulls at runtime (core/generate
and core/plan still point at railwayapp) or install.sh (hanzoai/pack has no
releases yet) -- both wait on this pipeline actually publishing once.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-04 02:27:21 -07:00
2026-08-14 19:01:32 -07:00
2026-08-14 19:01:32 -07:00
2026-08-13 06:04:08 -06:00
2025-02-10 13:26:33 -07:00

Hanzo Pack

Zero-config OCI image builder and BuildKit gateway frontend for the Hanzo Cloud.

Go 1.24 BuildKit License

Hanzo Pack is the zero-configuration container image builder that powers the Hanzo Cloud build plane (ghcr.io/hanzoai/pack:latest). It inspects your repository, detects the language, framework, dependencies, and entry point, and emits an optimized OCI container image via BuildKit with zero configuration required.

It serves as the canonical builder for kind: fn and zero-Dockerfile builds in Hanzo Platform, wired directly as the default BuildKit frontend at k8s.go:880.

Features

  • Automatic Ecosystem Detection — Node.js, Next.js, Python, Go, Rust, Ruby, PHP, Java, static HTML, and more.
  • BuildKit Gateway Frontend — Runs natively inside BuildKit without requiring Docker daemon access or privileged containers.
  • Optimized Layer Caching — Multi-stage builds that cache language runtimes, package managers, and dependencies independently from application source code.
  • Deterministic Artifacts — Consistent, reproducible builds across developer machines and in-cluster CI runners.

Quick Start

Standalone CLI

# Build the pack binary
go install github.com/hanzoai/pack/cmd/cli@latest

# Build an application from source
pack build .

BuildKit Dockerfile-less Build

Specify Hanzo Pack as the #syntax gateway in your build:

# Build directly with docker buildx using the pack frontend
docker buildx build \
  --build-arg BUILDKIT_SYNTAX=ghcr.io/hanzoai/pack:latest \
  -t my-app:latest .

Supported Ecosystems

Ecosystem Detected Files Build / Start Strategy
Node.js / Bun / Deno package.json, bun.lock, deno.json Detects package manager (npm, pnpm, yarn, bun), installs deps, runs build, starts server
Python pyproject.toml, requirements.txt, Pipfile Detects uv, poetry, or pip; builds virtualenv; detects WSGI/ASGI entrypoint
Go go.mod Compiles static Linux binary with Go toolchain caching
Rust Cargo.toml Cargo build with release profile and sccache support
Static Web index.html Ultra-lightweight Nginx / static web server

Architecture

Hanzo Pack is designed to run in two modes:

  1. Local CLI (cmd/cli): Developer CLI communicating with a local BuildKit daemon.
  2. Cluster Gateway Frontend (ghcr.io/hanzoai/pack): Invoked by Hanzo CI/CD runners (hanzoai/platform) as an in-cluster BuildKit job. When a repo contains no Dockerfile (or declares kind: fn), Hanzo Cloud delegates to Pack to detect and construct the container.

License

MIT License. See LICENSE for details.

S
Description
Zero-config BuildKit gateway frontend for the Hanzo build fabric
Readme MIT
24 MiB
Languages
Go 90.8%
Shell 6.5%
Python 1.4%
Dockerfile 0.7%
TypeScript 0.6%