Files
build_tools/develop/README.md
Pavel Lobashov 1d50755d9b Clarify develop run commands
We got a discussion to make it simpler with @trofim24
Because before it was not 100% clear that you *need* to
clone `build_tools` repo to run development server
2022-07-11 18:25:46 +03:00

1.4 KiB

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

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.

For example, let's connect the external folders "sdkjs" and "web-apps" to the container:

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