openworm / OpenWorm

Repository for the main Dockerfile with the OpenWorm software stack and project-wide issues
http://openworm.org
MIT License
2.55k stars 201 forks source link

Update Dockerfile #351

Open pikid opened 2 weeks ago

pikid commented 2 weeks ago

fix bugs: 1.ERROR [10/28] RUN git clone https://github.com/openworm/c302.git && cd c302 && git checkout ow-0.9.4 && sudo pip install .
2.ERROR: Failed building wheel for h5py

pgleeson commented 1 week ago

Hi @pikid. Thanks again for these PRs. I'm struggling to see though why the build of the original script failed on your system. How are you building it? What OS?

Is it by any chance a recent Mac with Apple Silicon (M1/M2 chip)? In this case altering the build.sh with --platform linux/amd64 could work:

docker build --platform linux/amd64  "$@" -t "openworm/openworm:$version" .