Files
mpc/cloudbuild.yaml
T
zeekay 1dc9a9e6f2 feat(zap): adopt canonical port 9999 across MPC + transport
ZAP is the binary protocol — like HTTP=80 and HTTPS=443, ZAP=9999
across the Lux ecosystem. The DNS name (e.g. zap.kms.svc, zap.mpc.svc,
mpc-node-headless.lux-mpc.svc) disambiguates the service; the port is
always the same.

Changes:
- mpcd --listen default :9651 → :9999
- pkg/transport/{transport,factory}.go: comments and examples
- k8s/mpc-statefulset.yaml: ports + peer template
- k8s/network-policy.yaml: ingress/egress allow rules
- cloudbuild.yaml: EXPOSE
- deployments/customer-3of5/{compose.yml,k8s/*,topology.yaml}: full
  template sweep — every peer hostname is distinct, port is uniform 9999
- README.md / LLM.md: example commands

luxd validator P2P (9631 mainnet, 9641 testnet, 9651 devnet) is a
DIFFERENT protocol on a DIFFERENT pod and is unchanged.
2025-12-28 15:07:49 -08:00

44 lines
1.3 KiB
YAML

steps:
- id: build-mpcd-mpc
name: golang:1.26-alpine
entrypoint: sh
args:
- -c
- |
apk add --no-cache gcc musl-dev git
git config --global url."https://${_GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
export GOPRIVATE=github.com/luxfi/*,github.com/hanzoai/*
CGO_ENABLED=0 go build -ldflags="-s -w" -o /workspace/mpcd ./cmd/mpcd
CGO_ENABLED=0 go build -ldflags="-s -w" -o /workspace/mpc ./cmd/mpc
- id: image
name: gcr.io/cloud-builders/docker
entrypoint: sh
args:
- -c
- |
cat > /workspace/Dockerfile.slim <<'DOCKER'
FROM alpine:3.21
RUN apk add --no-cache ca-certificates tzdata
WORKDIR /app
COPY mpcd /usr/local/bin/mpcd
COPY mpc /usr/local/bin/mpc
EXPOSE 8081 9800 9999
ENTRYPOINT ["mpcd"]
DOCKER
docker build -t us-docker.pkg.dev/partner-devnet/backend/mpc:v1.1.4 -f /workspace/Dockerfile.slim /workspace
waitFor: [build-mpcd-mpc]
- id: push
name: gcr.io/cloud-builders/docker
args: [push, us-docker.pkg.dev/partner-devnet/backend/mpc:v1.1.4]
waitFor: [image]
substitutions:
_GITHUB_TOKEN: ''
options:
machineType: E2_HIGHCPU_8
logging: CLOUD_LOGGING_ONLY
timeout: 900s