Skip to content

Commit 250d548

Browse files
committed
add secure
1 parent 0f1aee5 commit 250d548

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Quick Start
66
===
77
Make sure that docker runs with options
88

9-
--api-cors-header="*" -H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock
9+
--api-cors-header="*" -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock
1010

1111
install-docker.sh does this on Redhat/Mageia systems
1212

@@ -17,7 +17,10 @@ dockerhub image
1717

1818
Otherwise
1919

20-
./startnet.sh
20+
./startnet.sh or ./startnet-secure.sh
21+
22+
Run test items
23+
2124
./fabric-run.sh scripts/deploy.sh
2225
./fabric-run.sh scripts/run-test.sh
2326
./fabric-rest.js json/method.chaincode.json json/example02-deploy.json

scripts/login.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
export CORE_PEER_ADDRESS=vp0:30303
3+
peer network login jim

startnet-secure.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,8 @@ docker run --name=vp1 \
6262
joequant/hyperledger \
6363
peer node start --logging-level=debug >& vp1.log &
6464

65+
echo "Get the password from config/membersrvc.yaml"
66+
docker exec -it vp0 /local-dev/scripts/login.sh
67+
6568

6669

0 commit comments

Comments
 (0)