libreoffice-online/docker
Michael Meeks 317dffb817 Optimize copy of jails to hard-linking with new capability.
In some cases we cannot do a fast bind-mount of the files we want
in our jail since we don't have cap_sys_admin for loolmount inside
eg. docker.

Thus we need to fallback to hard-linking, however various security
systems namespace parts of our tree, such that link() fails with
EXDEV even across the (apparently) same file-system.

As such we need to assemble a copy of what we want to hard-link
close to our jails. However, this needs to be owned by root / the
system to avoid having writable files shared between jails. Hence
we need cap_chown in addition to cap_fowner, to get ownership right
and then hard-link.

Change-Id: Iba0ef46ddbc1c03f3dc7177bc1ec1755624135db
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2021-01-04 15:05:36 +00:00
..
from-packages docker: disable logging colors 2020-12-09 17:19:58 +01:00
from-source Optimize copy of jails to hard-linking with new capability. 2021-01-04 15:05:36 +00:00
README docker: README typo 2020-11-30 22:28:54 +01:00

Collabora Online docker

This directory contains everything needed to compile a
working docker container with Collabora Online.

Docker image can be built from packages or from source code.

Examples:

1. Build latest CODE based on Ubuntu 18.04 LTS

  cd from-packages
  docker build --no-cache -t mydomain/code -f Ubuntu .

2. Build Collabora Online 4.2 based on RHEL8

  cd from-packages
  # Get your secret URL key from https://support.collaboraoffice.com/ (Collabora Partners/Customers)
  docker build --no-cache --build-arg version=4.2 --build-arg type=cool --build-arg secret_key=<....> -t mydomain/cool -f RHEL8 .

3. Build Collabora Online 6.4 license key enabled version

   cd from-packages
   docker build --no-cache --build-arg type=key -t mydomain/cool -f Ubuntu .

4. Build Collabora Online from master branch (from source code)

   cd from-source
   ./build.sh

Check build.sh for more build options!