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

Implicit assumption of AMD64 arch? #20

Open
hhy06 opened this issue Jun 14, 2023 · 2 comments
Open

Implicit assumption of AMD64 arch? #20

hhy06 opened this issue Jun 14, 2023 · 2 comments

Comments

@hhy06
Copy link

hhy06 commented Jun 14, 2023

I ran

docker run --rm -p 8888:8888 -v $PWD/notebook:/home/jovyan/work --name learn-you-a-haskell ghcr.io/ihaskell/ihaskell-notebook:master jupyter lab --ServerApp.token=''
on my raspberry pi and got an error saying

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
I assume there is not an ARM version?

@jamesdbrock
Copy link
Member

Yes that's right.

You could try building your own aarm64 image.

Following the ihaskell-notebook https://github.com/IHaskell/ihaskell-notebook#composition-with-docker-stacks instructions, replace the base image with an aarch64 image, like for example this one. https://hub.docker.com/layers/jupyter/base-notebook/aarch64-ubuntu-22.04/images/sha256-56aab9a157a244510659d77caf4e3353257e96f41d247a17352215873359f5a1?context=explore

You would also need the aarch64 version of Stack https://github.com/IHaskell/ihaskell-notebook/blob/02cb8e017fad78608447b3edaae67b45862041a9/Dockerfile#L69

So the docker build command for that would be

docker build --build-arg BASE_CONTAINER=jupyter/base-notebook:aarch64-ubuntu-22.04
STACK_BINDIST=stack-2.11.1-linux-aarch64.tar.gz --rm --force-rm -t ihaskell_notebook_aarm64:latest .

Then use the resulting image to read Learn You A Haskell

docker run --rm -p 8888:8888 -v $PWD/notebook:/home/jovyan/work --name learn-you-a-haskell ihaskell_notebook_aarm64:latest jupyter lab --ServerApp.token=''

I've never tried this so I don't know if it would work. I think it might work. Maybe I should try running this on the Github CI.

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