-
Build client server
cd run make -C .. build
-
Build docker image
cd .. docker build -t 0gclient -f ./Dockerfile .
-
Update configurations in run.sh
-
Grant executable permissions to run.sh and start.sh when needed.
-
Run docker image
cd run ./start.sh
Adjust commands and parameters as required for your setup:
Build the Docker image
docker build -t 0g-da-client -f combined.Dockerfile .
Run the Docker container
docker run -v ./run:/runtime -p 51001:51001 0g-da-client:latest combined \
--chain.rpc L1_RPC_ENDPOINT \
--chain.private-key YOUR_PRIVATE_KEY \
--chain.receipt-wait-rounds 180 \
--chain.receipt-wait-interval 1s \
--chain.gas-limit 2000000 \
--combined-server.use-memory-db \
--combined-server.storage.kv-db-path /runtime/ \
--combined-server.storage.time-to-expire 2592000 \
--disperser-server.grpc-port 51001 \
--batcher.da-entrance-contract ENTRANCE_CONTRACT_ADDR \
--batcher.da-signers-contract 0x0000000000000000000000000000000000001000 \
--batcher.finalizer-interval 20s \
--batcher.confirmer-num 3 \
--batcher.max-num-retries-for-sign 3 \
--batcher.finalized-block-count 50 \
--batcher.batch-size-limit 500 \
--batcher.encoding-interval 3s \
--batcher.encoding-request-queue-size 1 \
--batcher.pull-interval 10s \
--batcher.signing-interval 3s \
--batcher.signed-pull-interval 20s \
--batcher.expiration-poll-interval 3600 \
--encoder-socket DA_ENCODER_SERVER \
--encoding-timeout 300s \
--signing-timeout 60s \
--chain-read-timeout 12s \
--chain-write-timeout 13s