5

I've finished the Hyperledger Composer tutorial and successfully deployed/run it locally (with composer-rest-server).

Now I want to deploy it (eg. Google Cloud) so that I can show it to external people, but I feel confused about what to do now and haven't been able to find any good tutorial for this "next step".

Since composer is running on fabric, I guess I need to get fabric going - but that consists of many docker containers running. So I presume I should collect all that in a stackfile or similar (right?).

Question: How would you go about moving forward beyond deploying/running hyperledger fabric/composer locally and deploying it somewhere? (I understand that there are many ways of doing this but I would appreciate some general guidance as well as some concrete example)

Einar
  • 133
  • 1
  • 8
  • Yes, you'll need a running fabric if you want to interact with it remotely. (You could install it locally in your Cloud instance - the Dev Fabric you tested 'locally' could be deployed in the Cloud and installed as a local install (eg. using a Linux Ubuntu environment etc). I've done this in Skytap cloud for example. If you want to see examples of standing up your own network/cluster setup in the Cloud etc you could look at these as reference : https://medium.com/think-consortium-on-blockchain/building-a-permissioned-blockchain-pt-1-8ebab9e68582 and https://ibm-blockchain.github.io/setup/ – Paul O'Mahony Oct 10 '17 at 19:20

3 Answers3

3

If you are not concerned with scaling to a more robust deployment, and just want to host a small development environment on your favorite cloud platform, you can provision a VM that is configured similarly to the vagrant devenv that the team developing Fabric used before the availability of native support for Docker on Mac and Windows. Then you can simply use Docker Compose to spin up the fabric-samples/first-network tutorial network. It would be suitable for developing in the cloud.

If you are looking for a framework to deploy to various cloud platforms, you might look into use of the Cello Ansible driver. It has been tested against a few of the cloud providers.

christo4ferris
  • 4,039
  • 1
  • 17
  • 30
1

Here is one path. Sign up for an IBM Bluemix account. You get one free cluster to play with. Follow the instructions here

https://ibm-blockchain.github.io/ for a cloud sandbox including the composer rest server.

You end up installing the .bna file using the installed playground.

I used the IBM cloud foundry template to create a simple Node site with a single page hitting the API exposed in the cluster. If you just want to show the blockchain you can just use the explore page that the Rest server exposes or use something like Postman to hit the API.

Note that they do not mention. The command line tools require Python 2.6 so I had to downgrade from 3.

David Berger
  • 766
  • 5
  • 10
  • I can't create a Free cluster. I got that problem Unable to create cluster. Lite clusters cannot be created in this region in a trial account. https://console.bluemix.net/docs/pricing/billable.html#upgradetopayg – Phan Hoàng Nhân Dec 19 '17 at 02:58
1

IBM Bluemix offers the following with respect to Blockchain:

Do go through the links and try it out.

Hope this helps.

kashyapa
  • 1,606
  • 1
  • 10
  • 13