Since I struggle to install the Hyperledger Fabric and Composer development environments locally on my Windows 10 machine I would like to know if it's possible to deploy a .bna file imported from the online Playground to the IBM Cloud or if I need the entire local installation.
I didn't find recent information about this but it appears that it was not possible on february 2017 but it may have changed.
If you have a IBM bluemix account, you can follow this instruction:
Deploying Hyperledger Composer Business Network to IBM Blockchain Platform Enterprise Plan on IBM Cloud. https://ibm-blockchain.github.io/platform-deployment/
a .bna file can only be deployed on a 'running' hyperledger-composer, may it be local or the online playground.
if you want to us it locally, here are the complete installation steps(with prerequisites).
after that, you can deploy your exported .bna file locally.
If you want to deploy it locally, then you have no option but to do all the above installations!
Hope this helps you!
Related
Above is my hosting Azure app service environment where I am deploying SuiteCRM files.
I kindly need help on how to change default directory from “/” to “/public/” and also how to enable folder permissions as per installation instructions in the documentation here. The documentation doesn't discuss cloud installation and particularly Azure app service.
Thank you in advance.
I am trying to set up a rest API that is connected to an IBM blockchain resource. I have developed a model file, logic file, and acl file.
I have it all packed up in a nice tidy .BNA, and now i would like to deploy it to a channel of my IBM cloud blockchain 2.0 resource, running on a free kubernetes cluster.
Everything on the cloud blockchain resource is set up perfectly, and all orgs, peers, orderers, msps, and CAs are set up correctly. The channel is set up properly, and has nodes and an MSP connected. I have all the admin cred .jsons
The channel only accepts smart contract files, so I tried repackaging the files (logic.js, permissions.acl, and model.cto) by putting them in a contract folder, and using the IBM Blockchain vsCode plugin to package them as a smart contract, but trying to install on the IBM cloud crashes the browser.
I am thinking maybe I have to remote connect into the IBM kubernetes cluster that the blockchain resource is sitting on, and use the hyperledger composer CLI to install the .BNA
Seems very unintuitive, but thats the one thing I can think to try while I wait for this question to get answered.
I expected to just be able to install the .BNA as a smart contract, like a .cds.
In August 2018, IBM announced that we are no longer investing in Hyperledger Composer, and instead focusing 100% on Hyperledger Fabric. As a result, IBM Blockchain Platform v2.0 will not provide any support or tooling around Hyperledger Composer.
The good news is that we've significantly invested in the programming model (APIs and SDKs) used to write smart contracts and applications in Fabric v1.4, and we've also released some great developer tooling in the form of an extension for Visual Studio Code: https://marketplace.visualstudio.com/items?itemName=IBMBlockchain.ibm-blockchain-platform
The extension offers an extensive set of capabilities for writing smart contracts - with tooling for creating new projects, packaging them, deploying them, testing them, and debugging them - all from within one of the most popular IDEs around.
To get started - just install Visual Studio Code, and then the IBM Blockchain Platform extension (there are a few prereqs, check the README first). After that, you will be presented with a homepage that links you to tutorials and samples to help you get started.
For the first one, I can't really suggest a solution. At best, try installing and using the composer CLI and the latest version to make the bna file. Composer playground isn't maintained as well imo.
For the second part, in the connection.json file and docker there will be a bunch of IP addresses that look something like localhost:7040 and so on for the CA, orderer, org and peer. You will need to replace these using the IPs given by IBM. The examples on github that demonstrate integration are to do with nodejs SDK and not composer, however you can refer to https://github.com/IBM-Blockchain/vehicle-manufacture to get the idea.
This link is the only I could find for Hyperledger Composer and IBM platform.
(comments were getting too long to fit)
I am trying to deploy a BNA file on the IBM bluemix blockchain service. I have obtained the BNA file from the composer playground and i could not find a way to push that file on bluemix blockchain service. I have tried this tutorial but they are trying to make a chaincode and then deploying it on the blockchain service of bluemix. Why do i have to create a chaincode for deploying? can't i just push the models and javascript transaction processor functions and then use it via a REST API from the bluemix blockchain service. A step by step process for deploying the BNA file(obtained from composer playground) on the bluemix blockchain service would be much appreciated. Regards
The link you provide is for Go Lang chaincode, not a Composer Business Network (BNA). I would suggest the following link, Fabric composer integration with Bluemix blockchain service.
You're supposed to deploy a chaincode, to IBM-Blockchain, not a .bna file. To link your .bna file with the deployed code, you'd need to download the connections settings of your blockchain (which can be found at Overview/Connection Profile) and put it at the same directory of your .bna file.
The image below says where you can find the connections settings:
If I were to setup IBM Bluemix local, what are the operating systems that can support the Bluemix software?
Been trying to look for answers in the internet but always end up frustrated because I can't find any answer. Even Bluemix site did not mention what is the OS requirement in setting up Bluemix.
Bluemix Local is not a software product that you can install in your own operating system. It runs in your environment but it is still a subscription.
The Bluemix Local install is only performed by IBM and it is an automated deployment of many virtual servers. It is also a managed offering, meaning that you don't have access to the operating system on those virtual machines. All the maintenance tasks are executed by IBM through a secure connection and a mechanism called Relay.
I guess you probably saw this link before, but the infrastructure requirements are described here: https://console.ng.bluemix.net/docs/local/index.html#localinfra
I think you may need Bluemix Support team to help you build the Bluemix local environment, Bluemix local is a cloud platform as a service that need to build on your infrastructure as a service.
Can Bluemix environment with Liberty be replicated on developer laptops for offline development? Will I be able to run Bluemix local with Openstack on a quad core i5?
You can run Cloud Foundry in a VM on your laptop using bosh-lite. You could also install the open source Liberty buildpack into this local CF with the buildpack dependencies cached giving you an environment that could work offline.
The Bluemix services will not be available to you though, if you are offline, so the answer really depends on what services you need. You could reasonably set up some kind of local database but many of the services would just be unavailable.
I am not sure what exact your requirement is. IBM Liberty profile can be setup with Eclipse and you can create a server in local to test your java/JEE code. This is very simple, you need to install liberty plugin in Eclipse and create a server. See documentations in IBM web site.
See this url if it helps.. you can integrate BlueMix server to your Ecplise IDE
https://console.ng.bluemix.net/docs/manageapps/eclipsetools/eclipsetools.html