{"id":37112327,"url":"https://github.com/holzeis/lifecycle","last_synced_at":"2026-01-14T13:17:29.270Z","repository":{"id":57598281,"uuid":"247494798","full_name":"holzeis/lifecycle","owner":"holzeis","description":null,"archived":false,"fork":false,"pushed_at":"2020-04-14T08:20:08.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T12:00:09.387Z","etag":null,"topics":["chaincode","chaincode-installation","chaincode-lifecycle"],"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/holzeis.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}},"created_at":"2020-03-15T15:31:30.000Z","updated_at":"2020-08-12T13:07:44.000Z","dependencies_parsed_at":"2022-08-29T23:51:39.013Z","dependency_job_id":null,"html_url":"https://github.com/holzeis/lifecycle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/holzeis/lifecycle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holzeis%2Flifecycle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holzeis%2Flifecycle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holzeis%2Flifecycle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holzeis%2Flifecycle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holzeis","download_url":"https://codeload.github.com/holzeis/lifecycle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holzeis%2Flifecycle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-installation","chaincode-lifecycle"],"created_at":"2026-01-14T13:17:28.607Z","updated_at":"2026-01-14T13:17:29.254Z","avatar_url":"https://github.com/holzeis.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chaincode lifecycle\n\nWraps the peer [chaincode lifecycle](https://hyperledger-fabric.readthedocs.io/en/release-2.0/commands/peerlifecycle.html) cli api into an http server.\n\n* Supports chaincode installations as an external service.\n* Coordinates chaincode installations within the business network.\n* Provides an api to query the currently installed / committed ccid.\n\n## API\n\nThe following lists the accessible endpoints exposed by the lifecycle service.\n\n### POST /{channel}/deploy/{chaincode}\n\nDeploys a chaincode to the network using the discovery service to find nodes participating in the channel. A connection and metadata json is created based on the given parameters. *Please note, that the chaincode as external service is expected to be accessible on {chaincode}:7052.*\n\n### GET /install/{chaincode}\n\nInstalls a chaincode as external service to the given peer\n\n### GET /{channel}/approve/{chaincode}/{sequence}/{ccid}\n\nApproves a chaincode installation for the given channel, chaincode, sequence number and ccid (package id).\n\n### GET /{channel}/installed/{chaincode}\n\nReturns the installed and committed chaincode on the given channel. Returns 404 if the chaincode has not been installed on that channel.\n\n### GET /{channel}/joined\n\nReturns 200 if the peer has joined the given channel and 404 if not.\n\n## Used environment variables\n\nThe following environment variables need to be set in order for the lifecycle service to work properly.\n\n|Environment Variable|Description|\n|--------------------|-----------|\n|FABRIC_LOGGING_SPEC|sets the log level e.g. INFO|\n|CORE_PEER_LOCALMSPID|the msp of the organization|\n|ORDERER_ADDRESS|the address of the orderer|\n|ORDERER_CA|the ca of the orderer for tls communication|\n|CORE_PEER_ADDRESS|the address of the peer|\n|CORE_PEER_TLS_ENABLED|whether or not tls should be used (needs to be true)|\n|CORE_PEER_MSPCONFIGPATH|the path to the users msp config|\n|CORE_PEER_TLS_CERT_FILE|the path to the peers cert file|\n|CORE_PEER_TLS_ROOTCERT_FILE|the path to the peers root cert file|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholzeis%2Flifecycle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholzeis%2Flifecycle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholzeis%2Flifecycle/lists"}