Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fabric-ca version in CLI project scaffolding #473

Open
sentientforest opened this issue Dec 18, 2024 · 0 comments
Open

Update fabric-ca version in CLI project scaffolding #473

sentientforest opened this issue Dec 18, 2024 · 0 comments

Comments

@sentientforest
Copy link
Contributor

Currently, when running galachain init <project name>, to CLI will include a post-generate hook to modify the fabric-ca version:

perl -i -pe 's/_CA_VERSION=1.5.0/_CA_VERSION=1.5.5/g' "$target_env"

perl -i -pe 's/_CA_VERSION=1.5.0/_CA_VERSION=1.5.5/g' "$target_env"

I would like us to update this to at least version 1.5.6, because that is the first version of fabric-ca that provides a linux/arm64 image in docker hub:

https://hub.docker.com/r/hyperledger/fabric-ca/tags

1.5.5 only provides linux/amd64, beginning with 1.5.6 builds for both linux/amd64 and linux/arm64 are available. Currently, this means to develop our SDK on a linux/arm64 machine developers need to build the Fabric CA image manually, or manually tag version 1.5.6 as version 1.5.5.

Supporting Linux ARM VMs will be useful in streamlining the onboarding of new developers, some of whom may prefer to use a Linux VM on Apple Silicon, or may be using Linux on native ARM 64 hardware. And in the near future, potentially using Windows 11 on Arm-based PCs.

Given we appear to be using fablo version 2.0.0, I don't believe the above line will match the Fabric CA_VERSION string:

https://github.com/hyperledger-labs/fablo/blob/2.0.0/src/extend-config/extendGlobal.ts#L28

With 2.0.0, fablo appears to use Fabric CA version 1.5.5 by default.

I suspect changing the above line in our SDK to the following would set the Fabric CA version to 1.5.6 on galachain init:

perl -i -pe 's/_CA_VERSION=1.5.5/_CA_VERSION=1.5.6/g' "$target_env"

It would also be useful to add a section to our documentation explaining how to set environment variables that leverage fablo's built-in configuration options, in order to override these defaults in a local dev environment as needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant