Comments (8)
@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.
The problem is that fabric-ca does not have an arm64 build on dockerhub and the make docker
command fails
from trade-network.
@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.
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.
I have created this pull request: #8
from trade-network.
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.
@JoshuaMulliken Luc's PR is merged to master. Can you confirm it works on your system, and close this issue?
from trade-network.
It is tested and working! Thank you!
from trade-network.
Related Issues (13)
- Unable to establish Trade network - Chapter 4 HOT 4
- Unable to establish Trade network - Chapter 4
- reset option not recognized by trade.sh script HOT 3
- Chapter 4 - utils directory is referenced as scripts directory HOT 3
- Channels not shown HOT 6
- "Client sent an HTTP request to an HTTPS server." HOT 1
- Error connecting to environment Trade work HOT 2
- Error connecting to Trade Network HOT 2
- Error in Mac Book Pro with M1 when deploying a contract HOT 8
- M1 MacBook - unable to "make docker" when preparing the network (chapter 4, page 129) HOT 2
- Unable to see the functions of a smart contract after deploying (on VS code) HOT 19
- Windows Support HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trade-network.