Rename product -> grid_product in docker-compose
Rename the docker-compose build to match the name
defined in contracts/product/product.yaml
@@ -88,15 +88,15 @@ services:
entrypoint: |
bash -c "
while true; do curl -s http://grid-sawtooth-rest-api:8008/state | grep -q head; if [ $$? -eq 0 ]; then break; fi; sleep 0.5; done;
- sabre cr --create product --key /grid-shared/my_key --owner $$(cat /grid-shared/my_key.pub) --url http://grid-sawtooth-rest-api:8008 --wait 30
+ sabre cr --create grid_product --key /grid-shared/my_key --owner $$(cat /grid-shared/my_key.pub) --url http://grid-sawtooth-rest-api:8008 --wait 30
sabre upload --filename product.yaml --key /grid-shared/my_key --url http://grid-sawtooth-rest-api:8008 --wait 30
sabre ns --create cad11d --key /grid-shared/my_key --owner $$(cat /grid-shared/my_key.pub) --url http://grid-sawtooth-rest-api:8008 --wait 30
sabre ns --create 621dee01 --key /grid-shared/my_key --owner $$(cat /grid-shared/my_key.pub) --url http://grid-sawtooth-rest-api:8008 --wait 30
sabre ns --create 621dee02 --key /grid-shared/my_key --owner $$(cat /grid-shared/my_key.pub) --url http://grid-sawtooth-rest-api:8008 --wait 30
- sabre perm cad11d product --key /grid-shared/my_key --read --write --url http://grid-sawtooth-rest-api:8008 --wait 30
- sabre perm 621dee01 product --key /grid-shared/my_key --read --url http://grid-sawtooth-rest-api:8008 --wait 30
- sabre perm 621dee02 product --key /grid-shared/my_key --read --write --url http://grid-sawtooth-rest-api:8008 --wait 30
- echo '---------========= product contract is loaded =========---------'
+ sabre perm cad11d grid_product --key /grid-shared/my_key --read --write --url http://grid-sawtooth-rest-api:8008 --wait 30
+ sabre perm 621dee01 grid_product --key /grid-shared/my_key --read --url http://grid-sawtooth-rest-api:8008 --wait 30
+ sabre perm 621dee02 grid_product --key /grid-shared/my_key --read --write --url http://grid-sawtooth-rest-api:8008 --wait 30
+ echo '---------========= grid_product contract is loaded =========---------'
"
validator:
