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

Cannot build docker-compose on arm64/aarch64 #681

Closed
jtippett opened this issue Nov 14, 2023 · 4 comments
Closed

Cannot build docker-compose on arm64/aarch64 #681

jtippett opened this issue Nov 14, 2023 · 4 comments
Labels

Comments

@jtippett
Copy link

The current docker-compose build script does not function on my M1 mac:

 % docker compose build
[+] Building 3.2s (5/5) FINISHED                                               docker:desktop-linux
 => [server internal] load build definition from Dockerfile                                    0.0s
 => => transferring dockerfile: 1.83kB                                                         0.0s
 => [server internal] load .dockerignore                                                       0.0s
 => => transferring context: 2B                                                                0.0s
 => ERROR [server internal] load metadata for docker.io/library/gradle:jdk21-alpine            3.2s
 => ERROR [server internal] load metadata for docker.io/library/gradle:8.4-jdk21-graal         3.2s
 => [server auth] library/gradle:pull token for registry-1.docker.io                           0.0s
------
 > [server internal] load metadata for docker.io/library/gradle:jdk21-alpine:
------
------
 > [server internal] load metadata for docker.io/library/gradle:8.4-jdk21-graal:
------
failed to solve: gradle:jdk21-alpine: no match for platform in manifest sha256:039614406f658505c65357c71056442e65b30b3f19400199d96265c88261ecc6: not found

Not sure how to solve the above.

Copy link

welcome bot commented Nov 14, 2023

Thanks for opening your first issue 🦁 Your feedback, is the most valuable thing besides PRs 💚

@jtippett
Copy link
Author

hi @JohannesLichtenberger can confirm the latest changes now work successfully for me. Awesome!

@jtippett
Copy link
Author

Let me add one more comment. This line in the docker-compose file:

    volumes:
      - /opt/sirix/sirix-data:/opt/sirix/sirix-data

Causes the launch to fail unless the folder is specifically created and mapped in Docker. I was able to make it boot by creating a test folder in my user dir and making it available in Docker desktop app:

- /Users/james/sirix-data:/opt/sirix/sirix-data

@JohannesLichtenberger
Copy link
Member

Thanks a lot. Can you check if it's working without the existing sirix-data folder? I've just committed a fix, hopefully: 90d31a8

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

No branches or pull requests

2 participants