hyperledger-labs / fablo

Fablo is a simple tool to generate the Hyperledger Fabric blockchain network and run it on Docker. It supports RAFT and solo consensus protocols, multiple organizations and channels, chaincode installation and upgrade.
Apache License 2.0
191 stars 72 forks source link

Error command not found #291

Closed Fede22dev closed 2 years ago

Fede22dev commented 2 years ago

I was trying to build the network with this fablo-config.json, but it gave me an error message saying: "/IdeaProjects/fablo/fablo-target/fabric-docker/scripts/chaincode-functions.sh: row 141: jq: comand not found". Someone could give me some advise? Thanks.

{
  "$schema": "https://github.com/softwaremill/fablo/releases/download/1.0.0/schema.json",
  "global": {
    "fabricVersion": "2.4.1",
    "tls": false
  },
  "orgs": [
    {
      "organization": {
        "name": "Orderer",
        "domain": "orderer.example.com"
      },
      "orderers": [
        {
          "groupName": "group1",
          "type": "solo",
          "instances": 1
        }
      ]
    },
    {
      "organization": {
        "name": "Org1",
        "domain": "org1.example.com"
      },
      "peer": {
        "instances": 2,
        "db": "CouchDb"
      }
    }
  ],
  "channels": [
    {
      "name": "my-channel1",
      "orgs": [
        {
          "name": "Org1",
          "peers": [
            "peer0",
            "peer1"
          ]
        }
      ]
    }
  ],
  "chaincodes": [
    {
      "channel": "my-channel1",
      "name": "chaincode1",
      "lang": "java",
      "version": "0.0.1",
      "directory": "./chaincodes/chaincode-java-simple"
    }
  ]
}
dzikowski commented 2 years ago

Fablo uses jq to parse some JSONs, just install it and it should be fine (it is available both in Linux and OS X package registries)