The main issue is the custom UID for the docker containers. It is required to work on Linux but it will failed on my Macbook. So I updated the start-docker.sh script to skip the UID exports on Macbook. In addition, I added the following:
I need to add python3 package to hardhat/Dockerfile to make it working on my Macbook.
I removed the npx and npxd command in the package.json file. I believe the npxd is meant to be use from the host instead of package.json.
Automatically retry subgraph deployment in case of the graph-node container is not ready to accept connections.
Wait until the smart contract deployment is finished before running the frontend dev server.
Moved the IS_DOCKER variable from the .env to the docker-compose.yml file so we don't need to edit the .env file when changing environment.
The main issue is the custom UID for the docker containers. It is required to work on Linux but it will failed on my Macbook. So I updated the
start-docker.sh
script to skip the UID exports on Macbook. In addition, I added the following:hardhat/Dockerfile
to make it working on my Macbook.npx
andnpxd
command in thepackage.json
file. I believe thenpxd
is meant to be use from the host instead ofpackage.json
..env
to thedocker-compose.yml
file so we don't need to edit the.env
file when changing environment.