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

Installation on architecture != amd64 #6

Open
jeanibarz opened this issue Jul 1, 2019 · 1 comment
Open

Installation on architecture != amd64 #6

jeanibarz opened this issue Jul 1, 2019 · 1 comment

Comments

@jeanibarz
Copy link

jeanibarz commented Jul 1, 2019

ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64

When trying to install on a Raspberry Pi 3B+ (architecture armhf), the image building doesn't work because the JAVA path refers to a wrong path, corresponding to the amd64 architecture.

I wonder if it is possible to slightly the modify the Dockerfile to deduce the correct path from the running architecture or allow with any regex expression to find the correct path from a regex expression ? This would allow the building to succeed no matter architecture.

Best regards

@robert-schmidtke
Copy link
Contributor

Hi,

you could check whether there is a symlink called /usr/lib/jvm/default-java that points to the architecture-specific directory. If so, you can replace the paths accordingly in the Dockerfile, double-check with the amd64 Ubuntu image, and then open a PR.

Cheers
Robert

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