Open sifnoc opened 2 years ago
Alternative way
use built images instead testnet image coordinator/wallet image
edit compose/docker-compose.dev.yml
services:
testnet:
- build:
- context: ../packages/contracts/
- dockerfile: ../../dockerfiles/Contract.dockerfile
+ image: sifnoc/zkopru_testnet:main-b50e4c
ports:
- "5000:5000"
command: ganache-cli --db=/data -i 20200406 -p 5000 --deterministic -b 14 --host 0.0.0.0
coordinator:
- build:
- context: ../
- dockerfile: ./dockerfiles/Cli.dockerfile
+ image: sifnoc/zkopru_node:main-b50e4c
ports:
- "8888:8888"
- "1234:1234"
@@ -23,9 +19,7 @@ services:
- '../packages:/proj/packages'
command: sh -c "sleep 5s && gotty -w --port 1234 node /proj/packages/cli/dist/apps/coordinator/cli.js --config /proj/packages/cli/coordinator.dev.json"
wallet:
- build:
- context: ../
- dockerfile: ./dockerfiles/Cli.dockerfile
+ image: sifnoc/zkopru_node:main-b50e4c
or you can get docker-compose.dev.yml
yarn develop
will work with this compose file and images
it's working after applied the pre-built image and edited compose/docker-compose.dev.yml
file
Describe the bug This issue reported by Kimi Wu current main branch https://github.com/zkopru-network/zkopru/commit/b50e4cc0d046f58234cb3301099bbb4feddabc66 could not build
dockerfiles/Cli.dockerfile
on MacOs with M1 chipTo Reproduce
yarn develop
Expected behavior build images
compose_coordinator
,compose_wallet
,compose_testnet
then run containers for playAdditional context can try with this Cli.dockerfile which is removed
node-gyp-build
andpython2
for build.