Hyperledger Fabric network for rental machine UbiotThis is a network for purchase and rent of pay per use machines
Select the virtual machine an run https://console.cloud.google.com/compute/instancesproject=guminator&instancessize=50
##Connect to the virtual machine
Copy the following command and paste it in your terminal gcloud beta compute ssh --zone "us-central1-a" "rtorrealba@twinbiot" --project "guminator"
Navigate to the ubiot network directory with the following command: cd /home/rtorrealba/ubiot-network
Run the startup network script ./start-network
Now, copy the printed link in your terminal and paste it into your browser
Open a second terminal and connect through shh to the twinbiot virtual machine
gcloud beta compute ssh --zone "us-central1-a" "rtorrealba@twinbiot" --project "guminator"
You will need to give permission to the organizations folder sudo chmod 777 -R ubiot-network/test-network/organizations/
Copy the organization folder in the explorer folder cp -r ubiot-network/test-network/organizations/ ubiot-network/explorer/
Then, copy the private key of the Org1 and paste it in the connection file cd ubiot-network/test-network/organizations/peerOrganizations/org1.example.com/users/[email protected]/msp/keystore/ | ls
Copy the name of the file printed in the terminal Go to the connection/profile directory and edit the first-network.json cd ubiot-network/explorer/connection-profile/
nano first-network.json
Paste the name in the organizations section, specifically in the path, next to the keystore Save the file, go to the explorer's directory and execute the following command:
docker-compose up
Open your browser and go to the virtual machine IP address on 8081 port