Silverpeas / docker-silverpeas-prod

A project to build a docker image of Silverpeas ready for production
GNU General Public License v3.0
3 stars 5 forks source link

Add support for ARM64 architecture #2

Closed odidev closed 6 years ago

odidev commented 6 years ago

Silverpeas is building and running fine on arm64v8 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,

mmoqui commented 6 years ago

What is wrong in the PR:

odidev commented 6 years ago

Hi @mmoqui Thanks for providing your time to review the PR.

Can you please guide, what can be the best way to add support for arm64 for silverpeas. Will modification in Dockerfile.template be sufficient enough?

Regards,

odidev commented 6 years ago

Hi @mmoqui

Regards,

odidev commented 6 years ago

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 generate-dockerfile.sh

Regards,

odidev commented 6 years ago

Hi @tianon ,

Thanks for reviewing the changes and providing the solution too :smile: I also agree with your concern regarding maintaining multiple Dockerfiles just for the sake of an environment variable with architecture specific path.

I will surely get back with updated PR, with the architecture check at runtime.

Regards,

odidev commented 6 years ago

Hi @tianon

I have updated this PR with your suggested changes. The changes are working very well on both amd64 and arm64 architectures.

BTW, thanks again for your suggestion :smile:

Regards,