Closed odidev closed 6 years ago
What is wrong in the PR:
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,
Hi @mmoqui
no control on the supported architecture
I think supported architecture will be shown on the Docker Official library page of Silverpeas, which will just show support for amd64
& arm64v8
architectures.
This will inform everyone that SilverPeas
is supporting just mentioned architectures, so if someone tries to build it over other architectures then it will be his own responsibility.
targeted architecture is detected during the build
In my view, this is what is happening for all multi-architecture supported docker modules.
Detect the architecture at runtime, if it is suppported then proceed ahead otherwise return a failure.Regards,
Updated this PR with the suggestions provided above.
The user needs to run below command to generate a new dockerfile
For arm64 architecture
$generate-dockerfile.sh 6.0.1 10.1.0 arm64
For amd64 architecture
$generate-dockerfile.sh 6.0.1 10.1.0 amd64
The above commands will generate Dockerfile for either AMD64 or ARM64 based on architecture provided in generate-dockerfile.sh
Regards,
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,
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,
Silverpeas
is building and running fine onarm64v8
architecture as well. The only issue was due to the hard-codedJAVA_HOME
environment variable.Once this is fixed,
silverpeas
is good to run on multiple platforms.Regards,