GalaChain / GalaChain/sdk

Add Support for Deploying Chaincode from Local Docker Images

Open
#547 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
138
Forks
44
Avg merge
1d 16h
Merged PRs (30d)
22

Description

The current galachain deploy command only supports deploying chaincode using published image tags (e.g., from DockerHub or a registry), as seen in [src/commands/deploy.ts](https://github.com/GalaChain/sdk/blob/main/chain-cli/src/commands/deploy.ts). This can be limiting for local development workflows where developers test chaincode iterations locally before publishing.

## Proposal: Enhance the deploy command to optionally accept a local Docker image reference (e.g., by image ID or local image name). This could be gated by a flag like --local.

## Suggested Changes:
Extend CLI args parsing to support a --local flag.

Update Docker interaction logic to use docker save or similar tools to handle local image deployment when --local is set.

Validate that the image exists locally before attempting deployment.

Update the README with usage examples for local image deployment.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.