Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review: 4
Please check the settings in the CodeRabbit UI or the
|
b7ad9d1 to
55fd807
Compare
|
This pull request has conflicts ☹ |
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.
55fd807 to
9ef5d6c
Compare
9ef5d6c to
4ca73da
Compare
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.
…y images bbb-html5-client, bbb-learning-dashboard and bbb-playback each ran their own nginx only to hand static files to the main nginx. They now hold only the built files (FROM scratch), at the paths their packages install them to. A deployment mounts them into bbb-nginx at the same paths. bbb-nginx gets the packages' location files for them in place of the proxy locations: bbb-html5.nginx* (bbb-html5), learning-dashboard.nginx (bbb-learning-dashboard) and playback.nginx (bbb-playback). The dashboard's image covers /var/bigbluebutton/learning-dashboard, where bbb-web writes its reports, so nginx reads the reports from /srv/learning-dashboard.
nginx mounts the HTML5 client, the learning dashboard and the player from their images as read-only image volumes, at the package paths, and the html5-client, learning-dashboard and playback services go away. The player is now always there, also without the recording profile. init creates the two mount points under ./data/bigbluebutton, as the packages do, and nginx starts after it: a mount point cannot be created inside the read-only /var/bigbluebutton. The reports of bbb-web are mounted at /srv/learning-dashboard. docker compose pull does not pull images that are only mounted, and before Compose 5.1 up -d does not recreate nginx when the image behind a tag changed. The docs show how to pull them and recreate nginx.
4ca73da to
a83749e
Compare
…(html5 dev setup in the override sample)
✅ Automated tests have passed! |
|
Heads-up: with this PR, nginx would not come back after a reboot. The three I reproduced it with the pattern alone, in clean services:
nginx:
image: nginx:1.27-alpine
restart: unless-stopped
volumes:
- type: image
source: alpine:3
target: /usr/share/nginx/html/static
image:
subpath: etc
Until moby#50999 is fixed, keeping image mounts off long-running services seems safest. A |
|
Thanks, confirmed, and it's worse without
I'm moving this PR back to draft until moby#50999 is fixed for both stores. The same applies to |
|
This pull request has conflicts ☹ |
|
I left this one out of the merges of the other follow-ups: with it applied, nginx does not come back after a reboot of the host, and the site stays down until nginx is recreated. Seen on #26711 + #26692 + #26693 rebased onto #26734, on Docker Engine 29.10.1 with the containerd image store. After a reboot, with the stack running or after
I am looking into the best way to solve this and will come back with options soon. |
Draft: image mounts lose their content after a daemon restart or reboot (moby/moby#50999), see the comments below. Waiting for a fix in Docker. Based on #26710; its own changes are the last two commits (compare).
The HTML5 client, the learning dashboard and the player each ran their own nginx only to hand static files to the main nginx. Their images now hold only the built files (
FROM scratch), at the paths their packages install them to. nginx mounts them read-only as image volumes (Docker Engine 28 / Compose 2.35; Kubernetesimagevolumes: on by default from 1.35, stable in 1.36) and serves them with the packages' own location files, as on bare metal. The compose stack loses three containers (about 50 MiB), and the images shrink: the dashboard from 100 to 9 MB, the player from 117 to 25 MB, the client from 498 to 406 MB. bbb-web's dashboard reports, which share a directory with the app on bare metal, are mounted for nginx at/srv/learning-dashboard.initcreates the two mount points, as the packages do.docker compose pulldoes not pull images that are only mounted, and Compose before 5.1 doesn't recreate nginx when such an image changes under the same tag. The upgrade section of the docs shows the extra pull and--force-recreate, recommends Compose 5.1 or later, and links the Compose issue and its open fix (docker/compose#13809, docker/compose#13811). Tested with Compose 2.35.1, 2.40.3 and 5.6.0: a fresh start, joining a meeting, the dashboard with data, and a recording played back.