ONLYOFFICE / build_tools

Used to build ONLYOFFICE DocumentServer-related products
https://www.onlyoffice.com
GNU Affero General Public License v3.0
104 stars 186 forks source link

Mount path for development still /var/www/onlyoffice/documentserver/web-apps ? #810

Open shooding opened 6 months ago

shooding commented 6 months ago

To mount external folders to the container, you need to pass the "-v" parameter along with the relative paths to the required folders. The folders sdkjs and web-apps are required for proper development workflow.

During the docker build process, I saw

[git] update: sdkjs
Cloning into '/build_tools/scripts/../../sdkjs'...
remote: Enumerating objects: 304369, done.
remote: Counting objects: 100% (1139/1139), done.

and

[git] update: web-apps
Cloning into '/build_tools/scripts/../../web-apps'...
remote: Enumerating objects: 21342, done.
remote: Counting objects: 100% (666/666), done.
remote: Compressing objects: 100% (345/345), done.
remote: Total 21342 (delta 286), reused 607 (delta 264), pack-reused 20676
Receiving objects: 100% (21342/21342), 512.31 MiB | 1.76 MiB/s, done.
Resolving deltas: 100% (9737/9737), done.

which tooks really really long time, and need to start over once build process failed.

I already cloned outside container and mount with -v to the docker builder. Maybe the documentation in develop branch is tool old ? I've wrote another Dockerfile that install the openjdk-11-jdk and jre both headless and mount pre-download qt_source_5.9.9.tar.xz just to avoid doing everything again.

igwyd commented 6 months ago

Hello @shooding, according to information from the developers this repo still is still actual. If you want to clone and update yourself, there is a --update 0 in build_tools/config