|
@@ -76,6 +76,10 @@ function create_peer() {
|
|
|
rm -rf $project
|
|
|
mkdir -p $project
|
|
|
echo "CHANNEL_NAME=$channel ./docker-compose -f docker-compose-peer"$N".yaml up -d " >> $project/start.sh
|
|
|
+ echo "sleep 2" >> $project/start.sh
|
|
|
+ echo "curl -X PUT http://127.0.0.1:5984/_users" >> $project/start.sh
|
|
|
+ echo "curl -X PUT http://127.0.0.1:5984/_replicator" >> $project/start.sh
|
|
|
+ echo "curl -X PUT http://127.0.0.1:5984/_global_changes" >> $project/start.sh
|
|
|
echo "docker pull $docker_peer_images" >> $project/download-dockerimages.sh
|
|
|
echo "docker tag $docker_peer_images hyperledger/fabric-peer" >> $project/download-dockerimages.sh
|
|
|
echo "docker pull $docker_couchdb_images" >> $project/download-dockerimages.sh
|