Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true✨ Finishing touches
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. Comment |
cedbbc1 to
044e0d0
Compare
38c657e to
3c029b1
Compare
|
Complete the container images for BigBlueButton 4.0 and add a single, committed docker-compose.yml that runs the whole stack: haproxy and certbot at the edge, nginx, bbb-web, akka-apps, the GraphQL services, html5 client, learning dashboard, shared notes, export-annotations, LiveKit, bbb-webrtc-sfu, coturn, redis, postgres, db-init, office conversion (Collabora CODE), an optional bbb-webhooks service and a setup container that writes .env. - Configuration contract (docker/config-contract.yaml) with the generated .env.sample and the variables reference page. - Entrypoints that validate required variables, render configuration with each component's native mechanism, merge override files mounted at the bare-metal paths, then exec the process. - Images run as non-root with read-only root filesystems and healthchecks; third-party base images are pinned by digest. - Tests: golden configuration trees with parity against bare metal, contract and compose assertions, lint, and a real Docker stack test (join path, restarts, conversion, webhooks, notes PDF export), run in the new docker-checks workflow. - Docs: install, upgrade and backup page, configuration reference and a design page explaining the choices. Recording, running behind an existing reverse proxy and a development setup follow in later changes. Co-authored-by: Samuel Weirich <[email protected]>
4e63aa2 to
d2edb50
Compare
bbb-graphql-server is still amd only and emulated
Upstream's bbb-webrtc-recorder image (v0.17.0, pinned by digest) with a thin layer: yq, an entrypoint that merges the container wiring and the Tier 3 override /etc/bigbluebutton/bbb-webrtc-recorder.yml over the packaged default (the recorder loads only one file), and a healthcheck on its redis connection. The service writes the recorder-raw volume as BBB_UID/BBB_GID; a compose rule checks the volume's path, writer and user.
Build the recording player (bbb-playback v5.4.8, pinned by commit) as its own image and run it as service playback in the recording profile. With the recording feature the edge nginx proxies /playback/presentation/2.3 to it and serves published recordings read-only from the bbb-data volume; without the feature none of these locations exist. Golden cases bbb-playback and nginx-norecording, the nginx case updated for the playback upstream group, and a real-Docker playback check.
Rebuild the record-and-playback image on ubuntu:24.04 (the Debian 11 base no longer installs) with Ruby, ffmpeg, bbb-presentation-video and the bbb-record tools installed as the bare-metal packages do, and run what the bare-metal units run as services of one image: the resque workers (RECORDING_WORKERS), rap-starter, rap-caption-inbox and the daily cleanup. The workers fetch shared notes over the notes network, remove the recorder's files after archiving them, and post the analytics callback with bbb-web's default properties. Overrides go to the bare-metal paths under /etc/bigbluebutton/recording/. The example script that deleted published recordings is removed: deleting published recordings stays a manual decision, as on bare metal. Golden cases record-and-playback and record-and-playback-keepraw, lint for the Dockerfile again, and a real-Docker check that takes a recorded meeting through archive, sanity, process and publish.
|
I'm really looking forward to get the docker project bigbluebutton/docker merged into the main repo, why I'm happy about that move and thought I could do a review on this PR. Unfortunately I was just overwhelmed. just a few examples from the the first few files I've looked into:
I'm might be wrong with some of the points, I did not dive deeper into these changes, because my brain started smoking. It seems impossible to review for me, there could be lots of bug or even backdoors and, in my opinion, this would just create an non-maintainable mess when merged. |
…g by default Add docker/tests/stack/recording-e2e.sh: headless Chromium in the Playwright image joins a meeting created with record=true through the html5 client with a fake microphone and webcam (upstream's Playwright helpers), the meeting is ended, and the test requires the recorder's camera and microphone files with real content in the raw archive, a published recording with audible audio, getRecordings listing it, and nginx serving the player, metadata and video. The CI stack job runs it and the playback check against the running stack. With recording working, BBB_FEATURES defaults to recording again, as on bare metal: unset means recording, set but empty means no optional feature. COMPOSE_PROFILES follows the same default.
compose.dev.yml, used on top of docker-compose.yml, builds every image from the source tree and adds the three common development loops, each following the bare-metal workflow: the html5 client's dev server with hot reload behind the edge nginx (as run-dev.sh does), and rebuilds of bbb-web and akka-apps from the mounted source into a volume, followed by a restart of the service. docker/tests/compose/check-dev.sh checks the file for every feature combination against the bake targets, and docker/tests/stack/dev-check.sh (dind.sh dev-check) exercises each loop.
✅ Automated tests have passed! |
|
@alangecker i actually agree with you, i just let claude running a weekend over this to have a working proof of concept - which actually it is. however, I agree this is not reviewable for a human any more. We can still revert back to the state of the last dev-summit (437c1a2). and work forward from there. |
|
We merged #26141 instead. |


Docker Compose setup for BigBlueButton 4.0
What this is
This updates #22894 to BigBlueButton 4.0 and turns it into a complete container setup for a
single server: one static
docker-compose.yml, images built from this repository that configurethemselves at start, a machine-readable configuration contract, tests and CI. LiveKit is the only
media server and shared notes run on the BlockNote server, as in 4.0.
The guiding rule is to stay close to the packages: each image renders upstream's own
configuration files at their bare-metal paths and changes only what containers need. Override
files are mounted at the same paths as on a package-based server, so the existing documentation
applies. The design and its reasons are in
docs/docs/administration/docker-design.md;installing, upgrading and backing up are in
docs/docs/administration/docker.md.The stack is working and open for review, including recording. Running behind an existing reverse
proxy comes in a follow-up change (see below).
How to try it
On a server with Docker Engine, the Compose plugin (2.24.4 or later) and Buildx, a DNS name
pointing to it and ports 80/tcp, 443/tcp, 7882/udp and 3478/udp+tcp open:
The smoke test reads the shared secret from the environment only:
read -rs BBB_SHARED_SECRET && export BBB_SHARED_SECRETfirst, and add--insecureuntil certbot has obtained the certificate.Once the images are published to ghcr.io,
docker compose pullreplaces the bake step and thetwo
BBB_IMAGE_REGISTRYsettings.What is in it
Compose and configuration
docker-compose.yml: one committed file, never generated; optional parts as profiles selectedby
BBB_FEATURES(todaywebhooks). Every service has an explicit image tag (third-partyimages also a digest) and a read-only root filesystem; every long-running service has a
healthcheck and a restart policy (
db-initandsetupare run-only).docker/config-contract.yaml: every variable with tier, format, default, consumers andupstream sources.
.env.sampleanddocs/docs/administration/docker-configuration.mdaregenerated from it and checked in CI.
.env, optional advanced values, and overridefiles at bare-metal paths.
setupservice: writes.env(generates secrets, asks for domain, e-mail, features and publicaddress, keeps existing values), without network access.
Images
<component>/Dockerfilewith<component>/docker/for components with a sourcedirectory,
docker/<name>/for the others; one bake file per image indocker/bake/.node:24-slim, a shared Java 21 base onubuntu:24.04,ubuntu:24.04for the document tools, official haproxy, nginx, postgres and coturn images.
docker/lib/): validate, derive, render (envsubst), merge Tier 3(yq, the packaging's merge), exec;
--render-onlyfor tests. Missing or malformed variables stopthe container with the variable's name, never its value.
setup(root, to give.envthedirectory's owner) and
postgres(the official image's user); writers of/var/bigbluebuttonshare
BBB_UID/BBB_GID.Networking and TLS
as
bbb-install.shdoes; certbot obtains and renews the certificate, haproxy reloads it byitself.
services through DNS.
Services
dashboard, shared notes (BlockNote), export-annotations, LiveKit, bbb-webrtc-sfu (LiveKit
controller), coturn, redis, postgres, a db-init job (recreates the 4.0 databases on upgrades,
as the packages do), optional bbb-webhooks.
collabora/code), which bbb-web alreadysupports (
bbb-libreoffice/assets/convert-cool.sh), instead of adocker runper document.Tests and CI
from a bare-metal reference and a reason for each.
and directory-mode checks.
docker-checks.yml(pull requests) andbuild-all-images.yml(multi-arch build andpush to ghcr.io).
Docs
docs/docs/administration/docker.md(install, upgrade, backup, troubleshooting),docker-configuration.md(generated reference),docker-design.md(design for reviewers).Recording
With
BBB_FEATURES=recording(the default, as on bare metal): bbb-webrtc-recorder (upstream'simage v0.17.0 with a thin configuration layer), the record-and-playback image rebuilt on Ubuntu
24.04 running what the bare-metal units run (resque workers, rap-starter, caption inbox, daily
cleanup), and the presentation player (bbb-playback v5.4.8) as its own service behind the edge
nginx. Published recordings are served from the data volume. The earlier
bbb-remove-old-recordingsexample (it deleted published recordings) is removed: deletingpublished recordings stays a manual decision, as on bare metal.
Development setup
compose.dev.ymlon top ofdocker-compose.ymlbuilds every image from the tree and adds thecommon loops as on bare metal: the html5 dev server with hot reload, and rebuilds of bbb-web and
akka-apps from the mounted source (
docker/README.md, "Development").Not in it yet
How it was tested
docker-checks.ymlruns the contract, golden, compose and lint jobs, thenbuilds each image with BuildKit and checks it (golden cases with parity, UID, directory modes),
then the stack test on those images.
build-all-images.ymlbuilds every image for itsplatforms.
docker/tests/stack/) on Docker Engine: API create and join, the client and itsbundle, the GraphQL WebSocket and join mutation, shared notes exported as PDF, the learning
dashboard, presentation upload with PDF and Word conversion, LiveKit signaling, repeated after
four restart and recreate cycles; plus the effective SFU and webhooks configuration, webhook
callbacks, the conversion service's restrictions and the network isolation of the notes PDF
converter. It can be run locally with
docker/tests/stack/dind.shon a host with only podman.docker/tests/stack/recording-e2e.sh, also in CI): headless Chromiumjoins through upstream's Playwright helpers with a fake microphone and webcam, the meeting is
recorded, processed and published, and the test checks the recorder's raw camera and microphone
files, audible audio in the published recording,
getRecordingsand the player served by nginx.down/up.Notes for reviewers
docs/docs/administration/docker-design.md, thendocker-compose.yml(itscomments explain each service),
docker/README.md,docker/lib/README.md, and one entrypoint,for example
bigbluebutton-web/docker/entrypoint.shwith its golden casedocker/tests/golden/bbb-web/(parity.yamllists every difference from bare metal).redis:7.0.15-alpine(theversion of Ubuntu 24.04),
collabora/code:26.04.5.1.1,ghcr.io/bigbluebutton/bbb-webhooks:3.7.0.ghcr.io/bigbluebutton/bbb-webrtc-sfu:2.25.0-beta.3is the base of a thin layer(
docker/bbb-webrtc-sfu/). Versions follow the<component>.placeholder.shpins. The SFU andwebhooks images run upstream's Node 22.
conversion(Collabora) runs as its image's usercool, keepsCHOWN,FOWNERandSYS_CHROOT, runs withoutno-new-privilegesand hasexectmpfs mounts for its jaildirectories, because its per-document chroot jails need them. It is on an internal network
with bbb-web only, and its data sources are limited to loopback.
setupruns as root with onlyCHOWNandDAC_OVERRIDE, to write.envinto a directoryof any owner (
--userruns it as you instead)./tmptmpfs allowsexec: the Hasura CLI runs its helper from there.net.ipv4.ip_unprivileged_port_start=0.upstream's yq checksums, which cover amd64 only); the reasons are in
docker/bake/*.hcl.Credits
This builds on the Docker work started in this PR and on the work from the 2025 Vienna Dev
Summit by @samuelwei, @danimo, @fcecagno, @gschwienbacher and @tibroc, which is kept as its own
commits with their original authors (Samuel Weirich's squashed summit commit and "Add arm
support", Daniel Molkentin's "parallelize platform builds").
Samuel Weirich (@samuelwei) independently updated these Docker files for 4.0 in
samuelwei#2. His findings confirmed several fixes and informed the learning
dashboard and export-annotations images; the commits that take over his approach carry a
Co-authored-by: Samuel Weirich <[email protected]>trailer.