This project contains scripts and instructions for building and installing server component of ONLYOFFICE DocumentServer with required parameters (such as number of allowed connections) and web-apps editors with unlocked mobile editing.
ONLYOFFICE Server is installed and running.
- Navigate to DocumentServer and select tag, corresponding to a version you are using.
- Copy abbreviated commit hash for
sdkjs
,web-apps
andserver
submodules. - In the root directory of this project run
docker build -t docservice-builder .
to build docker image needed for later steps. - Run docker container based on image built on the previous step providing
HASH_SDKJS
,HASH_WEB_APPS
,HASH_SERVER
,BUILD_VERSION
,BUILD_NUMBER
andCONNECTIONS
env variables, as well as mounting/out
volume to host directory of your choice –docservice
file andapp.js
files for editors will appear there after docker container completes.BUILD_VERSION
andBUILD_NUMBER
should be the same as build version and build number ofDocumentServer
you are running. For example:
$ docker run --rm \
-e HASH_SDKJS=0ab8241 \
-e HASH_WEB_APPS=264a216 \
-e HASH_SERVER=bce1a81 \
-e BUILD_VERSION=7.3.2 \
-e BUILD_NUMBER=8 \
-e CONNECTIONS=9999 \
-v $(pwd)/out:/out \
docservice-builder
-
Stop ONLYOFFICE
DocumentServer
and backup it up. -
Locate
docservice
file (usually it can be found at/var/www/onlyoffice/documentserver/server/DocService
directory) and replace with newly built file from/out
. -
Locate and replace with newly built
app.js
files in respective directories:
/var/www/onlyoffice/documentserver/web-apps/apps/documenteditor/mobile/dist/js
,/var/www/onlyoffice/documentserver/web-apps/apps/spreadsheeteditor/mobile/dist/js
,/var/www/onlyoffice/documentserver/web-apps/apps/presentationeditor/mobile/dist/js
.
- Start ONLYOFFICE
DocumentServer
and check that everything works as expected.