How can I change the version on docker images downloaded by hurley when running npm run env:start ?
I would like to ask hurley to download v 2.2.0 but it keeps downlaoding v1.4.0 ... I tried to change in docker-compose.yaml and other config files, I ask docker to remove all existing images but no way ....
According to readme file Hurley supports Hyperledger 1.4 networks. I don't think forcing the download of version 2.0 would be enough since there are major changes between the two versions.
Related
I just started learning HyperLedger Fabric and was trying to deploy a chaincode written in Java to the test-network in fabric-samples, with the latest version.
I looked into the deployCC.sh shipped with fabric-samples and see it runs ./gradlew installDist locally, then package the build/install/$CC_NAME path, which contains all compiled jar files.
However, I see in this script and this tutorial that fabric expects you to upload the source code and it will run ./gradlew build shadowJar -x test on the uploaded source code and generate a fat shadowJar that contains everything from both my source and the dependencies remotely.
I am a bit confused right now. Do both uploading compiled jars and source code work? If both work, which one should I choose when deploying to a production network?
Thanks for the attention and help!
I am not sure on the exact instructions to install Hono 1.1.1 locally. Following the documentation , I was able to build the project with maven but I am not sure on how to proceed.
I was using version 0.9 before in which I managed to run Hono using docker swarm by running the swarm_deploy.sh script that was located in the deploy folder after building the project with maven. Currently in Hono 1.1.1 in the deploy folder we have services.sh instead of swarm_deploy.sh.
I would like to know, how could I run the docker swarm as it was in version 0.9? Are there any major drawbacks from this approach?
Note: I am looking for a simple way to install Hono locally as its a small experimental project and not aiming at a full scalable version yet such as using Kubernetes.
Sorry, but we no longer support deployment to plain Docker Swarm. You shouldn't have any issues installing Hono 1.1.1 using the Helm chart to a local minikube or kind (single node) cluster, though. There is no big difference in resource consumption compared to plain Docker Swarm, in particular if you are using kind.
Using this approach there also is no need to compile Hono from source. Just follow the Hono chart's README.
Following 2 links to setup Hyperledger Fabric 1.0 in system.
First link Hyperledger-fabric setup
After following commands
cd $GOPATH/src/github.com/hyperledger/fabric/devenv
vagrant up
vagrant ssh
Followed hypeledger latest setup docs
After using
cd $GOPATH/src/github.com/hyperledger/fabric
make dist-clean all
An error occured...
github.com/hyperledger/fabric/vendor/github.com/mattn/go-sqlite3 /usr/bin/ld: cannot find -lrocksdb collect2: error: ld returned 1 exit
status Makefile:137: recipe for target 'build/bin/peer' failed make:
*** [build/bin/peer] Error 2
On Left side my vagrant is running and right side is my Hyperledger Fabric 1.0 Setup command make dist-clean all
To me this seems to be problem of rocksdb, how can I resolve this?
Hyperledger Fabric 1.0 can be installed without having to build from source. The project publishes stable Docker images and binaries for each release. This may be a better approach to installing Fabric and its dependencies.
However, if you want to build from source, note that Vagrant is no longer needed. The build should be capable of running natively on most platforms (Mac, Windows and Ubuntu).
You will need the same prerequisites as for the Getting Started approach above - Docker (preferably the latest release), Go (1.9.x), Python 2.7 and Node 6.9.x (note that we do not yet support Node 7.x).
Occasionally, it has been observed that a fresh build (make all) from scratch may occasionally fail. If so, try running (make all) again.
As for the rocksdb error, Fabric no longer has a dependency on rocksdb and uses leveldb instead. It is entirely likely that because the vagrant environment gets little use of late, that it is not current.
I fond solution in one git hub link.
One can try to resolve this issue by using following commands-
apt-get install librocksdb-dev
apt-get install libsnappy-dev
apt-get install libbz2-dev
After this rockdb error should not be there. Will post more if found any other error and there solutions too.
I have windows 7 machine and RHEL 6.0.
Can we install hyperledger fabric on Windowa 7 and RHEL 6.0 without using vagrant and docker.? If yea, please describe the steps.
Hyperledger Fabric does not deliver a complete set of binaries for all operating systems. There are native binaries for the various tools (configtxgen, cryptogen, configtxlator and peer) available for Windows, MacOSX, and Linux (for X86, ppc and s390 architectures). There are published Docker images for Ubuntu. Building Centos/RHEL images or binaries should be a straight-forward process, but is not presently a tested/supported configuration. The Node and Java SDKs should run just about anywhere.
It should also be noted that you cannot run without Docker, as chaincode is run in independent containers, managed by the peer. Hence, trying to avoid use of Docker is really a forgone conclusion - you cannot.
No.
Here are two walk throughs on how to do it.
https://developer.ibm.com/opentech/2016/07/21/running-hyperledger-fabric-natively-on-windows/
http://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html
Hyperledger Fabric 1.0.0 requires RHEL 7.3 or CentOS 7.3, gRPC has a dependency on the latest and greatest gnu C libraries.
Will not work on RHEL 6.0 !
I would like to setup Hyperledger Fabric on an Ubuntu machine with docker (docker-compose up). Is it possible to run the chaincode and nodejs code from another system (Mac system), as I already have Go and nodejs ready on the Mac.
Please help me with this query.
you can use same environment in different systems. This is the main reason to choose docker and docker-compose.
Just follow steps. Please confirm the version of tools.
To run on another system, you only have to simply build the image of your current hyperledger package on current system(Ubuntu). and use this image on another system(MAC).
Yes you can totally do that. Use this example: https://github.com/hyperledger/fabric-sdk-node/tree/master/examples/balance-transfer
Run docker-compose in your ubuntu machine. Update the app config.json and /app/network-config.json with ubuntu machine IP and make sure required ports are opened.
Run app on your mac.