mirror of
https://github.com/hanzoai/nchain.git
synced 2026-10-30 18:27:22 +00:00
- 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)
28 lines
542 B
Makefile
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
|