deploy BNA file on ibm bluemix blockchain service - ibm-cloud

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:

Related

Can't find Blockchain Cloud Foundry app

I followed the instructions on IoT Asset Tracking on a Hyperledger Blockchain . BUILD and DEPLOY finished successfully, but I can't find the composer-rest-server- app under Cloud Foundry Applications.
I can use the CF Blockchain services, enter the Monitor and open the Swagger UI. The question is, where can I find the application-specific APIs mentioned in the tutorial:
If everything deployed correctly, you can find the app in the IBM Cloud dashboard at https://console.bluemix.net. If you have many apps and services deployed, make sure to filter correctly or to be aware of paging.
If you suspect that something got wrong during build and deploy, go to the toolchain and check the logs. The toolchains can also be reached from the dashboard.

Deploy a Business Network Archive from online playground to IBM Cloud

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!

Error when try to instantiate chain code on Hyperledger channel on Bluemix

I have set up a blockchain network using Bluemix services. When I try to instantiate the deployed .bna file on my channel I get the following error:
Error: /opt/go/src/ibm-bcs-b05c71a3dc784daebd6dc064d552a7ac-test1-1.0 (from $GOROOT) /chaincode/input/src/ibm-bcs-b05c71a3dc784daebd6dc064d552a7ac-test1-1.0 (from $GOPATH) /opt/gopath/src/ibm-bcs-b05c71a3dc784daebd6dc064d552a7ac-test1-1.0 "
Can someone help me please?
A business network archive (bna) doesn't contain any chaincode, it is only the definition and implementation of that business network, so you cannot deploy a bna file and try to instantiate it through the ibm blockchain platform UI. In order to deploy a business network to the platform you need to follow this guide
https://ibm-blockchain.github.io/platform-deployment/

How to develop bluemix CAM

Is there any github source where IBM Cloud automation manager source code is there? Can I extend CAM's functionalities? Or should I extend terraform's capabilties instead?
IBM Cloud Automation Manager running on ICP platform has the ability to deploy bluemix templates built in. Use the "IBM Cloud" connection type to build your connection data, and then you can use the already included.
For details on the connection see https://www.ibm.com/support/knowledgecenter/SS2L37_2.1.0.1/cam_creating_ibm_cloud_connection.html
For details on what the IBM Cloud terraform provider can do check it's github here:
https://github.com/IBM-Cloud/terraform-provider-ibm

Can Bluemix environment be replicated on developer laptops?

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