博客
关于我
Hyperledger Burrow 集成区块链浏览器blockscout
阅读量:126 次
发布时间:2019-02-27

本文共 1258 字,大约阅读时间需要 4 分钟。

环境

  • os:centos7.6
  • docker-ce:19.03.5
  • burrow:0.30.2

下载源码

git clone https://github.com/poanetwork/blockscout cd blockscout

构建docker镜像并启动

  1. 修改start ,blockscout修改为-d
cd dockervi Makefile

Makefile

start: build postgres        @echo "==> Starting blockscout"        @docker run -d --name $(BS_CONTAINER_NAME) \                                        $(BLOCKSCOUT_CONTAINER_PARAMS) \                                        -p 4000:4000 \                                        $(DOCKER_IMAGE) /bin/sh -c "mix phx.server"
  1. 构建镜像并启动容器
ETHEREUM_JSONRPC_VARIANT=ganache \ETHEREUM_JSONRPC_HTTP_URL=http://192.168.130.11:26860 \make start

ETHEREUM_JSONRPC_HTTP_URLBurrowweb3监听地址

  1. 检查是否启动
docker ps
CONTAINER ID        IMAGE                 COMMAND                  CREATED             STATUS              PORTS                                                                              NAMES322ba65b6988        blockscout_prod       "/bin/sh -c 'mix phx…"   8 seconds ago       Up 7 seconds                                                                                           blockscout1d7e60050565        postgres:10.10        "docker-entrypoint.s…"   36 minutes ago      Up 36 minutes       0.0.0.0:5432->5432/tcp

注意:这里没有将数据目录挂载到宿主机,重启后数据会丢失

查看

打开浏览器:http://yourip:4000

在这里插入图片描述

转载地址:http://eyib.baihongyu.com/

你可能感兴趣的文章
nginx 集群配置方式 静态文件处理
查看>>
Nginx+Django-Python+BPMN-JS的整合工作流实战项目
查看>>
Nginx+Keepalived+LVS集群实战
查看>>
Nginx+Keepalived实现简单版高可用主备切换
查看>>
Nginx+Lua 开发高性能Web应用实战
查看>>
nginx+mysql+redis+mongdb+rabbitmq 自动化部署脚本
查看>>
nginx+php的搭建
查看>>
nginx+tomcat+memcached
查看>>
nginx+tomcat单个域名及多个域名配置
查看>>
Nginx+Tomcat实现动静分离
查看>>
nginx+Tomcat性能监控
查看>>
nginx+uwsgi+django
查看>>
nginx+vsftp搭建图片服务器
查看>>
Nginx-http-flv-module流媒体服务器搭建+模拟推流+flv.js在前端html和Vue中播放HTTP-FLV视频流
查看>>
nginx-vts + prometheus 监控nginx
查看>>
Nginx/Apache反向代理
查看>>
Nginx: 413 – Request Entity Too Large Error and Solution
查看>>
nginx: [emerg] getpwnam(“www”) failed 错误处理方法
查看>>
nginx: [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:
查看>>
nginx: [error] open() “/usr/local/nginx/logs/nginx.pid“ failed (2: No such file or directory)
查看>>