It seems like there are a few issues with the directory structure and environment variables. Follow these steps to set up the environment correctly:
Create a directory inside your home directory:
mkdir -p /$HOME/zkevm-node
Move inside this directory and create four subdirectories:
mkdir -p /$HOME/zkevm-nodezkevm_config zkevm_statedb zkevm_pooldb
Set these three environment variables in your terminal session:
ZKEVM_NET=testnet ZKEVM_DIR=$HOME/zkevm-node/zkevm ZKEVM_CONFIG_DIR=$HOME/zkevm-node/zkevm_config
Download the required resources:
curl -L https://github.com/0xPolygonHermez/zkevm-node/releases/latest/download/$ZKEVM_NET.zip > $ZKEVM_NET.zip && unzip -o $ZKEVM_NET.zip -d $ZKEVM_DIR && rm $ZKEVM_NET.zip
Create a new file using the command vim $ZKEVM_CONFIG_DIR/.env and enter the following values (replace <GOERLI_RPC_URL_HERE> with your Goerli RPC URL):
ZKEVM_NODE_STATEDB_DATA_DIR=$HOME/zkevm-node/zkevm_statedb ZKEVM_NODE_POOLDB_DATA_DIR=$HOME/zkevm-node/zkevm_pooldb ZKEVM_NODE_ETHERMAN_URL=<GOERLI_RPC_URL_HERE> ZKEVM_NETWORK=testnet
Now you should be able to run the containers with the docker command listed in the documentation (Step 5 onwards).
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article