trufflesuite / ganache

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
2.61k stars 675 forks source link

ganache[current version] SEGFAULTING in Docker image #4300

Open ianrowan opened 1 year ago

ianrowan commented 1 year ago

I haven't been able to get ganache to run in a Docker container(on arm64 for context). Ganache-cli does work however, but this doesn't include the functionality I'm trying to implement

A RUN npm install -g ganache And a CMD ganache --fork

returns

2023-03-09 16:46:50 ganache v7.7.6 (@ganache/cli: 0.8.5, @ganache/core: 0.8.5)
2023-03-09 16:46:50 Starting RPC server
2023-03-09 16:46:50 Segmentation fault

when starting the container I've tried building for linux/arm64 with buildx but have the same result

davidmurdoch commented 1 year ago

Are you building the container yourself or using our published container?

ianrowan commented 1 year ago

Are you building the container yourself or using our published container? @davidmurdoch

I'm building my own container using node:18.14.1-alpine with an npm install -g ganache

For more context the goal is to run with --detach alongside an express server. I can do this locally but not within docker

Are there any resources on the build process for the truffle/ganache container that is published? I notice that on my docker desktop that container is tagged as 'arm64' but havent been able to reproduce that with my own container

davidmurdoch commented 1 year ago

I think your best bet would be use use our Dockerfile as your base, and then follow our automated release action: here and here.

davidmurdoch commented 1 year ago

Unrelated to your problem, but @jeffsmale90 would love to chat with you about Ganache's --detach mode -- he's trying to gather information about what features the community would like to see added on to it.