Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build on M1 chip #2476

Open
strilciuc opened this issue Dec 19, 2023 · 4 comments
Open

Can't build on M1 chip #2476

strilciuc opened this issue Dec 19, 2023 · 4 comments

Comments

@strilciuc
Copy link

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
Copy link
Author

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

  • exec docker-compose -f docker-compose-build.yml build builder --platform=amd64/v8
    WARNING: The PIP_INDEX_URL variable is not set. Defaulting to a blank string.
    WARNING: The PIP_TRUSTED_HOST variable is not set. Defaulting to a blank string.
    ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

@shsnyder
Copy link

shsnyder commented Jan 4, 2024

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
Copy link

laisee commented Jan 15, 2024

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
Copy link

laisee commented Jan 16, 2024

added 2 fixes for above on my OSX/M2 laptop

  • switched from muccg repository to my own (local or dockerhub)
  • used DOCKER_DEFAULT_PLATFORM to make linux/arm64/v8 the default build for docker-compose commands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants