I have created business network file using composer but when i tried to deployed to fabric 1.0 ,its giving error because I already running another fabric 1.0 in my machine using docker.
Could you please help me to deploy two fabric network on single machine so i can run my composer applications too,
Thanks
Kamlesh
This is a Fabric question, related to how to run multiple instances of Fabric on the same machine and has nothing to do with Composer.
Related
I am writing an application on Angular and I used the following Hyperledger Composer tutorial as a guide:
Hyperledger Composer Developer Tutorial
Everything went great and I got the app running and understood how to interact with the API and make the queries. What I'm facing now is that I need to configure Kafka consensus on my Hyperledger Fabric network. I followed the following tutorial to install my Fabric network and environment:
Hyperledger Composer Development Environment Tutorial
I'm trying to use this for configuring Kafka on my network but directories and files created using the above tutorial are different than the ones described on the following tutorial:
Bringing up a Kafka-based Ordering Service
So my question is, is it possible to configure Kafka-based ordering service on a network built using the Hyperledger Composer tutorials mentioned above? If yes, is there anyone out there who was done it successfully?
I have now finished my business network definition on the docker composer online playground with bluemix but cannot figure out how I can deploy my .bna file that I got to a docker container.
The situation is this. I am working on a project with others developing on Windows machines. I want to deploy the .bna file in a Dockerfile with the composer rest server so that they clone the repo, do a docker run and it works out configured. Can someone please link me an article of how to do that.
Thank you
Thomas
A Composer business network runs as chaincode on hyperledger fabric. The online playground provides a simulation of the composer runtime for you to get started with composer. But your goal will be to develop a business network and deploy it to a real hyperledger fabric environment. Composer website has lots of tutorials but I suggest you look at this one first
https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-single-org
It describes how to deploy a business network to a simple single org hyperledger fabric environment
I am new to Hyperledger, what i did yesterday is installed Oracle virtual box on my windows 10, followed by Ubuntu, followed by Composer prerequisites including Docker Engine, Compose and everything else. Finally followed the composer playground tutorial and deployed the network.
What i am not able to understand in the end is -
1. where the chaincode is and how can i query that and modify directly, if needed?
2. Go lang was a pre requisite to setup Hyperledger Fabric, but for Hyperledger Composer, it was not mandatory, I am still confused if Hyperledger Fabric (the real blockchain) is also setup on my machine or it is just some simulated environment something?
thanks in advance for your answers.
I've been investigating Hyperledger Fabric composer myself too, hope this answers your questions:
Hyperledger composer is built ontop of the Hyperledger Fabric framework.
When developing with composer you are not producing chaincode, in essence, hyperledger composer is some very smart chaincode that can read and comprehend the model + transaction files. Composer is NOT a compiler, it does not take the business network definition files and produce chain code.
Again, as you are not producing chaincode Go is not required for development. Hyperledger fabric is indeed setup on your machine. It is a real Fabric on which composer is built upon.
Hope that helps, I'm happy to clarify anything further if you need.
When you installed the dev environment for Hyperledger Composer, you installed (in VirtualBox) a HyperLedgerFabric V1 network with multiple nodes. So, yes, you do have a 'real' blockchain set up on your system. The transaction code that you write in JavaScript is your chaincode. HyperLedger Composer uses (today) a service called DukTape to enable your javascript-written transactions to run in the Go chaincode environment.
The chaincode in the default installation is in the lib folder inside the network folder. The file, in the default installation is sample.js, which is directly associated with the sample.cto file in your network\models folder. The cto file defines your assets, events and transactions using an Object-Oriented class kind of notation. The class name for a transaction is identical to the function name in the sample.js file.
I want to use my local hyperledger composer Playground to make transactions to my Business Network created and deployed by Composer commands on my local Fabric.
But Hyperledger Composer Playground deploy only on the network called :
org-acme-biznet
Can I change this and deploy or load into Playground my bussines-network?
This limitation has been removed in version 0.12.0. Please upgrade to v0.12.0 or higher and you can connect to any deployed business network using the new ID Card feature.
Video here:
https://www.youtube.com/watch?v=VTX-9VyO6OU
I'm still a beginner and am working on a project. I have done the getting started from the fabric docs but I don't know how exactly I am supposed to deploy it to a network so that it runs on multiple peers.
After creating the fabric, I want to deploy a hyperledger composer model on it. I've completed the dev guide from the composer docs. So, I wanted to ask whether the process would be any different from deploying to a fabric with a single peer.
If you have followed the Composer Developer Tutorial:
https://hyperledger.github.io/composer/tutorials/developer-guide.html
The you have installed a Fabric (currently at v0.8), created a Composer business network definition and deployed it to a channel on your Fabric development instance.
The process from a development perspective is identical, regardless of how many peers you have.