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

Docker build failure for mac M2 #10078

Closed
ronibhakta1 opened this issue Nov 23, 2024 · 1 comment · May be fixed by #10080
Closed

Docker build failure for mac M2 #10078

ronibhakta1 opened this issue Nov 23, 2024 · 1 comment · May be fixed by #10080
Labels
Needs: Breakdown This big issue needs a checklist or subissues to describe a breakdown of work. [managed] Needs: Lead Needs: Triage This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed] Type: Bug Something isn't working. [managed]

Comments

@ronibhakta1
Copy link
Contributor

ronibhakta1 commented Nov 23, 2024

Problem

@avidseeker please look at this issue and try fixing it ASAP! :)

When i'm trying to build docker on my machine its throwing this error
Screenshot 2024-11-23 at 2 29 37 PM

=> ERROR [home internal] load metadata for docker.io/openlibrary/olbase: 6.8s
=> [solr-updater auth] openlibrary/olbase:pull token for registry-1.dock 0.0s

[home internal] load metadata for docker.io/openlibrary/olbase:latest:


failed to solve: openlibrary/olbase:latest: failed to resolve source metadata for docker.io/openlibrary/olbase:latest: no match for platform in manifest: not found

i have tried composing it also this is what i got
Screenshot 2024-11-23 at 2 30 20 PM

Reproducing the bug

  1. download the github file on your local machine
  2. go to the file Dir and use following commands as per mentioned inside the docker readme file
  3. docker run hello-world
  4. docker compose build
  5. docker compose up
  • Expected behavior:
    *setup the docker file using config as required and start the local run

Context

  • Browser (Chrome, Safari, Firefox, etc): Chrome
  • OS (Windows, Mac, etc): Mac M2 Air
  • Logged in (Y/N): Y
  • Environment (prod, dev, local): local

Breakdown

Requirements Checklist

  • [ ]

Related files

Stakeholders


Instructions for Contributors

  • Please run these commands to ensure your repository is up to date before creating a new branch to work on this issue and each time after pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.
@ronibhakta1 ronibhakta1 added Needs: Breakdown This big issue needs a checklist or subissues to describe a breakdown of work. [managed] Needs: Lead Needs: Triage This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed] Type: Bug Something isn't working. [managed] labels Nov 23, 2024
@ronibhakta1
Copy link
Contributor Author

Hey i have got the fix for mac M2 Air
run following codes to use the docker in your local machine !!
cd openlibrary
ls docker/
docker build -f docker/Dockerfile.olbase -t openlibrary/olbase:latest .
I notice from your directory listing that the file is named Dockerfile.olbase, not Dockerfile.base. Let's correct the command:
The error was occurring because we were trying to use Dockerfile.base when the actual file is named Dockerfile.olbase. Try running this corrected command and let me know what happens.
This should start building the base image correctly. Once this completes successfully, we can proceed with the docker compose build command.
all steps are mentioned in the docker readme file :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Breakdown This big issue needs a checklist or subissues to describe a breakdown of work. [managed] Needs: Lead Needs: Triage This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed] Type: Bug Something isn't working. [managed]
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant