Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yeasy/docker-hyperledger-fabric

Hyperledger Fabric All-in-one Docker Image
https://github.com/yeasy/docker-hyperledger-fabric

Last synced: 20 days ago
JSON representation

Hyperledger Fabric All-in-one Docker Image

Awesome Lists containing this project

README

        

Hyperledger Fabric
===
Docker images for developing [Hyperledger Fabric](https://www.hyperledger.org).

If you want to run fabric instead of dev/compiling, please refer to [hyperledger-compose-files](https://github.com/yeasy/docker-compose-files#hyperledger).

# Supported tags and respective Dockerfile links

* [`latest` (latest/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/Dockerfile): Tracking latest master branch code.
* [`release-v2.5` (release-v2.5/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/release-v2.5/Dockerfile): Build for the 2.5 release.
* [`2.5.0` (v2.5.0/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.5.0/Dockerfile): Build for the 2.5.0 release.
* [`release-v2.4` (release-v2.4/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/release-v2.4/Dockerfile): Build for the 2.4 release.
* [`2.4.7` (v2.4.7/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.4.7/Dockerfile): Build for the 2.4.7 release.
* [`2.4.5` (v2.4.5/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.4.5/Dockerfile): Build for the 2.4.5 release.
* [`2.4.0` (v2.4.0/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.4.0/Dockerfile): Build for the 2.4.0 release.
* [`release-v2.3` (release-v2.3/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/release-v2.3/Dockerfile): Build for the 2.3 release.
* [`2.3.3` (v2.3.3/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.3.3/Dockerfile): Build for the 2.3.3 release.
* [`2.3.2` (v2.3.2/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.3.2/Dockerfile): Build for the 2.3.2 release.
* [`2.3.1` (v2.3.1/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.3.1/Dockerfile): Build for the 2.3.1 release.
* [`2.3.0` (v2.3.0/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.3.0/Dockerfile): Build for the 2.3.0 release.
* [`release-v2.2` (release-v2.2/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/release-v2.2/Dockerfile): Build for the 2.2 LTS release.
* [`2.2.10` (v2.2.10/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.10/Dockerfile): Build for the 2.2.10 release.
* [`2.2.9` (v2.2.9/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.9/Dockerfile): Build for the 2.2.9 release.
* [`2.2.8` (v2.2.8/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.8/Dockerfile): Build for the 2.2.8 release.
* [`2.2.4` (v2.2.4/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.4/Dockerfile): Build for the 2.2.4 release.
* [`2.2.3` (v2.2.3/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.3/Dockerfile): Build for the 2.2.3 release.
* [`2.2.2` (v2.2.2/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.2/Dockerfile): Build for the 2.2.2 release.
* [`2.2.1` (v2.2.1/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.1/Dockerfile): Build for the 2.2.1 release.
* [`2.2.0` (v2.2.0/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.2.0/Dockerfile): Build for the 2.2.0 release.
* [`2.1.0` (v2.1.0/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.1.0/Dockerfile): Build for the 2.1.0 release.
* [`release-v2.0` (release-v2.0/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/release-v2.0/Dockerfile): Build for the 2.0 release.
* [`2.0.0` (v2.0.0/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v2.0.0/Dockerfile): Build for the 2.0.0 release.
* [`release-v1.4` (release-v1.4/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/release-v1.4/Dockerfile): Build for the 1.4 LTS release.
* [`1.4.12` (v1.4.12/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.12/Dockerfile): Build for the 1.4.12 release.
* [`1.4.11` (v1.4.11/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.11/Dockerfile): Build for the 1.4.11 release.
* [`1.4.10` (v1.4.10/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.10/Dockerfile): Build for the 1.4.10 release.
* [`1.4.9` (v1.4.9/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.9/Dockerfile): Build for the 1.4.9 release.
* [`1.4.8` (v1.4.8/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.8/Dockerfile): Build for the 1.4.8 release.
* [`1.4.7` (v1.4.7/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.7/Dockerfile): Build for the 1.4.7 release.
* [`1.4.6` (v1.4.6/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.6/Dockerfile): Build for the 1.4.6 release.
* [`1.4.5` (v1.4.5/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.5/Dockerfile): Build for the 1.4.5 release.
* [`1.4.4` (v1.4.4/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.4/Dockerfile): Build for the 1.4.4 release.
* [`1.4.3` (v1.4.3/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.3/Dockerfile): Build for the 1.4.3 release.
* [`1.4.2` (v1.4.2/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.2/Dockerfile): Build for the 1.4.2 release.
* [`1.4.1` (v1.4.1/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.1/Dockerfile): Build for the 1.4.1 release.
* [`1.4.0` (v1.4.0/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.4.0/Dockerfile): Build for the 1.4.0 release.
* [`1.3.0` (v1.3.0/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.3.0/Dockerfile): Build for the 1.3.0 release.
* [`1.2.0` (v1.2.0/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.2.0/Dockerfile): Build for the 1.2.0 release.
* [`1.1.0` (v1.1.0/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.1.0/Dockerfile): Build for the 1.1.0 release.
* [`1.1.0-rc1` (v1.1.0-rc1/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.1.0-rc1/Dockerfile): Build for the 1.1.0-rc1 release.
* [`1.0.6` (v1.0.6/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.6/Dockerfile): Build for the 1.0.6 release.
* [`1.1.0-alpha` (v1.1.0-alpha/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.1.0-alpha/Dockerfile): Build for the 1.1.0-alpha release.
* [`1.1.0-preview` (v1.1.0-preview/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.1.0-preview/Dockerfile): Build for the 1.1.0-preview release.
* [`1.0.5` (v1.0.5/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.5/Dockerfile): Build for the 1.0.5 release.
* [`1.0.4` (v1.0.4/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.4/Dockerfile): Build for the 1.0.4 release.
* [`1.0.3` (v1.0.3/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.3/Dockerfile): Build for the 1.0.3 release.
* [`1.0.2` (v1.0.2/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.2/Dockerfile): Build for the 1.0.2 release.
* [`1.0.1` (v1.0.1/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.1/Dockerfile): Build for the 1.0.1 release.
* [`1.0.0` (v1.0.0/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.0/Dockerfile): Build for the 1.0.0 release.
* [`1.0.0-rc1` (v1.0.0-rc1/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.0-rc1/Dockerfile): Build for the 1.0.0-rc1 release.
* [`1.0.0-beta` (v1.0.0-beta/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.0-beta/Dockerfile): Build for the 1.0.0-beta release.
* [`1.0.0-alpha2` (v1.0.0-alpha2/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.0-alpha2/Dockerfile): Build for the 1.0.0-alpha2 release.
* [`1.0.0-alpha` (v1.0.0-alpha/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/v1.0.0-alpha/Dockerfile): Build for the 1.0.0-alpha release.
* [`0.6-dp` (0.6-dp/Dockerfile)](https://github.com/yeasy/docker-hyperledger-fabric/blob/0.6-dp/Dockerfile): Use 0.6-developer-preview branch code.

For more information about this image and its history, please see the relevant manifest file in the [`yeasy/docker-hyperledger-fabric` GitHub repo](https://github.com/yeasy/docker-hyperledger-fabric).

If you want to quickly deploy a local cluster without any configuration and vagrant, please refer to [Start hyperledger clsuter using compose](https://github.com/yeasy/docker-compose-files#hyperledger).

# 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/](https://registry.hub.docker.com/u/yeasy/hyperledger-fabric/).

## In Dockerfile
```sh
FROM yeasy/hyperledger-fabric:latest
```

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

```sh
$ 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.

```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
```

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](https://hub.docker.com/_/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`](https://github.com/yeasy/docker-hyperledger-fabric/blob/master/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](https://github.com/yeasy/docker-hyperledger-fabric/issues).

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](https://github.com/yeasy/docker-hyperledger-fabric/issues), 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.