File tree 2 files changed +36
-2
lines changed 2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ RUN apt-get update \
6
6
7
7
# install rocksdb
8
8
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 \
10
10
&& cd rocksdb \
11
11
&& PORTABLE=1 make shared_lib \
12
12
&& INSTALL_PATH=/usr/local make install-shared \
@@ -29,4 +29,3 @@ RUN cp $GOPATH/bin/membersrvc /usr/bin/ \
29
29
30
30
# Clear
31
31
RUN rm -rf $GOPATH/pkg
32
-
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments