-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quick start: docker-compose up Signed-off-by: Simon Schubert <[email protected]>
- Loading branch information
Showing
4 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
obc-peer | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from golang:1.5.1 | ||
ENV GO15VENDOREXPERIMENT=1 | ||
# Install RocksDB | ||
RUN cd /opt && git clone --branch v4.1 --single-branch --depth 1 https://github.com/facebook/rocksdb.git && cd rocksdb && make shared_lib | ||
ENV LD_LIBRARY_PATH=/opt/rocksdb:$LD_LIBRARY_PATH | ||
RUN apt-get update && apt-get install -y libsnappy-dev zlib1g-dev libbz2-dev | ||
# Copy GOPATH src and install Peer | ||
RUN mkdir -p /var/openchain/db | ||
WORKDIR $GOPATH/src/github.com/openblockchain/obc-peer/ | ||
COPY . . | ||
RUN CGO_CFLAGS="-I/opt/rocksdb/include" CGO_LDFLAGS="-L/opt/rocksdb -lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy" go install | ||
# RUN cd obc-ca && go install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
vp: | ||
build: . | ||
environment: | ||
- OPENCHAIN_PEER_ADDRESSAUTODETECT=true | ||
command: obc-peer peer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
vp1: | ||
extends: | ||
file: compose-defaults.yml | ||
service: vp | ||
environment: | ||
- OPENCHAIN_PEER_ID=vp1 | ||
|
||
vp2: | ||
extends: | ||
file: compose-defaults.yml | ||
service: vp | ||
environment: | ||
- OPENCHAIN_PEER_ID=vp2 | ||
- OPENCHAIN_PEER_DISCOVERY_ROOTNODE=vp1:30303 | ||
links: | ||
- vp1 | ||
|
||
vp3: | ||
extends: | ||
file: compose-defaults.yml | ||
service: vp | ||
environment: | ||
- OPENCHAIN_PEER_ID=vp3 | ||
- OPENCHAIN_PEER_DISCOVERY_ROOTNODE=vp1:30303 | ||
links: | ||
- vp1 | ||
|
||
vp4: | ||
extends: | ||
file: compose-defaults.yml | ||
service: vp | ||
environment: | ||
- OPENCHAIN_PEER_ID=vp4 | ||
- OPENCHAIN_PEER_DISCOVERY_ROOTNODE=vp1:30303 | ||
links: | ||
- vp1 |