Files
build_tools/develop
2022-10-24 14:52:53 +03:00
..
2022-10-21 12:52:44 +03:00
2022-07-11 18:58:05 +03:00
2022-10-24 14:52:53 +03:00

Docker

This directory containing instruction for developers, who want to change something in sdkjs or web-apps module, but don't want to compile pretty compilcated core product to make those changes.

Installing ONLYOFFICE Docs

How to use - Linux or macOS

Note: You need the latest Docker version installed.

You might need to pull onlyoffice/documentserver image:

Note: Do not prefix docker command with sudo. This instruction show how to use docker without sudo.

docker pull onlyoffice/documentserver

Create develop image

To create a image with the ability to include external non-minified sdkjs code, use the following command:

git clone https://github.com/ONLYOFFICE/build_tools.git
cd build_tools/develop
docker build -t documentserver-develop .

Note: The dot at the end is required.

Connecting external folders

To connect 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

  • sdkjs repo is located here
  • web-apps repo is located here
docker run -i -t -d -p 80:80 --restart=always \
    -v /host-dir/sdkjs:/var/www/onlyoffice/documentserver/sdkjs \
    -v /host-dir/web-apps:/var/www/onlyoffice/documentserver/web-apps documentserver-develop