简体   繁体   English

如何使用本地 elrond docker 容器节点进行本地智能合约开发

[英]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.

相关问题 如何创建资金账户以使用我的本地 Nearup docker 容器进行开发 - how do I create a funded account to use my local nearup docker container for development Docker - 容器上的本地开发 - Docker - Local Development on container 如何使用mysql docker容器作为mysql服务器进行本地开发? - How to use mysql docker container as mysql server for local development? 如何从 AWS SAM 本地 Docker 容器访问另一个 Docker 容器(运行节点快速服务器)? - How do I access another Docker container (running a node express server) from a AWS SAM Local Docker container? 如何将配置设置传递到Docker映像以进行本地开发? - How do I pass in configuration settings to a docker image for local development? 如何为本地开发设置 docker 和 nginx - How do I set up docker and nginx for local development 使用Docker进行本地开发-我需要2个Dockerfile吗? - Local development with docker - do I need 2 Dockerfiles? 如何将本地用户添加到我的 docker 容器? - How do I add the local users to my docker container? 如何访问 local.network 上的 docker 容器? - How do I access a docker container on the local network? 我如何允许我的 docker 容器连接到本地堆栈 - How do i allow my docker container to connect to local stack
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM