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

Build ARM-compatible version of this Image #11

Open
jcstein opened this issue Feb 6, 2023 · 8 comments
Open

Build ARM-compatible version of this Image #11

jcstein opened this issue Feb 6, 2023 · 8 comments

Comments

@jcstein
Copy link
Member

jcstein commented Feb 6, 2023

On Mac (ARM)

docker run -p 26657:26657 -p 26659:26659 ghcr.io/celestiaorg/local-celestia-devnet:main

Result

Unable to find image 'ghcr.io/celestiaorg/local-celestia-devnet:main' locally
2main: Pulling from celestiaorg/local-celestia-devnet
3docker: no matching manifest for linux/arm64/v8 in the manifest list entries.
4See 'docker run --help'.

Link to snippet

@jcstein
Copy link
Member Author

jcstein commented Feb 13, 2023

The third line of the error message, docker: no matching manifest for linux/arm64/v8 in the manifest list entries., indicates that Docker is unable to find a matching manifest for the specified image and platform (Linux, architecture: arm64, variant: v8).

This error could occur because the image doesn't exist on the specified repository or the specified platform is not supported by the image. You can try pulling the image from a different repository, or you can specify a different platform that is supported by the image.

You can use the docker run command with the --platform option to specify the desired platform. For example:

docker run --platform linux/amd64 ghcr.io/celestiaorg/local-celestia-devnet:main

@jcstein jcstein closed this as completed Feb 13, 2023
@smuu
Copy link
Contributor

smuu commented Feb 14, 2023

When specifying the amd64 platform on a mac, it does not run natively on Mac. Also, this approach is not possible for RPIs.

I propose reopening this issue and changing the local-celestia-devnet build to a multi-arch one.

See here: https://github.com/celestiaorg/.github/blob/main/.github/workflows/reusable_dockerfile_pipeline.yml#L97

@jcstein
Copy link
Member Author

jcstein commented Feb 14, 2023

hmm, it worked for me on my Mac 🤔

@jcstein jcstein reopened this Feb 14, 2023
@smuu
Copy link
Contributor

smuu commented Feb 14, 2023

Yes, modern Macs have an arm processor but can emulate amd processes.

@jcstein
Copy link
Member Author

jcstein commented Feb 14, 2023

ah, cool. what are you on? I'd imagine intel macs can not use this docker run --platform linux/amd64 ghcr.io/celestiaorg/local-celestia-devnet:main

@jcstein
Copy link
Member Author

jcstein commented Feb 14, 2023

also, I looked into the Dockerfile. I think it may be celestia-app that is not built for this use-case? do you know what the fix is for this or if this is the case?

@smuu
Copy link
Contributor

smuu commented Feb 14, 2023

Soon there will be a new common workflow in place, that will be used by celestia-app. Then this will also be built on arm.
Is this time sensitive?

@jcstein
Copy link
Member Author

jcstein commented Feb 14, 2023

Nope, I have a note on the tutorials that says it's only been tested on AMD

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

2 participants