Files
zeekay d41acbf84c feat: add Dockerfile, Makefile, sample CRs
- Dockerfile: multi-stage build (golang:1.26-alpine → distroless)
- Makefile: build, test, vet, docker-build, docker-push, deploy
- Sample CRs:
  - lux-mainnet.yaml: full Network CR with validators, gateway, explorer
  - nodecluster-standalone.yaml: standalone NodeCluster + Gateway
  - ethereum-node.yaml: Ethereum archive node (reth)
2026-03-03 06:44:09 -08:00

28 lines
542 B
Makefile

IMG ?= ghcr.io/hanzoai/nchain:latest
.PHONY: build test vet fmt manifests docker-build docker-push deploy
build:
go build -o bin/manager cmd/main.go
test:
go test ./... -v
vet:
go vet ./...
fmt:
go fmt ./...
manifests:
controller-gen crd rbac:roleName=nchain-operator paths="./api/..." output:crd:artifacts:config=config/crd/bases
docker-build:
docker buildx build --platform linux/amd64 -t $(IMG) .
docker-push:
docker buildx build --platform linux/amd64 --push -t $(IMG) .
deploy: manifests
kubectl apply -k config/default