Giter VIP home page Giter VIP logo

Comments (8)

VRamakrishna avatar VRamakrishna commented on July 23, 2024

@JoshuaMulliken Can you elaborate on how precisely the instructions do not work?

FYI, yes, the Fabric-CA is a mandatory requirement. I'm not sure which instructions you are referring to, but if you are talking about the cloning and building of the Fabric and Fabric-CA repos (make docker), those are optional (as is mentioned in the book). You can directly pull images from Docker Hub if they exist for your platform instead. To do this, you can directly jump to the trade network bash scripts. Of course, if those shell scripts don't run on your OS, they'll have to be adapted suitably.

@ldesrosi Can you help out or advise Joshua?

from trade-network.

SecKatie avatar SecKatie commented on July 23, 2024

The problem is that fabric-ca does not have an arm64 build on dockerhub and the make docker command fails

CleanShot 2021-02-18 at 00 22 06@2x

from trade-network.

ldesrosi avatar ldesrosi commented on July 23, 2024

@JoshuaMulliken a number of our components rely on fabric-ca being available to register and enrol identities.

Unfortunately, without the Hyperledger Fabric community supporting that architecture, it would be hazardous to attempt to make it work with arm64. Furthermore, just adding to the challenge, we do have access to an M1 Mac.

from trade-network.

SecKatie avatar SecKatie commented on July 23, 2024

Hey, I found a way to get the images running through the trade.sh script.

Docker on M1 supports the platform: linux/amd64 syntax in docker-compose so I was able to add a directive into the trade.sh if [[ "$OSTYPE" == "darwin"* ]] && [[ $(uname -m) == arm* ]]; then to detect if it is an arm mac and then it will load the new docker-compose files that include the platform directive. You can see this here: https://github.com/JoshuaMulliken/trade-network

from trade-network.

SecKatie avatar SecKatie commented on July 23, 2024

I have created this pull request: #8

from trade-network.

ldesrosi avatar ldesrosi commented on July 23, 2024

Hello @JoshuaMulliken ,

Thank you very much for the pull request. I ended up taking a slightly different approach and adding a PLATFORM variable to the docker-compose file. The .env file contains the default value linux/amd64 which works for Ubuntu, Mac Intel and Mac M1.

I wanted to avoid duplicating all of the YAML files as it would have made it hard to keep them in sync afterwards.
Once @VRamakrishna reviews PR #9, you should be able to provision the network without issue.

In testing, I also picked up an issue with Docker v3 and the UNIX socket used to talk to the underlying Docker Engine to deploy the chaincode container. It will also be fixed once the PR is reviewed and merged.

Let us know if you encounter further issues.

I will go ahead and close your PR, but we really appreciated you taking the time to submit the PR.

from trade-network.

VRamakrishna avatar VRamakrishna commented on July 23, 2024

@JoshuaMulliken Luc's PR is merged to master. Can you confirm it works on your system, and close this issue?

from trade-network.

SecKatie avatar SecKatie commented on July 23, 2024

It is tested and working! Thank you!

from trade-network.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.