To use the chaincode on Fabric, some pre-requisites have to be met. First of all, you should have Docker installed on your machine. Then:
- In a terminal, go to the root of the Obsidian project folder.
- Run the following command: curl -sSL http://bit.ly/2ysbOFE | bash -s 1.4.1 -s

This installs all the platform-specific binaries you need to run a Fabric network and places them in the bin sub-directory of the Obsidian project.
It also downloads all the required Docker images and places them in your local Docker registry, tagged as latest.
For detailed instructions, go to https://hyperledger-fabric.readthedocs.io/en/release-1.4/install.html.

To deploy and invoke the generated chaincode in a real Fabric environment, follow these steps:

Generate the chaincode following the compiler usage instructions above.

Go into the network-framework folder and run the command ./up.sh -s PATH_TO_CHAINCODE, where the path is from the root of the repository, i.e if the folder was generated with default settings, you simply specify the name of the folder (ex: StringContainer)

After you are done, run ./down.sh to kill and cleanup all Docker containers.

If you wish to upgrade the chaincode on the network without destroying and recreating the entire network, you can run ./upgrade.sh.
This command uses the same path to the chaincode that you originally uploaded, so there is no need to pass any arguments.