leovct / kurtosis-cdk-erigon-node Goto Github PK
View Code? Open in Web Editor NEWA Kurtosis package that spins up a CDK-Erigon node, optimised for syncing with any Polygon Hermez zkEVM network
A Kurtosis package that spins up a CDK-Erigon node, optimised for syncing with any Polygon Hermez zkEVM network
We would like to be able to test different versions of the CDK-Erigon node easily. We could achieve this by adding a new cdk_erigon_version
parameter once Dockerfile build-time variables are supported in Kurtosis ImageBuildSpec
. By default, we would build the node from the most recent commit.
def run(
...,
cdk_erigon_node_version="zkevm",
go_version="1.19"
):
config = create_cdk_erigon_node_config(...)
start_cdk_erigon_node(plan, cdk_erigon_node_version, go_version, config)
def start_cdk_erigon_node(plan, cdk_erigon_node_version, go_version, config):
plan.add_service(
name="cdk-erigon-node",
config=ServiceConfig(
image=ImageBuildSpec(
image_name="cdk-erigon",
build_context_dir=".",
build_args={
"CDK_ERIGON_NODE_VERSION": cdk_erigon_node_version,
"GO_VERSION": go_version,
}
),
files={"/etc/cdk-erigon": config},
ports={"http_rpc": PortSpec(8545, application_protocol="http")},
cmd=["--config=/etc/cdk-erigon/config.yaml", "--maxpeers=0"],
),
)
# https://github.com/0xPolygonHermez/cdk-erigon/blob/zkevm/go.mod#L3
ARG GO_VERSION=1.19
FROM golang:${GO_VERSION} as builder
...
# https://github.com/0xPolygonHermez/cdk-erigon/releases
ARG CDK_ERIGON_NODE_VERSION=zkevm
RUN git clone --branch ${CDK_ERIGON_NODE_VERSION} https://github.com/0xPolygonHermez/cdk-erigon . \
&& make cdk-erigon
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.