Skip to content

yeasy/docker-hyperledger-fabric

Repository files navigation

Hyperledger Fabric

Docker images for developing Hyperledger Fabric.

If you want to run fabric instead of dev/compiling, please refer to hyperledger-compose-files.

Supported tags and respective Dockerfile links

For more information about this image and its history, please see the relevant manifest file in the yeasy/docker-hyperledger-fabric GitHub repo.

If you want to quickly deploy a local cluster without any configuration and vagrant, please refer to Start hyperledger clsuter using compose.

What is docker-hyperledger-fabric?

Docker image with hyperledger fabric dev environment.

How to use this image?

The docker image is auto built at https://registry.hub.docker.com/u/yeasy/hyperledger-fabric/.

In Dockerfile

FROM yeasy/hyperledger-fabric:latest

Local development

First, make sure u install Docker, and the daemon config is as the following.

$ sudo docker daemon --api-cors-header="*" -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock

This image has already install the dev env, typically can just map your source code and run.

e.g, if your fabric code is at your-fabric-code-path, you can run make peer with the following cmd.

$ 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

You can also map your local data dir to /var/hyperledger/, and config dir to /etc/hyperledger.

Which image is based on?

The image is built based on golang image.

What has been changed?

install dependencies

Install required libsnappy-dev, zlib1g-dev, libbz2-dev.

install gotools

Install required gotools

install hyperledger fabric

Install hyperledger fabric and build the peer, order and ca.

Supported Docker versions

This image is officially supported on Docker version 1.7.0+.

Support for older versions (down to 1.0) is provided on a best-effort basis.

Known Issues

  • N/A.

User Feedback

Documentation

Be sure to familiarize yourself with the repository's README.md file before attempting a pull request.

Issues

If you have any problems with or questions about this image, please contact us through a GitHub issue.

You can also reach many of the official image maintainers via the email.

Contributing

You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.

Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

About

Hyperledger Fabric All-in-one Docker Image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published