hashgraph / guardian

The Guardian is an innovative open-source platform that streamlines the creation, management, and verification of digital environmental assets. It leverages a customizable Policy Workflow Engine and Web3 technology to ensure transparent and fraud-proof operations, making it a key tool for transforming sustainability practices and carbon markets.
Apache License 2.0
98 stars 127 forks source link

Docker compose not building successfully on macos #3158

Closed jaycoolslm closed 6 months ago

jaycoolslm commented 6 months ago

Problem description

I am trying to run the docker images using compose on my Mac Studio with local ipfs node and it is not working.

worker-service-1 interfacesmodulebuilder is failing with:

...
 => CACHED [worker-service-1 interfacesmodulebuilder 6/7] RUN yarn install                                                                                                                                         0.0s
 => ERROR [worker-service-1 interfacesmodulebuilder 7/7] RUN yarn pack                                                                                                                                             1.9s
------                                                                                                                                                                                                                  
 > [worker-service-1 interfacesmodulebuilder 7/7] RUN yarn pack:                                                                                                                                                        
#0 0.212 yarn pack v1.22.19                                                                                                                                                                                             
#0 0.225 $ npm run build                                                                                                                                                                                                
#0 0.372                                                                                                                                                                                                                
#0 0.372 > @guardian/interfaces@2.20.1 build
#0 0.372 > tsc
#0 0.372 
#0 1.759 node_modules/chokidar/types/index.d.ts(9,14): error TS2420: Class 'import("/usr/local/interfaces/node_modules/chokidar/types/index").FSWatcher' incorrectly implements interface 'import("fs").FSWatcher'.
#0 1.759   Type 'FSWatcher' is missing the following properties from type 'FSWatcher': ref, unref
#0 1.872 npm notice 
#0 1.872 npm notice New major version of npm available! 8.19.4 -> 10.4.0
#0 1.872 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.4.0>
#0 1.872 npm notice Run `npm install -g npm@10.4.0` to update!
#0 1.872 npm notice 
#0 1.890 error Command failed with exit code 2.
#0 1.890 info Visit https://yarnpkg.com/en/docs/cli/pack for documentation about this command.
------
failed to solve: process "/bin/sh -c yarn pack" did not complete successfully: exit code: 2

Step to reproduce

Steps to reproduce the behavior:

  1. clone repo
  2. add guardian env name e.g. "bioloop"
  3. configs/.env..guardian.system -> configs/.env.bioloop.guardian.system 4.HEDERA_NET="testnet" PREUSED_HEDERA_NET="mainnet"
  4. IPFS_PROVIDER="local" # 'web3storage' or 'local' IPFS_PUBLIC_GATEWAY='https://localhost:8080/ipfs/${cid}' IPFS_STORAGE_KEY="..." IPFS_STORAGE_PROOF="..." IPFS_NODE_ADDRESS="http://localhost:5001"
  5. docker compose up -d --build

Expected behavior

All images should successfully run

Screenshots

If applicable, add screenshots to help explain your problem.

justin-atwell commented 6 months ago

@dubgeis hackathon ticket.

jaycoolslm commented 6 months ago

same thing when trying to build with web3storage

MarcAntoineLebourgeois commented 6 months ago

same as well

luciamunozdev commented 6 months ago

same error

bbosch-d commented 6 months ago

Same error here on MacOS 14.1.2. Tried to build commit dd3b49 with web3storage/w3up