datahaven/operator
Facundo Farall a86791ec1c
perf(CLI): Add option to use local Docker build in CLI for faster iteration (#77)
In this PR:
1. Add new `datahaven-node-local.dockerfile` for building a local image
with the locally built DataHaven Node binary. This severely improves
iteration speed on running `bun cli` if there are changes in the DH
node. Previously, it relied on the published dockerfile, which builds
the Cargo project inside of it, taking +20m even with no changes.
2. Building this local dockerfile is integrated to the CLI, which now
also asks if the user wants to rebuild the local docker image of the DH
node.
3. A new script `cargo-crossbuild` is added, to be able to build the
DataHaven node Cargo project both from Mac and Linux, with the target
being `x86_64-unknown-linux-gnu`. For building from Mac, it uses `cargo
zigbuild`, so `zig` is now a dependency. Building for this target is
needed because the docker image is an Ubuntu image, so it will need to
run a linux binary.
4. Added `zig` as dependency in docs.
5. CI still uses the docker image built by the CI itself, which builds
the Cargo project inside of it. The CI can take advantage of caching for
this.
2025-05-16 18:04:40 -03:00
..
node perf(CLI): Add option to use local Docker build in CLI for faster iteration (#77) 2025-05-16 18:04:40 -03:00
pallets feat(operator): Add external validators Pallet (#65) 2025-05-14 11:05:07 +02:00
primitives feat(operator): Add external validators Pallet (#65) 2025-05-14 11:05:07 +02:00
runtime fix: 🩹 update to allow BEEFY relayer to run correctly (#67) 2025-05-16 01:56:19 +00:00
scripts feat(ci): add script to sort cargo deps (#62) 2025-05-06 17:22:01 +00:00
test fix: 🩹 update to allow BEEFY relayer to run correctly (#67) 2025-05-16 01:56:19 +00:00
.dockerignore fix: 🐳 Improve Docker Caching (#66) 2025-05-13 09:12:32 +00:00
.gitignore build: 🏗️ DataHaven operator setup (#6) 2025-03-17 17:57:14 +01:00
Cargo.lock perf(CLI): Add option to use local Docker build in CLI for faster iteration (#77) 2025-05-16 18:04:40 -03:00
Cargo.toml perf(CLI): Add option to use local Docker build in CLI for faster iteration (#77) 2025-05-16 18:04:40 -03:00
Dockerfile fix: 🚑 Don't remove the shell from the DH node Docker image (#76) 2025-05-16 15:01:14 -03:00
LICENSE build: 🏗️ DataHaven operator setup (#6) 2025-03-17 17:57:14 +01:00
README.md fix: 🩹 update to allow BEEFY relayer to run correctly (#67) 2025-05-16 01:56:19 +00:00
rust-toolchain.toml ci: 🐳 Start Publishing Docker Images (#64) 2025-05-08 20:32:55 -03:00

DataHaven 🫎

Based on polkadot-sdk-solochain-template

Zombienet testing

First, install zombienet.

To spawn a local solo chain with four validators and BABE finality, run:

zombienet -p native spawn test/config/zombie-datahaven-local.toml