Skip to content

feat(docker): convert office documents with Collabora Online - #26692

Merged
TiagoJacobs merged 10 commits into
bigbluebutton:v4.1.x-developfrom
tibroc:compose/office-conversion
Nov 26, 2026
Merged

TiagoJacobs merged 10 commits into
bigbluebutton:v4.1.x-developfrom
tibroc:compose/office-conversion

Conversation

@tibroc

@tibroc tibroc commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

The Docker Compose setup has no office document conversion. bbb-web calls /usr/share/bbb-libreoffice-conversion/convert.sh, and nothing provides it, so Word, Excel and PowerPoint uploads fail.

This adds an office-conversion service running Collabora Online (CODE). The bbb-web image gets the existing sample client bbb-libreoffice/assets/convert-cool.sh at its package path, /usr/share/bbb-libreoffice-conversion/convert-cool.sh, and the compose file selects it with PRESOFFICECONVERSIONEXEC. The compose stack needs no file from outside docker/compose/ for it. An admin can mount their own script and point the variable at it; the docs page shows how. The client now takes the server from COOL_URL (the default is unchanged). When a conversion fails it exits non-zero and writes no output file. Before, it handed bbb-web the error body as a PDF and exited 0.

The service:

  • has no capabilities, runs with no-new-privileges and a read-only root;
  • is on an internal network shared with web only, with no address for the host;
  • accepts conversions only from that network;
  • runs each document in a landlock jail, so the host kernel needs landlock.

Limits:

  • It is one long-running container for all documents.
  • It converts with Collabora's LibreOffice build, not the bbb-soffice image.
  • Collabora describes CODE as not recommended for production; the docs page says so.

A stricter design with one container per document can follow and keep the same convert.sh contract.

Tested:

  • Fresh start: check-up and the join test pass.
  • .pptx, .docx and .xlsx sent inline in create are converted by bbb-web.
  • A failure, a timeout or Collabora being down makes the script exit non-zero.
  • 4 large documents at once peak at about 760 MiB.
  • No route out of the conversion network.

After moving the script into the image (rebased on v4.1.x-develop with #26714): bbb-web built locally, the rest published images. All containers healthy; an .odt and a .docx converted to PDF, with bbb-web logging /usr/share/bbb-libreoffice-conversion/convert-cool.sh; the documented own-script override converts too; install.sh downloads no bbb-libreoffice/ file; docker compose config -q passes with compose 2.35.1 and 2.40.3.

… env

The two services read the addresses of the other services, and shared-notes-server its
database password, from environment variables, which win over the override files, as
export-annotations already does. This removes docker/compose/bbb-graphql-middleware.yml and
the inline bbb-shared-notes-server.yml; its runnerScript is no longer read since the PDF
export uses the conversion socket. An admin's file at the bare-metal path now holds only
their changes. install.sh no longer downloads the removed files.
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review: 4

  • v3.0.x-release
  • v3.0.x-develop
  • v4.0.x-release
  • v4.0.x-develop

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b9e9e0c7-7da0-4cd6-b49c-ac8be244a75d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@tibroc
tibroc force-pushed the compose/office-conversion branch 3 times, most recently from b427c84 to 6fc57a7 Compare November 24, 2026 18:05
@tibroc
tibroc marked this pull request as ready for review November 25, 2026 11:09
@antobinary antobinary added this to the Release 4.1 milestone Nov 25, 2026
@tibroc
tibroc force-pushed the compose/office-conversion branch 2 times, most recently from 7a8cc8f to 6d743fd Compare November 25, 2026 13:50
tibroc added a commit to tibroc/bigbluebutton that referenced this pull request Nov 25, 2026
TiagoJacobs and others added 9 commits November 26, 2026 02:16
shared-notes-server reads bbb-web's base URL from BBB_WEB_URL and ignores BBB_WEB_HOST.
record-and-playback reads REDIS_HOST, BN_NOTES_ENDPOINT, PLAYBACK_HOST and
SHARED_SECRET, so the inline recording.yml and bbb-web.properties go away.
An admin's own recording.yml, mounted at its bare-metal path, now holds
only their changes.
docker-compose.yml no longer has an inline recording.yml to start from: the recording services get their wiring from the environment.
… read

The recording services no longer mount an inline recording.yml, so an
override that replaced it is ignored without an error and the extra
formats stop being processed.
A release tag vX.Y.Z is also pushed as vX.Y when it is the newest vX.Y.Z
in the repository. Re-runs of older releases and pre-releases leave the
alias alone.
BBB_IMAGE_TAG still selects the version of all images. Each BBB image
can now also be set in .env with a full reference, BBB_<IMAGE>_IMAGE,
e.g. BBB_WEB_IMAGE=localhost/bbb-web:dev. The variable applies wherever
the image is used, including the schema mounts of init, which an
override file could not change.

The sample override keeps only pull_policy: never for local builds.
The webpack dev server setup for the HTML5 client was a second
mechanism next to docker-compose.override.yml: extra compose files in
docker/compose/dev/, added through COMPOSE_FILE in .env, with which
compose reads the override only if COMPOSE_FILE lists it.

docker-compose.override.sample.yml now has one commented HTML5 block:
the location file as an inline config mounted at the package path, the
locales of the source tree, and two variants, the dev server on your
machine or in a container. docker/compose/dev/ is removed.
…vironment

COOL_URL sets the Collabora Online server; without it the script uses
https://127.0.0.1:9980 as before.

A failed request now ends the script with curl's exit code and leaves no
output file. Before, curl wrote the error body (or nothing) to the output
file and the script exited 0, so bbb-web took it as a converted PDF.
bbb-web converts office documents by calling the script in
presOfficeConversionExec, and the compose stack provided none. A new
service, office-conversion, runs Collabora Online (CODE). The bbb-web
image gets the sample client convert-cool.sh at its package path,
/usr/share/bbb-libreoffice-conversion/convert-cool.sh, and compose selects
it with PRESOFFICECONVERSIONEXEC; it sends to the service at COOL_URL.

office-conversion is on a network with web only, without a route out and
without an address for the host. It accepts convert-to from that network
only, has no admin console, no capabilities, no-new-privileges and a
read-only root; Collabora then runs each document in a landlock jail.
@TiagoJacobs
TiagoJacobs force-pushed the compose/office-conversion branch from 6d743fd to 1f31f28 Compare November 26, 2026 04:57
@github-actions

Copy link
Copy Markdown

⏳ Automated tests are running...

@TiagoJacobs
TiagoJacobs merged commit 4a9197c into bigbluebutton:v4.1.x-develop Nov 26, 2026
58 of 59 checks passed
@tibroc
tibroc deleted the compose/office-conversion branch November 26, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants