git clone https://github.com/hyperledger/fabric-samples.git
cd chaincode-docker-devmode
docker-compose -f docker-compose-simple.yaml up
install command line tools
curl -sSL https://goo.gl/Q3YRTi | bash
export PATH=<path to download location>/bin:$PATH
build chaincode
cd $CHAINCODE_DIR
go get -u --tags nopkcs11 github.com/hyperledger/fabric/core/chaincode/shim
go get -u --tags nopkcs11 github.com/hyperledger/fabric/protos/peer
go get -u --tags nopkcs11 github.com/op/go-logging
go build --tags nopkcs11