mops
mops copied to clipboard
`mops sources` and `mops install` hangs in docker container
When running mops in a Docker container on an Apple Silicon Mac, mops hangs indefinitely on various commands, providing no output why it is hanging. Steps to reproduce:
export DOCKER_DEFAULT_PLATFORM=linux/amd64 # set platform to amd64 for dfx
docker run -it node:latest bash # run a default node image
DFXVM_INIT_YES=true sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"
source "$HOME/.local/share/dfx/env"
npm i -g ic-mops
mops init -y # hangs indefinitely on "Fetching default packages for dfx"
The same steps work on a linux machine. (you can omit the first step exporting DOCKER_DEFAULT_PLATFORM)
Investigated that it hangs on actor method call.
Probably this issue related to https://github.com/dfinity/agent-js