muccg / rdrf

The Rare Disease Registry Framework (RDRF) is an open source tool for the creation of web-based patient registries.
GNU Affero General Public License v3.0
15 stars 8 forks source link

Can't build on M1 chip #2476

Open strilciuc opened 11 months ago

strilciuc commented 11 months ago

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested su-exec: dev_build: No such file or directory

strilciuc commented 11 months ago

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested [INFO] build docker-compose-build.yml [INFO] GIT_BRANCH: next_release [INFO] GIT_HEAD_TAG: [INFO] GIT_LATEST_TAG: sjoglcmidland [ OK ] BUILD_VERSION: next_release-post-sjoglcmidland

shsnyder commented 10 months ago

I have had the same issues on M1 Mac. The first is that there is no dev_build option on .develop.sh, which I believe is just a change to the docker-compose options on all platforms.

I see the same errors as mentioned above but the docker-compose command does seem to run if executed directly and not execed for the script i.e. docker-compose -f docker-compose-build.yml build builder --platform=amd64/v8 from the command line.

However I get an error when doing this for builder and dev "Error response from daemon: pull access denied for muccg/rdrf-dev, repository does not exist or may require 'docker login': denied: requested access to the resource is denied" which looks like a permissions error or a repository not available any longer.

Not sure what the source of this error is, and if it is Mac specific.

Given this complexity due to docker, are there instructions for installing the repository with out docker, knowing that it will require manual installation of Django and a database.

laisee commented 10 months ago

was able to build on M1 && M2 chips by updating Dockerfile(s) and executing build command directly. I think this project is not supported any more by the core developers and university group (https://github.com/muccg) - possibly time to fork and start new version?

laisee commented 10 months ago

added 2 fixes for above on my OSX/M2 laptop