Skip to content

Commit 8e1f979

Browse files
committed
mass restucturing
1 parent 73aac65 commit 8e1f979

14 files changed

+37
-90
lines changed

Dockerfile

+25-5
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,34 @@ MAINTAINER Baohua Yang
88
ENV DEBIAN_FRONTEND noninteractive
99

1010
RUN apt-get update \
11-
&& apt-get install -y libsnappy-dev zlib1g-dev libbz2-dev \
11+
&& apt-get install -y libsnappy-dev zlib1g-dev libbz2-dev software-properties-common curl wget unzip autoconf build-essential libtool nodejs \
1212
&& rm -rf /var/cache/apt
1313

14+
# install nodejs
15+
#RUN cd /tmp \
16+
#&& wget --quiet https://nodejs.org/dist/node-v0.12.7/node-v0.12.7-linux-x64.tar.gz \
17+
#&& cd /usr/local \
18+
#&& tar --strip-components 1 -xzf /tmp/node-v0.12.7/node-v0.12.7-linux-x64.tar.gz
19+
20+
# install protoc
21+
RUN cd /tmp \
22+
&& git clone --single-branch https://github.com/google/protobuf.git \
23+
&& cd protobuf \
24+
&& git checkout 12fb61b292d7ec4cb14b0d60e58ed5c35adda3b7 \
25+
&& ./autogen.sh \
26+
&& ./configure --prefix=/usr \
27+
&& make \
28+
&& make check \
29+
&& make install \
30+
&& export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
31+
1432
# install rocksdb
1533
RUN cd /tmp \
1634
&& git clone --single-branch -b v4.1 --depth 1 https://github.com/facebook/rocksdb.git \
1735
&& cd rocksdb \
1836
&& PORTABLE=1 make shared_lib \
1937
&& INSTALL_PATH=/usr/local make install-shared \
20-
&& ldconfig \
21-
&& cd / \
22-
&& rm -rf /tmp/rocksdb
38+
&& ldconfig
2339

2440
RUN mkdir -p /var/hyperledger/db \
2541
&& mkdir -p /var/hyperledger/production
@@ -36,5 +52,9 @@ RUN mkdir -p $GOPATH/src/github.com/hyperledger \
3652
RUN cp $GOPATH/src/github.com/hyperledger/fabric/core.yaml $GOPATH/bin \
3753
&& cp $GOPATH/src/github.com/hyperledger/fabric/consensus/obcpbft/config.yaml $GOPATH/bin
3854

55+
RUN export GOROOT=/go
56+
3957
# this is only a workaround for current hard-coded problem.
40-
RUN ln -s $GOPATH /opt/gopath
58+
RUN ln -s $GOPATH /opt/gopath
59+
60+
WORKDIR "$GOPATH/src/github.com/hyperledger/fabric"

README.md

+12-19
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@ Docker-Hyperledger
22
===
33
Base Docker images for [Hyperledger](https://www.hyperledger.org).
44

5+
Quick Start
6+
===
7+
Set up scripts for docker version of hyperledger
8+
9+
fabric-setup.sh
10+
./startnet.sh
11+
./fabric-run.sh fabric-scripts/deploy.sh
12+
./fabric-run.sh fabric-scripts/run-test.sh
13+
14+
15+
516
# Supported tags and respective Dockerfile links
617

718
* [`0.1, latest` (latest/Dockerfile)](https://github.com/yeasy/docker-hyperledger/blob/master/Dockerfile)
@@ -10,29 +21,11 @@ Base Docker images for [Hyperledger](https://www.hyperledger.org).
1021
For more information about this image and its history, please see the relevant manifest file in the [`yeasy/docker-hyperledger` GitHub repo](https://github.com/yeasy/docker-hyperledger).
1122

1223
# What is docker-hyperledger?
13-
Base Docker image with hyperledger deployed. Your can see [hyperledger-peer](https://hub.docker.com/r/yeasy/hyperledger-peer/) if you want to deploy a hyperledger cluster.
24+
Base Docker image with hyperledger deployed.
1425

1526
# How to use this image?
1627
The docker image is auto built at [https://registry.hub.docker.com/u/yeasy/hyperledger/](https://registry.hub.docker.com/u/yeasy/hyperledger/).
1728

18-
## In Dockerfile
19-
```sh
20-
FROM yeasy/hyperledger:latest
21-
```
22-
23-
## Local Run
24-
The image is only for the base environment. So please refer to [hyperledger-peer](https://hub.docker.com/r/yeasy/hyperledger-peer/) if you want a local run.
25-
26-
# Which image is based on?
27-
The image is built based on [golang:1.6](https://hub.docker.com/_/golang) image.
28-
29-
# What has been changed?
30-
## install dependencies
31-
Install required libsnappy-dev, zlib1g-dev, libbz2-dev.
32-
33-
## install rocksdb
34-
Install required rocksdb 4.1.
35-
3629
## install hyperledger
3730
Install hyperledger and build the fabric as peer
3831

dev/Dockerfile

-60
This file was deleted.

dev/README.md

-6
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)