1/13/2023 0 Comments Bitmessage echo testDocker Compose allows you to manage and deploy a collection of Docker containers. If you haven’t used it before install the software and run through the initial tutorial here. There are a lot of videos and tutorials here, if you’ve never programmed in Go take a short detour and run through a couple of the tutorials.ĭocker and Docker Compose – Docker is a standards-based platform for packaging and running applications. Go – Go is a programming language developed by Google to deal with some of the application problems they have to deal with on a day-to-day basis – large scale applications, massive concurrency, etc. Setup your Environmentįirst, go ahead and download and install the dependencies: I’m not going to repeat everything in the above post, but I’ll try to explain what’s going on. readthedocs.io/en/latest/ asset_setup.html IBM has published a demo that runs a local test network and posts some transactions, so it’s a good place to start: As a developer I like to find some code and dive in. There is a lot of documentation available, and it’s hard to know where to start. Hyperledger Fabric is IBM’s entry into the growing blockchain market. And I’ll talk about it in more detail in a future blog.Īuthor Ian Posted on ApApCategories Blockchain, Hyperledger Fabric Getting Started with Hyperledger Part 1 – WTF is Hyperledger Fabric? What’s Next? Contribute to the Hyperledger Project You can read up on how to contribute, here. You should now have Docker images for the peer, order and ca containers (as well as a whole collection of other images created by the build and unit test processes). You can also build the CA image as follows: # clean the local repoĬd $GOPATH/src//hyperledger/fabric-ca (This will be the subject of a more detailed future blog.) Next run Behave (behaviour-driven development framework in Python): # run behave (For me the test run for awhile and then start to fail, seems like a stability issue more than anything else.) While the unit tests are running open another command window and run “docker ps”, you will see docker containers running as the unit tests execute. You should have a few Docker images, but nothing running yet.Īt this point you can run the unit tests, this takes awhile so make yourself a coffee and put your feet up: # run the unit tests Next build the docker images (peer and orderer): # build the docker images I’ll talk about this some more in a later blog. Since this takes awhile (the first time around it has to download some base images) you can take a look at the source code while you wait – the top-level code is in the peer and orderer packages, and shared code is in common, core, etc. Just google the error message and stacktrace will tell you what to do! If you get any errors you may have missed a dependency. There are several steps to build and test the docker images – first compile the code for the peer and orderer processes: # compile the peer and orderer processes You can just run a “make dist-clean all” and it will do everything, but let’s take it step by step.įirst do a “dist-clean” to make sure your workspace is clean and the pre-requisites are all there: # clean the local repoĬd $GOPATH/src//hyperledger/fabric You can now build the base Fabric docker images. Git clone you take a look at the Gerrit site you can see a list of the other Hyperledger projects, including the SDK’s, base images, etc.) Git clone & scp -p -P 29418 fabric/.git/hooks/ Now checkout the following repositories (replace “gerritid” with your own id): # check out the fabric repo Now, assuming you have a Linux Foundation ID, you can check out the code as follows:įirst of all make sure you are in your “Go” source tree: # create directory to checkout Hyperledger code However the blog is still a good read.) Checkout and Compile Code (There is also a good blog post here on IBM’s Community Blog, however it’s a bit dated and the pre-req setup references old versions. You will also need to install all the pre-requisites on your local (or on your developer VM), this process is described here. The process to do this is described here. The source code is managed on “ Gerrit“, and you can checkout the code from the Git repo, but if you want to be a “committer” and be able to contribute to Fabric development, so will need to setup a Linux Foundation ID and check out the code under this ID. Setup Development Environmentįirst of all there are a couple of pre-requisites: I wrote a post describing how to get a sample HyperLedger Fabric demo up and running, but I generally like to work from first principles, so in this post I am going to describe how to checkout the source for the Hyperledger Fabic core components and build the docker images from scratch.
0 Comments
Leave a Reply. |