Add Fabric-X lifecycle commands - #799
Conversation
…trypoint Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
…se file isnated on one container Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
|
Hi, @umegbewe Id like to clarify a few things regarding this PR:
|
fabricxUp() {
fabricxStart() {
fabricxStop() {
fabricxDown() {Please use the same lifecycle names as the existing Docker scripts where possible The fabricx prefix is redundant inside |
|
@MaryamArif7 Good work just needs some refining
My bad feel free to add a fxconfig.yaml in this PR. Only after that PR has been merged
The network should be able to start without any namespaces. A namespace is needed before doing app-level submit/query work, but it should not be required just to bring up the orderer/committer stack. If Fabric-X itself later proves it cannot become healthy without a namespace, then we can revisit
Yes, we should have function files in fabric-X but not like classic fabric. I like this strcture: fabric-x-docker.sh
fabric-x/
docker-compose.yaml
config/
scripts/base-functions.sh
scripts/base-help.sh |
Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
…nds-generated.sh to main the consistentcy Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
Signed-off-by: MaryamArif7 <www.maryamarif28@gmail.com>
|
Implementation is complete, testing is still pending. |
fixes #791
What this does:
Wires up Fabric-X lifecycle commands (
up,start,stop,down,reset, plusnamespace list/namespace init) behind the existingfabloCLI, so a Fabric-X network can be controlled the same way classic Fabric ones already are.fabric-x-docker.sh— new generated script (template lives undersrc/setup-docker/templates/) that drivesdocker composeagainst the generated network, plus crypto/genesis generation and namespace setup viafxconfig.fablo.sh'sexecuteFabloCommand()andnetworkPrune()so it actually dispatches to the new script when present, same pattern used forfabric-docker.sh/fabric-k8s.sh.Command logic is based on the fabric-x-samples devnet Makefile, per the issue description.