Open LBruyne opened 3 months ago
By the way, I find it hard to build the zk
tool out of Docker as well. The doc here https://github.com/matter-labs/zksync-era/blob/main/docs/guides/development.md does not mention the util
package in total, but it is a essential dependency of building zk
.
When running zk init
, I suggest you replace this command with
sudo ZKSYNC_HOME=`pwd` PATH=$ZKSYNC_HOME/bin:$PATH zk init
Because sudo
cannot identify ZKSYNC_HOME
even though you have set this in your .bash_rc
.
Another question is, how to monitor the local-node in a blockchain browser (like etherscan)?
I will be grateful if anyones see this and make a reply.
I resolve this by linking utils
module into the docker env.
# Build `utils` tool and link
RUN cd /etc/utils && yarn && yarn link && cd /
# Build `zk` tool
RUN cd /infrastructure/zk && yarn link utils && yarn && yarn build && cd /
# RUN cd /infrastructure/zk && yarn && yarn build && cd /
Feel strange why this is not written in the original code. BTW, it remains unclear for me how to monitor the local-node in a blockchain explorer?
š Bug Report
š Description
I try to build a local-node image from the Dockerfile provided in
docker/local-node
folder. However, the build fails due to a loss of dependencyutils
which is located inetc/utils
package. Part of log is below and full log is deferred to the last part of this issue:š Reproduction Steps
Run cmd
sudo ZKSYNC_HOME=
pwdzk docker build local-node --custom-tag "my_custom_local_tag"
.Then the image will be built and this error happens.
š Additional Context
I try to fix this by adding
utils
to Dockerfile as well. But I find it hard to manage it smoothly.š Log Output