Skip to content

feat(docker): let .env choose the image of each component - #26710

Merged
TiagoJacobs merged 8 commits into
bigbluebutton:v4.1.x-developfrom
tibroc:compose/image-vars
Nov 26, 2026
Merged

TiagoJacobs merged 8 commits into
bigbluebutton:v4.1.x-developfrom
tibroc:compose/image-vars

Conversation

@tibroc

@tibroc tibroc commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

BBB_IMAGE_TAG selects one version for all images. To run another build of one component, an admin had to write a docker-compose.override.yml. That doesn't fit a .env-only install, and it doesn't change the images that init mounts its schemas from.

This adds one optional variable per image, BBB_<IMAGE>_IMAGE (e.g. BBB_WEB_IMAGE=localhost/bbb-web:dev), holding a full image reference: another tag, registry, a local build or a digest. The variable applies wherever the image is used, including the image mounts. Unset, the rendered config is identical to before.

The docs list all variables, .env.sample shows three examples, and the sample override and the development guide keep only pull_policy: never for local builds. Nested defaults are tested with compose 2.35.1 and 2.40.3.

A second commit makes docker-compose.override.sample.yml the one place for development settings. The HTML5 dev setup (nginx proxying /html5client/ to the webpack dev server) moves there from docker/compose/dev/, which is removed. It is one commented block with two variants: the dev server on your machine, or in a container. The nginx location file is inline as a compose config. No COMPOSE_FILE in .env any more, which also removes the trap that compose then reads docker-compose.override.yml only when it is listed.

Tested:

  • With nothing set, the rendered config is unchanged.
  • Setting two images changes exactly their four lines.
  • A stack with a locally built notes image set only in .env: the check-up and the join test pass, including the notes PDF export.
  • The sample as is, with only pull_policy, and with either HTML5 variant: docker compose config passes with compose 2.35.1 and 2.40.3, and nginx gets exactly the block's settings added to the main file's (mounts, configs and depends_on are merged, not replaced).
  • Both HTML5 variants in a stack: /html5client/ comes from the dev server (x-powered-by: Express, the unbundled bundle.js), the locales from the source tree, and the check-up passes.

… 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: ec7fa025-a6fe-435f-b966-6eeca4e85b92

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

@github-actions

Copy link
Copy Markdown

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@antobinary antobinary added this to the Release 4.1 milestone Nov 25, 2026
@tibroc
tibroc force-pushed the compose/image-vars branch from 747952a to 949aacb Compare November 25, 2026 11:03
@tibroc
tibroc marked this pull request as ready for review November 25, 2026 11:09
tibroc added a commit to tibroc/bigbluebutton that referenced this pull request Nov 25, 2026
…(html5 dev setup in the override sample)
TiagoJacobs and others added 7 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.
TiagoJacobs added a commit to tibroc/bigbluebutton that referenced this pull request Nov 26, 2026
Every BBB image has a BBB_<IMAGE>_IMAGE variable since bigbluebutton#26710, and init no longer mounts the schemas from the graphql-server and shared-notes-server images.
@github-actions

Copy link
Copy Markdown

✅ Automated tests have passed!

@TiagoJacobs
TiagoJacobs merged commit b01a6fb into bigbluebutton:v4.1.x-develop Nov 26, 2026
103 of 106 checks passed
@tibroc
tibroc deleted the compose/image-vars 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