Skip to content

Files

Latest commit

9d17f14 · Nov 29, 2022

History

History
This branch is 1 commit ahead of, 516 commits behind ONLYOFFICE/build_tools:master.

develop

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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