You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly the graph-node container has the environment variable ethereum: "localhost:http://host.docker.internal:8545" which assumes the ethereum network is running on the host machine by running yarn chain. I was unable to get this to work for me and came up with my first solution.
This system worked worked well and simplified the tutorial I was following.
For some reason ganache would crash and graph-node would act like nothing happened resulting in a good chunk of time wasted troubleshooting at the hackathon.
Final Solution
Anvil is an alternative to ganache written in a completely different programing language. Anvil is also already included inside foundery's container.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
While I was at Eth Waterloo the other week I had a couple issues with scaffold-eth-2's subgraph-package.
For context I was following this tutorial -> 👨🚀 Build a dApp quick with The Graph and Scaffold-ETH 2 🏗️ — Shutterblock.eth 📸💥 🦇🔊🛸
Please note I already submitted a pull request reguarding "POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C" here
My issues all have to do with the docker-compose file.
Firstly the
graph-node
container has the environment variableethereum: "localhost:http://host.docker.internal:8545"
which assumes the ethereum network is running on the host machine by runningyarn chain
. I was unable to get this to work for me and came up with my first solution.First Solution, New Bug
I decided to run ganache itself inside docker. I found this repo for reference and plugged it into scaffold-eth-2's docker-compose file.
This system worked worked well and simplified the tutorial I was following.
For some reason ganache would crash and graph-node would act like nothing happened resulting in a good chunk of time wasted troubleshooting at the hackathon.
Final Solution
Anvil is an alternative to ganache written in a completely different programing language. Anvil is also already included inside foundery's container.
I have already done some research running anvil inside docker using this repo. In fact I alredy have a pull request.... -> Added the anvil docker container to docker-compose.yml by dentropy · Pull Request #404 · scaffold-eth/scaffold-eth-2
Beta Was this translation helpful? Give feedback.
All reactions