-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-1370] Add orderer and peer binaries to testenv
Change-Id: I0b940003c4c686aaa0dfef3406b8427bc7cf0022 Signed-off-by: Luis Sanchez <[email protected]>
- Loading branch information
Luis Sanchez
committed
Jan 14, 2017
1 parent
9e8fb87
commit 2e4c239
Showing
3 changed files
with
40 additions
and
4 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
15 changes: 12 additions & 3 deletions
15
bddtests/environments/orderer-n-kafka-n/orderer/Dockerfile
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 |
---|---|---|
@@ -1,8 +1,17 @@ | ||
FROM hyperledger/fabric-orderer | ||
FROM hyperledger/fabric-testenv | ||
WORKDIR /opt/gopath/src/github.com/hyperledger/fabric/orderer | ||
RUN apt-get update \ | ||
&& apt-get install -y zookeeper jq \ | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y zookeeper jq \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
ENV ORDERER_GENERAL_LEDGERTYPE=ram \ | ||
ORDERER_GENERAL_BATCHTIMEOUT=10s \ | ||
ORDERER_GENERAL_BATCHSIZE=10 \ | ||
ORDERER_GENERAL_MAXWINDOWSIZE=1000 \ | ||
ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 \ | ||
ORDERER_GENERAL_LISTENPORT=7050 \ | ||
ORDERER_RAMLEDGER_HISTORY_SIZE=100 \ | ||
ORDERER_GENERAL_GENESISMETHOD=provisional | ||
ENV ORDERER_GENERAL_ORDERERTYPE=kafka | ||
ADD docker-entrypoint.sh /docker-entrypoint.sh | ||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
CMD ["orderer"] |
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 |
---|---|---|
@@ -1,3 +1,25 @@ | ||
FROM hyperledger/fabric-baseimage:_BASE_TAG_ | ||
|
||
# fabric configuration file locations | ||
RUN mkdir -p /etc/hyperledger/fabric | ||
ENV ORDERER_CFG_PATH /etc/hyperledger/fabric | ||
ENV PEER_CFG_PATH /etc/hyperledger/fabric | ||
|
||
# ledger db location | ||
RUN mkdir -p /var/hyperledger/db | ||
|
||
# install gotools | ||
ADD payload/gotools.tar.bz2 /usr/local/bin/ | ||
|
||
# fabric configuration files | ||
COPY payload/orderer.yaml $ORDERER_CFG_PATH | ||
COPY payload/core.yaml $PEER_CFG_PATH | ||
ADD payload/msp-sampleconfig.tar.bz2 $PEER_CFG_PATH | ||
|
||
|
||
# fabric binaries | ||
COPY payload/orderer /usr/local/bin | ||
COPY payload/peer /usr/local/bin | ||
|
||
# typically, this is mapped to a developer's dev environment | ||
WORKDIR /opt/gopath/src/github.com/hyperledger/fabric |