Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

起動用script作成 #7

Open
shohu opened this issue Jun 10, 2019 · 0 comments
Open

起動用script作成 #7

shohu opened this issue Jun 10, 2019 · 0 comments

Comments

@shohu
Copy link
Owner

shohu commented Jun 10, 2019

reset_hyper.sh

docker stop $(docker ps -q)
docker rm $(docker ps -aq)
CONTRACT_IMAGE=$(docker images | grep 'dev-peer0.org1.example.com-estatecontract' | awk '{print $3}')
echo $CONTRACT_IMAGE
docker rmi $CONTRACT_IMAGE

start_monitor_fabric.sh

#!/bin/bash

cd /Users/shohu33/sc/estate-sample/basic-network
./start.sh

cd ../estate/configuration/cli/
./monitordocker.sh net_basic

update_fabric_code.sh

#!/bin/bash

docker exec cliMagnetoCorp peer chaincode install -n estatecontract -v $1 -p /opt/gopath/src/github.com/contract -l node

docker exec cliMagnetoCorp peer chaincode upgrade -n estatecontract -v $1 -l node -c '{"Args":["org.estatenet.estate:instantiate"]}' -C mychannel -P "AND ('Org1MSP.member')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant