Skip to content

Commit b4cb0c3

Browse files
committed
Update docker-compose with ports and image names
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 <[email protected]>
1 parent c7b3fe0 commit b4cb0c3

File tree

4 files changed

+21
-16
lines changed

4 files changed

+21
-16
lines changed

examples/sfhackfest/ccenv/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
FROM rameshthoomu/fabric-ccenv-x86_64:x86_64-0.7.0-snapshot-3ee280e
1+
FROM sfhackfest22017/fabric-ccenv:x86_64-0.7.0-snapshot-c7b3fe0
22

examples/sfhackfest/channel_test.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
#create
44
echo "Creating channel on Orderer"
55
CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/msp/sampleconfig CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050 peer channel create -c myc1 >>log.txt 2>&1
6-
grep -q "Serializing identity" log.txt
6+
cat log.txt
7+
grep -q "Exiting" log.txt
78
if [ $? -ne 0 ]; then
89
echo "ERROR on CHANNEL CREATION" >> results.txt
910
exit 1
@@ -16,6 +17,7 @@ while test $i -lt $TOTAL_PEERS
1617
do
1718
echo "###################################### Joining peer$i"
1819
CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050 CORE_PEER_ADDRESS=peer$i:7051 peer channel join -b myc1.block >>log.txt 2>&1
20+
cat log.txt
1921
echo '-------------------------------------------------'
2022
grep -q "Join Result: " log.txt
2123
if [ $? -ne 0 ]; then

examples/sfhackfest/docker-compose-gettingstarted.yml

+17-14
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ services:
1414
ccenv_snapshot:
1515
container_name: ccenv_snapshot
1616
build: ./ccenv
17-
image: hyperledger/fabric-ccenv:x86_64-0.7.0-snapshot-3ee280e
17+
image: hyperledger/fabric-ccenv:x86_64-0.7.0-snapshot-c7b3fe0
1818
volumes:
1919
- ./ccenv:/opt/gopath/src/github.com/hyperledger/fabric/orderer/ccenv
2020

2121
ca:
22-
image: rameshthoomu/fabric-ca-x86_64:x86_64-0.7.0-snapshot-f5291e7
22+
image: sfhackfest22017/fabric-ca:x86_64-0.7.0-snapshot-6294c57
2323
ports:
24-
- "7054:7054"
24+
- 8054:7054
2525
environment:
2626
- CA_CERTIFICATE=peerOrg0_cert.pem
2727
- CA_KEY_CERTIFICATE=peerOrg0_pk.pem
@@ -33,7 +33,7 @@ services:
3333

3434
orderer:
3535
container_name: orderer
36-
image: rameshthoomu/fabric-orderer-x86_64:x86_64-0.7.0-snapshot-3ee280e
36+
image: sfhackfest22017/fabric-orderer:x86_64-0.7.0-snapshot-c7b3fe0
3737
environment:
3838
- ORDERER_GENERAL_LEDGERTYPE=ram
3939
- ORDERER_GENERAL_BATCHTIMEOUT=10s
@@ -49,13 +49,13 @@ services:
4949
- ./tmp/orderer:/etc/hyperledger/fabric/orderer
5050
command: orderer
5151
ports:
52-
- 7050:7050
52+
- 8050:7050
5353
networks:
5454
- bridge
5555

5656
peer0:
5757
container_name: peer0
58-
image: rameshthoomu/fabric-peer-x86_64:x86_64-0.7.0-snapshot-3ee280e
58+
image: sfhackfest22017/fabric-peer:x86_64-0.7.0-snapshot-c7b3fe0
5959
environment:
6060
- CORE_PEER_ADDRESSAUTODETECT=true
6161
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
@@ -67,11 +67,12 @@ services:
6767
- CORE_PEER_PROFILE_ENABLED=true
6868
- CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050
6969
- CORE_PEER_GOSSIP_ORGLEADER=true
70+
- CORE_PEER_GOSSIP_IGNORESECURITY=true
7071

7172
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
7273
ports:
73-
- 7051:7051
74-
- 7053:7053
74+
- 8051:7051
75+
- 8053:7053
7576
links:
7677
- orderer:orderer
7778
volumes:
@@ -82,7 +83,7 @@ services:
8283

8384
peer1:
8485
container_name: peer1
85-
image: rameshthoomu/fabric-peer-x86_64:x86_64-0.7.0-snapshot-3ee280e
86+
image: sfhackfest22017/fabric-peer:x86_64-0.7.0-snapshot-c7b3fe0
8687
environment:
8788
- CORE_PEER_ADDRESSAUTODETECT=true
8889
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
@@ -94,9 +95,10 @@ services:
9495
- CORE_PEER_PROFILE_ENABLED=true
9596
- CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050
9697
- CORE_PEER_GOSSIP_ORGLEADER=true
98+
- CORE_PEER_GOSSIP_IGNORESECURITY=true
9799
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
98100
ports:
99-
- 8051:7051
101+
- 8055:7051
100102
command: peer node start --peer-defaultchain=false
101103
links:
102104
- orderer:orderer
@@ -109,7 +111,7 @@ services:
109111

110112
peer2:
111113
container_name: peer2
112-
image: rameshthoomu/fabric-peer-x86_64:x86_64-0.7.0-snapshot-3ee280e
114+
image: sfhackfest22017/fabric-peer:x86_64-0.7.0-snapshot-c7b3fe0
113115
environment:
114116
- CORE_PEER_ADDRESSAUTODETECT=true
115117
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
@@ -121,10 +123,11 @@ services:
121123
- CORE_PEER_PROFILE_ENABLED=true
122124
- CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050
123125
- CORE_PEER_GOSSIP_ORGLEADER=true
126+
- CORE_PEER_GOSSIP_IGNORESECURITY=true
124127
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
125128

126129
ports:
127-
- 9051:7051
130+
- 8056:7051
128131
command: peer node start --peer-defaultchain=false
129132
links:
130133
- orderer:orderer
@@ -138,7 +141,7 @@ services:
138141

139142
cli:
140143
container_name: cli
141-
image: rameshthoomu/fabric-peer-x86_64:x86_64-0.7.0-snapshot-3ee280e
144+
image: sfhackfest22017/fabric-peer:x86_64-0.7.0-snapshot-c7b3fe0
142145
tty: true
143146
environment:
144147
- GOPATH=/opt/gopath
@@ -152,7 +155,7 @@ services:
152155
- CORE_PEER_ADDRESS=peer0:7051
153156
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
154157
command: sh -c './channel_test.sh; sleep 10000'
155-
# command: /bin/sh
158+
# command: /bin/sh
156159
links:
157160
- orderer:orderer
158161
- peer0:peer0

examples/sfhackfest/sfhackfest.tar.gz

5 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)