用于开发https://www.hyperledger.org的Docker镜像。
如果您想运行Fabric而非开发/编译,请参考https://github.com/yeasy/docker-compose-files#hyperledger。
支持的标签及对应Dockerfile链接
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/Dockerfile: 跟踪最新的master分支代码。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/release-v2.5/Dockerfile: 基于2.5版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.5.0/Dockerfile: 基于2.5.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/release-v2.4/Dockerfile: 基于2.4版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.4.7/Dockerfile: 基于2.4.7版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.4.5/Dockerfile: 基于2.4.5版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.4.0/Dockerfile: 基于2.4.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/release-v2.3/Dockerfile: 基于2.3版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.3.3/Dockerfile: 基于2.3.3版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.3.2/Dockerfile: 基于2.3.2版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.3.1/Dockerfile: 基于2.3.1版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.3.0/Dockerfile: 基于2.3.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/release-v2.2/Dockerfile: 基于2.2 LTS版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.9/Dockerfile: 基于2.2.9版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.8/Dockerfile: 基于2.2.8版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.4/Dockerfile: 基于2.2.4版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.3/Dockerfile: 基于2.2.3版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.2/Dockerfile: 基于2.2.2版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.1/Dockerfile: 基于2.2.1版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.0/Dockerfile: 基于2.2.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.1.0/Dockerfile: 基于2.1.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/release-v2.0/Dockerfile: 基于2.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.0.0/Dockerfile: 基于2.0.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/release-v1.4/Dockerfile: 基于1.4 LTS版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.12/Dockerfile: 基于1.4.12版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.11/Dockerfile: 基于1.4.11版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.10/Dockerfile: 基于1.4.10版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.9/Dockerfile: 基于1.4.9版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.8/Dockerfile: 基于1.4.8版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.7/Dockerfile: 基于1.4.7版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.6/Dockerfile: 基于1.4.6版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.5/Dockerfile: 基于1.4.5版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.4/Dockerfile: 基于1.4.4版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.3/Dockerfile: 基于1.4.3版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.2/Dockerfile: 基于1.4.2版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.1/Dockerfile: 基于1.4.1版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.0/Dockerfile: 基于1.4.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.3.0/Dockerfile: 基于1.3.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.2.0/Dockerfile: 基于1.2.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.1.0/Dockerfile: 基于1.1.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.1.0-rc1/Dockerfile: 基于1.1.0-rc1版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.6/Dockerfile: 基于1.0.6版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.1.0-alpha/Dockerfile: 基于1.1.0-alpha版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.1.0-preview/Dockerfile: 基于1.1.0-preview版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.5/Dockerfile: 基于1.0.5版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.4/Dockerfile: 基于1.0.4版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.3/Dockerfile: 基于1.0.3版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.2/Dockerfile: 基于1.0.2版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.1/Dockerfile: 基于1.0.1版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.0/Dockerfile: 基于1.0.0版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.0-rc1/Dockerfile: 基于1.0.0-rc1版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.0-beta/Dockerfile: 基于1.0.0-beta版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.0-alpha2/Dockerfile: 基于1.0.0-alpha2版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.0-alpha/Dockerfile: 基于1.0.0-alpha版本构建。
- https://github.com/yeasy/docker-hyperledger-fabric/blob/0.6-dp/Dockerfile: 使用0.6-developer-preview分支代码。
有关此镜像及其历史的更多信息,请参见https://github.com/yeasy/docker-hyperledger-fabric中的相关清单文件。
如果您想无需任何配置和vagrant快速部署本地集群,请参考https://github.com/yeasy/docker-compose-files#hyperledger。
什么是docker-hyperledger-fabric?
包含Hyperledger Fabric开发环境的Docker镜像。
如何使用此镜像?
该Docker镜像在https://registry.hub.docker.com/u/yeasy/hyperledger-fabric/自动构建。
在Dockerfile中使用
sh
FROM docker.xuanyuan.run/yeasy/hyperledger-fabric:latest
本地开发
首先,确保您已安装Docker,并且守护进程配置如下:
sh
$ sudo docker daemon --api-cors-header="*" -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock
此镜像已安装开发环境,通常只需映射源代码并运行即可。
例如,如果您的Fabric代码位于your-fabric-code-path,可以通过以下命令运行make peer:
sh
$ docker run -it \
-v /var/run/docker.sock:/var/run/docker.sock \
-v your-fabric-code-path:/go/src/github.com/hyperledger/fabric \
yeasy/hyperledger-fabric \
make peer
您还可以将本地数据目录映射到/var/hyperledger/,配置目录映射到/etc/hyperledger。
基于哪个镜像构建?
该镜像基于https://hub.docker.com/_/golang镜像构建。
有哪些更改?
安装依赖
安装所需的libsnappy-dev、zlib1g-dev、libbz2-dev。
安装gotools
安装所需的gotools。
安装Hyperledger Fabric
安装Hyperledger Fabric并构建peer、orderer和ca。
支持的Docker版本
此镜像官方支持Docker 1.7.0+版本。
对旧版本(低至1.0)的支持基于尽力而为原则。
已知问题
用户反馈
文档
在尝试提交拉取请求之前,请务必熟悉https://github.com/yeasy/docker-hyperledger-fabric/blob/master/README.md文件。
问题
如果您对此镜像有任何问题或疑问,请通过https://github.com/yeasy/docker-hyperledger-fabric/issues与我们联系。
您也可以通过电子邮件联系许多官方镜像维护者。
贡献
欢迎您贡献新功能、修复或更新,无论大小;我们始终很高兴收到拉取请求,并会尽最大努力尽快处理。
在开始编码之前,我们建议通过https://github.com/yeasy/docker-hyperledger-fabric/issues讨论您的计划,尤其是对于更宏大的贡献。这使其他贡献者有机会为您指明正确的方向,提供对您设计的反馈,并帮助您了解是否有其他人正在从事相同的工作。