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

Testing with Docker fails on macOS Arm Processor #51

Open
wesleyboar opened this issue Jun 27, 2024 · 0 comments
Open

Testing with Docker fails on macOS Arm Processor #51

wesleyboar opened this issue Jun 27, 2024 · 0 comments
Labels
enhancement New feature or request v3 Relevant to Version 3

Comments

@wesleyboar
Copy link
Collaborator

wesleyboar commented Jun 27, 2024

Overview

If I follow the README at "Testing" → "B. Via Docker", on macOS Arm processor1, the build fails:

no match for platform in manifest: not found
make build
docker-compose -f ./docker-compose.yml build
WARN[0000] /Users/wbomar/Code/DS-User-Guide/docker-compose.yml: `version` is obsolete 
[+] Building 1.3s (3/3) FINISHED                                                                                    docker:desktop-linux
 => [docs internal] load build definition from Dockerfile                                                                           0.0s
 => => transferring dockerfile: 635B                                                                                                0.0s
 => ERROR [docs internal] load metadata for docker.io/taccwma/tacc-docs:v0.6.0                                                      1.2s
 => [docs auth] taccwma/tacc-docs:pull token for registry-1.docker.io                                                               0.0s
------
 > [docs internal] load metadata for docker.io/taccwma/tacc-docs:v0.6.0:
------
failed to solve: taccwma/tacc-docs:v0.6.0: failed to resolve source metadata for docker.io/taccwma/tacc-docs:v0.6.0: no match for platform in manifest: not found
make: *** [build] Error 17

Solutions

Wait for support from other software:

Workaround

  1. Clone https://github.com/TACC/TACC-Docs.

  2. Build & Start TACC-Docs via Docker.

  3. Save the build as an image e.g.
    docker commit tup_docs

  4. Tag the image e.g.
    docker tag sha256:__SHA_OF_COMMIT__ local/tacc-docs:__ANY_IDENTIFIER__

  5. Edit https://github.com/TACC/DS-User-Guide /Dockerfile.

  6. Change FROM line to use new local image e.g.

    • from FROM taccwma/tacc-docs:v0.6.0
    • to FROM local/tacc-docs:__ANY_IDENTIFIER__
  7. Build & Start DS-User-Guide via Docker.

Important

Do not commit this change.

Footnotes

  1. I.e. a Mac with an M1 or M2 chip.

@wesleyboar wesleyboar added the enhancement New feature or request label Jun 27, 2024
@wesleyboar wesleyboar added the v3 Relevant to Version 3 label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v3 Relevant to Version 3
Projects
None yet
Development

No branches or pull requests

1 participant