Skip to content

Commit 3f23bae

Browse files
committed
update deploy dockerfile
1 parent 6d8ae02 commit 3f23bae

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

deployment/base/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN apt-get update \
66

77
# install rocksdb
88
RUN cd /tmp \
9-
&& git clone --single-branch -b fabric-0.6 --depth 1 https://github.com/noel2004/rocksdb \
9+
&& git clone -b 5.10.fb --depth 1 https://github.com/facebook/rocksdb \
1010
&& cd rocksdb \
1111
&& PORTABLE=1 make shared_lib \
1212
&& INSTALL_PATH=/usr/local make install-shared \
@@ -29,4 +29,3 @@ RUN cp $GOPATH/bin/membersrvc /usr/bin/ \
2929

3030
# Clear
3131
RUN rm -rf $GOPATH/pkg
32-

deployment/base/Dockerfile-legacy

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
FROM golang:1.9
2+
3+
RUN apt-get update \
4+
&& apt-get install -y libsnappy-dev zlib1g-dev libbz2-dev \
5+
&& rm -rf /var/cache/apt
6+
7+
# install rocksdb
8+
RUN cd /tmp \
9+
&& git clone --single-branch -b fabric-0.6 --depth 1 https://github.com/noel2004/rocksdb \
10+
&& cd rocksdb \
11+
&& PORTABLE=1 make shared_lib \
12+
&& INSTALL_PATH=/usr/local make install-shared \
13+
&& ldconfig \
14+
&& rm -rf /tmp/rocksdb
15+
16+
# Set workdir and env
17+
WORKDIR /opt/gopath
18+
ENV GOPATH=/opt/gopath
19+
20+
# clone hyperledger
21+
RUN go get -d hyperledger.abchain.org/utils
22+
# Build membersrvc, peer in legacy
23+
RUN go get -d github.com/abchain/fabric/protos
24+
RUN cd /opt/gopath/github.com/abchain/fabric \
25+
&& git checkout fabric-legacy
26+
RUN go install github.com/abchain/fabric/membersrvc
27+
RUN go install github.com/abchain/fabric/peer
28+
29+
# Install membersrvc and peer to $PATH
30+
RUN cp $GOPATH/bin/membersrvc /usr/bin/ \
31+
&& cp $GOPATH/bin/peer /usr/bin/
32+
33+
# Clear
34+
RUN rm -rf $GOPATH/pkg
35+

0 commit comments

Comments
 (0)