Skip to content

Commit

Permalink
Update docker-compose with ports and image names
Browse files Browse the repository at this point in the history
Updated ports and sfhackfest dockerimage names in docker-compose file
and updated grep condition in channel_test.sh file

Change-Id: Ie06c14aafda7bed4326ffd7ac1dc597cf9bb0b66
Signed-off-by: rameshbabu79 <rameshbabu.thoomu@gmail.com>
  • Loading branch information
rameshthoomu committed Jan 31, 2017
1 parent c7b3fe0 commit b4cb0c3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 16 deletions.
2 changes: 1 addition & 1 deletion examples/sfhackfest/ccenv/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FROM rameshthoomu/fabric-ccenv-x86_64:x86_64-0.7.0-snapshot-3ee280e
FROM sfhackfest22017/fabric-ccenv:x86_64-0.7.0-snapshot-c7b3fe0

4 changes: 3 additions & 1 deletion examples/sfhackfest/channel_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
#create
echo "Creating channel on Orderer"
CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/msp/sampleconfig CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050 peer channel create -c myc1 >>log.txt 2>&1
grep -q "Serializing identity" log.txt
cat log.txt
grep -q "Exiting" log.txt
if [ $? -ne 0 ]; then
echo "ERROR on CHANNEL CREATION" >> results.txt
exit 1
Expand All @@ -16,6 +17,7 @@ while test $i -lt $TOTAL_PEERS
do
echo "###################################### Joining peer$i"
CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050 CORE_PEER_ADDRESS=peer$i:7051 peer channel join -b myc1.block >>log.txt 2>&1
cat log.txt
echo '-------------------------------------------------'
grep -q "Join Result: " log.txt
if [ $? -ne 0 ]; then
Expand Down
31 changes: 17 additions & 14 deletions examples/sfhackfest/docker-compose-gettingstarted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ services:
ccenv_snapshot:
container_name: ccenv_snapshot
build: ./ccenv
image: hyperledger/fabric-ccenv:x86_64-0.7.0-snapshot-3ee280e
image: hyperledger/fabric-ccenv:x86_64-0.7.0-snapshot-c7b3fe0
volumes:
- ./ccenv:/opt/gopath/src/github.com/hyperledger/fabric/orderer/ccenv

ca:
image: rameshthoomu/fabric-ca-x86_64:x86_64-0.7.0-snapshot-f5291e7
image: sfhackfest22017/fabric-ca:x86_64-0.7.0-snapshot-6294c57
ports:
- "7054:7054"
- 8054:7054
environment:
- CA_CERTIFICATE=peerOrg0_cert.pem
- CA_KEY_CERTIFICATE=peerOrg0_pk.pem
Expand All @@ -33,7 +33,7 @@ services:

orderer:
container_name: orderer
image: rameshthoomu/fabric-orderer-x86_64:x86_64-0.7.0-snapshot-3ee280e
image: sfhackfest22017/fabric-orderer:x86_64-0.7.0-snapshot-c7b3fe0
environment:
- ORDERER_GENERAL_LEDGERTYPE=ram
- ORDERER_GENERAL_BATCHTIMEOUT=10s
Expand All @@ -49,13 +49,13 @@ services:
- ./tmp/orderer:/etc/hyperledger/fabric/orderer
command: orderer
ports:
- 7050:7050
- 8050:7050
networks:
- bridge

peer0:
container_name: peer0
image: rameshthoomu/fabric-peer-x86_64:x86_64-0.7.0-snapshot-3ee280e
image: sfhackfest22017/fabric-peer:x86_64-0.7.0-snapshot-c7b3fe0
environment:
- CORE_PEER_ADDRESSAUTODETECT=true
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
Expand All @@ -67,11 +67,12 @@ services:
- CORE_PEER_PROFILE_ENABLED=true
- CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050
- CORE_PEER_GOSSIP_ORGLEADER=true
- CORE_PEER_GOSSIP_IGNORESECURITY=true

working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
ports:
- 7051:7051
- 7053:7053
- 8051:7051
- 8053:7053
links:
- orderer:orderer
volumes:
Expand All @@ -82,7 +83,7 @@ services:

peer1:
container_name: peer1
image: rameshthoomu/fabric-peer-x86_64:x86_64-0.7.0-snapshot-3ee280e
image: sfhackfest22017/fabric-peer:x86_64-0.7.0-snapshot-c7b3fe0
environment:
- CORE_PEER_ADDRESSAUTODETECT=true
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
Expand All @@ -94,9 +95,10 @@ services:
- CORE_PEER_PROFILE_ENABLED=true
- CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050
- CORE_PEER_GOSSIP_ORGLEADER=true
- CORE_PEER_GOSSIP_IGNORESECURITY=true
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
ports:
- 8051:7051
- 8055:7051
command: peer node start --peer-defaultchain=false
links:
- orderer:orderer
Expand All @@ -109,7 +111,7 @@ services:

peer2:
container_name: peer2
image: rameshthoomu/fabric-peer-x86_64:x86_64-0.7.0-snapshot-3ee280e
image: sfhackfest22017/fabric-peer:x86_64-0.7.0-snapshot-c7b3fe0
environment:
- CORE_PEER_ADDRESSAUTODETECT=true
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
Expand All @@ -121,10 +123,11 @@ services:
- CORE_PEER_PROFILE_ENABLED=true
- CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050
- CORE_PEER_GOSSIP_ORGLEADER=true
- CORE_PEER_GOSSIP_IGNORESECURITY=true
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer

ports:
- 9051:7051
- 8056:7051
command: peer node start --peer-defaultchain=false
links:
- orderer:orderer
Expand All @@ -138,7 +141,7 @@ services:

cli:
container_name: cli
image: rameshthoomu/fabric-peer-x86_64:x86_64-0.7.0-snapshot-3ee280e
image: sfhackfest22017/fabric-peer:x86_64-0.7.0-snapshot-c7b3fe0
tty: true
environment:
- GOPATH=/opt/gopath
Expand All @@ -152,7 +155,7 @@ services:
- CORE_PEER_ADDRESS=peer0:7051
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
command: sh -c './channel_test.sh; sleep 10000'
# command: /bin/sh
# command: /bin/sh
links:
- orderer:orderer
- peer0:peer0
Expand Down
Binary file modified examples/sfhackfest/sfhackfest.tar.gz
Binary file not shown.

0 comments on commit b4cb0c3

Please sign in to comment.