Skip to content

Commit 6cf64b8

Browse files
authored
Build locally on an M1 (#3097)
Related: #3000
1 parent 4d4947e commit 6cf64b8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docker/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,18 @@ can access these via:
7878
Once this is up and running, you can use
7979
[`graph-cli`](https://github.com/graphprotocol/graph-cli) to create and
8080
deploy your subgraph to the running Graph Node.
81+
82+
### Running Graph Node on an Macbook M1
83+
84+
We do not currently build native images for Macbook M1, which can lead to processes being killed due to out-of-memory errors (code 137). Based on the example `docker-compose.yml` is possible to rebuild the image for your M1 by running the following, then running `docker-compose up` as normal:
85+
86+
```
87+
# Remove the original image
88+
docker rmi graphprotocol/graph-node:latest
89+
90+
# Build the image
91+
./docker/build.sh
92+
93+
# Tag the newly created image
94+
docker tag graph-node graphprotocol/graph-node:latest
95+
```

0 commit comments

Comments
 (0)