From 49fbf4e581b7e831b2d1cc20d6de666a8da46e67 Mon Sep 17 00:00:00 2001 From: munapower Date: Tue, 14 Jan 2025 13:45:46 -0300 Subject: [PATCH] add playground nonsgx doc Signed-off-by: munapower --- docs/playground-nonsgx.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/playground-nonsgx.md b/docs/playground-nonsgx.md index e69de29bb..84f72c034 100644 --- a/docs/playground-nonsgx.md +++ b/docs/playground-nonsgx.md @@ -0,0 +1,23 @@ +In your `config.override.mk` set the following to variables: +```Makefile +FPC_CCENV_IMAGE=ubuntu:22.04 +ERCC_GOTAGS= +``` +This configuration sets a standard Ubuntu image as alternative to our `fabric-private-chaincode-ccenv` image and overrides the default build tags we use to build `ercc`. + +Next you can build `ercc` using the following command: +```bash +GOOS=linux make -C $FPC_PATH/ercc build docker +``` + +For building a chaincode, for instance `$FPC_PATH/samples/chaincode/kv-test-go`, just run: +```bash +GOOS=linux make -C $FPC_PATH/samples/chaincode/kv-test-go with_go docker +``` + +You can test your FPC chaincode easily with one of the [sample deployments](samples/deployment) tutorials. +We recommend to start with [the-simple-testing-network](samples/deployment/fabric-smart-client/the-simple-testing-network). + +Notes: +- On Mac use a recent version of bash (`brew install bash`). +- TODO more to come