[英]How do I use local elrond docker container node for local smart-contract development
I am new to elrond.我是埃尔隆德的新手。 I (think) successfully have local node running in docker?我(认为)成功地让本地节点在 docker 中运行?
Both of these yield same log output in portainer:这两个在搬运工中产生相同的日志 output:
sudo docker run -d \
--name my-elrond-testnet \
-v ${PATH_TO_BLS_KEY_FILE}:/data/ \
elrondnetwork/elrond-go-node:latest \
--nodes-setup-file="/data/nodesSetup.json" \
--p2p-config="/data/config/p2p.toml" \
--validator-key-pem-file="/data/keys/validatorKey.pem"
sudo docker run -d \
--name my-other-elrond-testnet \
--mount type=bind,source=${PATH_TO_BLS_KEY_FILE}/,destination=/data \
elrondnetwork/elrond-go-node:latest \
--validator-key-pem-file="/data/validatorKey.pem"
But now I dont know what to do.但现在我不知道该怎么办。 How do I connect to that local node.如何连接到该本地节点。
I wanted to use it as a local development node - I want to deploy smart contracts on it.我想将其用作本地开发节点——我想在其上部署智能合约。
I have some experience with Solana and with NEAR.我对 Solana 和 NEAR 有一些经验。
I dont see that the container exposes any ports.我没有看到容器暴露了任何端口。
Do I need a proxy?我需要代理吗?
This isn't docker but it successfully runs a local node(s).这不是 docker,但它成功运行了本地节点。
https://docs.elrond.com/developers/setup-local-testnet/ https://docs.elrond.com/developers/setup-local-testnet/
I followed most of the instructions without an issue except that when I tried to run "erdpy" it failed.除了尝试运行“erdpy”时,我按照大多数说明都没有问题。
But elsewhere I found " pip install erdpy"但在其他地方我发现“pip install erdpy”
Once you get erdpy working, the rest of the instructions went well, as far as getting a local node(s) to run.一旦你让 erdpy 工作,指令的 rest 运行良好,就让本地节点运行而言。
I dont know yet about actually deploying a contract on it.我还不知道实际在其上部署合同。
There's also this: https://docs.elrond.com/developers/setup-local-testnet-advanced/还有这个: https://docs.elrond.com/developers/setup-local-testnet-advanced/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.