Getting Contract Logs from IBM Blockchain Platform

Getting Contract Logs from IBM Blockchain Platform

The Problem: with IBM Blockchain Platform running in a Kubernetes cluster how do you get the logs to find out what happened with your contract? Setup This is command line stuff, so make sure that you have the kubectl command installed and it’s able to access the K8S Cluster. Or alternatively use the ‘web cli’.. your choice. Access either from the ‘Actions…’ menu on the cluster summary page. The steps What is the k8s namespace? Within K8S, each IBP instance…

Read More Read More

Early Access Coffee on the Blockchain

Early Access Coffee on the Blockchain

Supply chains are one great usecase for Blockchain and DLT; tracing coffee beans to be able to assert the provence of their origin is just one example. It’s also a very bad pun to bridge to Java (the language). Being a long time Java Developer (Java 1.1.3 anybody?) I’m pleased to be able to write this short guide to using Java with the Fabric Smart Contract programming model. The updated programming model was first delivered within Hyperledger Fabric in Node.js…

Read More Read More

Getting setup for development (CentOS)

Getting setup for development (CentOS)

At work we’ll often do ‘group testing’ sessions or ‘internal hackathons’. What struck me about the last one was that setting up your development environment can surprisingly tricky, especailly if it’s for a style of development or langage you don’t generally use. TL;DR: gist of commands What are we developing for? The setup we are going for here, is a Node.js and Java environment using VSCode – with a view to using the IBM Blockchain Platform extension for writing applications…

Read More Read More

Windows, Virtual Box, and CentOS

Windows, Virtual Box, and CentOS

My personal preference for developing is to use Windows 10 as my laptops main OS, but then run VirtualBox with Linux. Succiently this is because I like to have office style applications available, and as a general ‘just do stuff’ Windows does the job well Should something go wrong developing, it’s quite easy to through the VM away and start again. Or if you want to test a certain machine configuration. To date I’ve used Ubuntu as the Linux OS;…

Read More Read More

Oh git…

Oh git…

So this post is sort of just my list of useful git things – partly to save me from having to remember everything. Best introduction and workflow care of @jtonline All the files that you have changed in this commit

Make multi-persona demos fun and interactive!

Make multi-persona demos fun and interactive!

Last week an idea occurred to me – we have several demos that can be shown at conferences to customers etc. But a central feature is there have multiple web apps (each can shown in one tab of a browser). How could it be possible to make the transition from one persona to another more obvious – and interactive?? Demo-hats was born! Here’s the readme from the git repo. Why would I use this? You have a web application or…

Read More Read More

Hyperledger Composer – Logging

Hyperledger Composer – Logging

Hyperledger Composer – Logging Many years ago there was an insect that caught in a relay. Time has moved on, but the successor to that insect still can make itself known! Logging though is more than about just finding the diagnostics to help squash the specific code bugs. It can be used to see operational performance issues, spot configuration mistakes, and gaining confidence in how the code is working. How does Hyperledger Composer go about it’s logging then? Firstly a…

Read More Read More

Using custom dockerfiles for managing Hyperledger Composer Network Cards

Using custom dockerfiles for managing Hyperledger Composer Network Cards

Using Docker to help access Composer Cloud Wallets Within a cloud application, eg a nodejs app pushed to Cloud Foundary (other clouds are available) to access a Composer Smart Contract running on Hyperledger Fabric, then you need the ability to store the network cards in some location that’s not your laptop. Using the ‘Cloud wallets’ feature it’s quite easy to do this. You have the choice of S3, IBM Cloud Object Store, Cloudant, REDIS etc. To use one of these…

Read More Read More

Getting outside-in with docker-compose[r] networks

Getting outside-in with docker-compose[r] networks

  I had several docker containers spun up, all happily talking to each other on their own network. All happy for me to talk to them from the host Ubuntu system as well. Slight issue of when a configuration is exported from one of the docker containers, it was referring to the others by the domain it knew, example.com – not so great to use it from the host that knew it via localhost. Ah, I can use sed to…

Read More Read More

“Tell me and I forget, teach me and I may remember, involve me and I learn.”

“Tell me and I forget, teach me and I may remember, involve me and I learn.”

“Tell me and I forget, teach me and I may remember, involve me and I learn.” Benjamin_Franklin Often we do a ‘group QA’ session to validate the quality of Hyperledger Composer; we have QA scripts that we follow but also this gives the opportunity do some freestyle testing. This gives the opportunity to use the code for real, and also allows people to learn about parts of the product they haven’t worked on recently. This is good – but sometimes…

Read More Read More