Using the build_tools/develop/Dockerfile
file from the project at GitHub - ONLYOFFICE/build_tools: Used to build ONLYOFFICE DocumentServer-related products to create a Docker container for compilation. It works fine under x86, but when compiling on ARM64, it fails repeatedly. During debugging, I found that the compilation process requires the core
archive file, but ARM64 cannot generate the correct URL for ARM-specific files.
The download URL defaults to the x86 version:
http://repo-doc-onlyoffice-com.s3.amazonaws.com/archive/develop/latest/core-linux-64.7z
Even if I manually change it to:
http://repo-doc-onlyoffice-com.s3.amazonaws.com/archive/develop/latest/core-linux-arm64.7z
, it still fails to download.
Please provide the correct download URL for core-linux-arm64.7z
and explain how to compile using this Docker container on ARM64.
Hello @alex.song
Please specify which product exactly you are trying to compile as the category set to Docs (Document Server) and there is also a tag doc-builder
.
Sorry for not being clear earlier. I’m creating a development/debugging container via a Dockerfile. While this container works fine under the x86 architecture, it fails to download the ARM64 version of the core.7z file when built for the ARM64 architecture.
Here are my steps:
cd build_tools/develop
docker pull onlyoffice/documentserver
docker build --no-cache -t documentserver-develop .
docker run -i -t -p 80:80 --restart=always -e ALLOW_PRIVATE_IP_ADDRESS=true -v $pwd/sdkjs:/var/www/onlyoffice/documentserver/sdkjs -v $pwd/web-apps:/var/www/onlyoffice/documentserver/web-apps -v $pwd/server:/var/www/onlyoffice/documentserver/server documentserver-develop
I was informed that you have also started an issue on GitHub: How to compile ONLYOFFICE for the ARM64 architecture? · Issue #895 · ONLYOFFICE/build_tools · GitHub
As I can see, it was merged into an existing issue, where the bug on Arm64 compilation has been registered earlier. Considering this, I can recommend installing Document Server via Docker on Arm64 according to this guide: