hyperledger / hyperledger/fabric-cli
Update lifecycle package command to support more types
- Dominant language
- Go
- Stars
- 25
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
It is possible to create external [builders and launchers](https://hyperledger-fabric.readthedocs.io/en/release-2.2/cc_launcher.html) for Fabric, however there is no easy way to package chaincode for those builders and launchers. For example, Fabric now includes a [chaincode as a service builder](https://hyperledger-fabric.readthedocs.io/en/release-2.4/whatsnew.html#chaincode-as-a-service-builder-delivered-with-fabric-peer-image), and [other builders and launchers are available](https://github.com/hyperledgendary/fabric-builder-k8s).
The current `fabric lifecycle package` command relies on positional parameters, so as part of this issue I would like to make improvements as follows...
```
Package a chaincode
Usage:
fabric lifecycle package [flags]
Flags:
-a, --archive string name of the output tgz file
-h, --help help for package
-i, --indexes string path containing state database index definitions for CouchDB
-l, --label string human-readable description of the package
-t, --type string the chaincode type (e.g. GOLANG, JAVA, NODE)
```
The packaging code currently depends on [fabric-sdk-go](https://github.com/hyperledger/fabric-sdk-go), however rather than update copies of packaging code from the Fabric `peer` command in that repo, I would like to either take a more up-to-date cut of the Fabric code, or investigate making use of the fabric-admin-sdk project instead... Hyperledger-TWGC/fabric-admin-sdk#15
Contributor guide
Assessment
This issue has not been assessed yet.