Compiling Document Builder

Introduction

Document Builder is a tool that allows you to generate text documents, spreadsheet, presentation and PDF files and automate document building using the templates. It can be easily integrated into your document management system using its JavaScript API.

You can easily compile Document Builder from source codes and deploy the solution on your local server using the specially designed build_tools. The build_tools allow to automatically get and install all the components necessary for the compilation process, all the dependencies required for the Document Builder correct work, as well as to get the latest version of Document Builder source code and build all its components.

Important! We can only guarantee the correct work of the products built from the master branch.
System requirements

Hardware

  • CPU: dual core 2 GHz or better
  • RAM: at least 2 GB, but depends on the host OS. More is better
  • HDD: at least 40 GB of free space
  • SWAP: at least 4 GB, but depends on the host OS. More is better

Software

  • OS: 64-bit Ubuntu 16.04
The solution has been tested on Ubuntu 16.04. Other distributions might require some specific actions, which are not described here.

Installing dependencies

You might need to install Python and Git if they are not yet installed on your computer. This can be done using the following command:

sudo apt-get install -y python git

Building Document Builder source code

  1. Clone the build_tools repository:
    git clone https://github.com/ONLYOFFICE/build_tools.git
  2. Go to the build_tools/tools/linux directory:
    cd build_tools/tools/linux
  3. Run the automate.py script specifying the builder parameter to compile the Document Builder:
    ./automate.py builder
    If you run the script without any parameters, this will build Document Builder alongside with ONLYOFFICE Docs and Desktop Editors.
    ./automate.py
    If necessary, you can build several products at once by running the script with the parameters corresponding to the necessary products. To learn more about compiling ONLYOFFICE Docs, you can read this article. To learn more about compiling Desktop Editors, please refer to this article.

Wait while the script is being executed. Depending on your computer capabilities, this process may take considerable time. For example, this takes 3 hours at least on Intel Core i7-7700.

The script will compile all the dependencies and components which are a part of Document Builder.

The build will be available in the ../../out/linux_64/onlyoffice/documentbuilder/ directory. Now you can proceed to running Document Builder on your server.

Running Document Builder

Go to the ../../out/linux_64/onlyoffice/documentbuilder/ directory

cd ../../out/linux_64/onlyoffice/documentbuilder

Execute the following command:

./docbuilder

Host ONLYOFFICE Docs on your own server or use it in the cloud

Article with the tag:
Browse all tags