{"id":19907418,"url":"https://github.com/arsulegai/fabric-cc-external-builder","last_synced_at":"2026-05-09T20:17:29.361Z","repository":{"id":72664357,"uuid":"396296097","full_name":"arsulegai/fabric-cc-external-builder","owner":"arsulegai","description":"An external builder for Hyperledger Fabric chaincode in Go.","archived":false,"fork":false,"pushed_at":"2021-08-21T20:10:07.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T08:13:09.609Z","etag":null,"topics":["chaincode","chaincode-builder","chaincode-installation","hyperledger","hyperledger-fabric","hyperledgerfabric"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arsulegai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-15T09:30:54.000Z","updated_at":"2024-07-29T17:19:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f5b2115-0453-4111-984d-e943e07423e0","html_url":"https://github.com/arsulegai/fabric-cc-external-builder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arsulegai/fabric-cc-external-builder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsulegai%2Ffabric-cc-external-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsulegai%2Ffabric-cc-external-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsulegai%2Ffabric-cc-external-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsulegai%2Ffabric-cc-external-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arsulegai","download_url":"https://codeload.github.com/arsulegai/fabric-cc-external-builder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsulegai%2Ffabric-cc-external-builder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-24T02:00:07.096Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chaincode","chaincode-builder","chaincode-installation","hyperledger","hyperledger-fabric","hyperledgerfabric"],"created_at":"2024-11-12T20:40:48.097Z","updated_at":"2025-11-25T01:10:44.745Z","avatar_url":"https://github.com/arsulegai.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fabric Chaincode External Builder\n\nThe external builder is used to run the chaincode as a service. This\nchaincode builder is written in Go. The builder supports reading the\nchaincode TLS parameters at runtime. Consumes them through `peer`'s\nchaincode builder parameters configured in the `core.yaml` file.\n\nThe example here illustrates how to make use of external builder pattern\nto run chaincode as a service. The same concept can be used to run chaincode\nbrought up by the peer node. A custom base image can be used for chaincode\nbuilding.\n\n## Build \u0026 Run\n\nA [Makefile](./Makefile) is provided to ease up the build option. In\norder to run these external builder binaries, detailed instructions are\ngiven later in this document.\n\nRun the following command to generate the required artefact that can be run\nwith a Hyperledger Fabric peer node alpine image. \n\n```shell\nmake build\n```\n\nIn case you would like to copy these artefacts to the peer container.\nBuild these for alpine environment. You can do that by\n\n```shell\nmake server-build-alpine\n```\n\n## Hyperledger Fabric Documentation\n\nRefer to the section\n[External Builder and Launcher](https://hyperledger-fabric.readthedocs.io/en/release-2.2/cc_launcher.html#external-builder-and-launcher-api)\nin the Hyperledger Fabric documentation.\n\nRead the reference documentation in\n[chaincode builder and launcher details](./docs/builder.md).\n\n## Environment Variables\n\n### Chaincode as a Server\n\nThese environment variables are to be set in the peer's process environment.\nPass them through to the builder in the `core.yaml` configuration.\n\n| ENV Variable | Purpose |\n|:--- |:--- |\n| CORE_PEER_CC_BUILDER_LOG_LEVEL | Log level for the builder |\n| CORE_CHAINCODE_ADDRESS | Chaincode server's address |\n| CORE_CHAINCODE_TIMEOUT | Timeout parameter |\n| CORE_CHAINCODE_TLS_REQUIRED | If TLS is required for chaincode connection (`true` or `false` ) |\n| CORE_CHAINCODE_ROOT_CERT | Which Chaincode server to trust |\n| CORE_CHAINCODE_CLIENT_AUTH_REQUIRED | Is mTLS enabled (`true` or `false`) |\n| CORE_CHAINCODE_TLS_CLIENT_KEY | Peer's client key if mTLS is enabled |\n| CORE_CHAINCODE_TLS_CLIENT_CERT | Peer's Client certificate if mTLS is enabled |\n\n## Logging\n\nChaincode server builder logs are captured by the peer process. Remember to\nprint any of your log to the `STDERR` pipe.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farsulegai%2Ffabric-cc-external-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farsulegai%2Ffabric-cc-external-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farsulegai%2Ffabric-cc-external-builder/lists"}