-
Notifications
You must be signed in to change notification settings - Fork 6
Add support for ARM64 architecture #2
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
Conversation
What is wrong in the PR:
|
Hi @mmoqui Can you please guide, what can be the best way to add support for Regards, |
Hi @mmoqui
Regards, |
Updated this PR with the suggestions provided above. The user needs to run below command to generate a new dockerfile
The above commands will generate Dockerfile for either AMD64 or ARM64 based on architecture provided in Regards, |
Dockerfile.template
Outdated
@@ -61,7 +61,7 @@ ENV LC_ALL ${DEFAULT_LOCALE} | |||
# | |||
|
|||
# Set up environment variables for Silverpeas | |||
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 | |||
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-TARGET_ARCH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having a separate Dockerfile
per architecture just for changing one environment variable is not going to be acceptable for the official images.
See https://github.com/docker-library/openjdk/blob/ecb81629f5d5f226491e9f3e0a5be11662f72870/11/jdk/Dockerfile#L28-L40 for the approach we took over in the openjdk
official images which might be acceptable to the maintainers here?
Hi @tianon , Thanks for reviewing the changes and providing the solution too 😄 I will surely get back with updated PR, with the architecture check at runtime. Regards, |
JAVA_HOME variable has been made generic so as to support Silverpeas on multiple platforms. This feature is validated only on amd64 & arm64. Signed-off-by: Odidev <odidev@puresoftware.com>
Hi @tianon I have updated this PR with your suggested changes. BTW, thanks again for your suggestion 😄 Regards, |
Silverpeas
is building and running fine onarm64v8
architecture as well.The only issue was due to the hard-coded
JAVA_HOME
environment variable.Once this is fixed,
silverpeas
is good to run on multiple platforms.Regards,