Skip to content

Commit d654c89

Browse files
authored
Merge pull request bigbluebutton#322 from ben-ba/v2.7.3
adding bbb-export-annotations configurations ->
2 parents ca63812 + 082e129 commit d654c89

File tree

5 files changed

+93
-0
lines changed

5 files changed

+93
-0
lines changed

docker-compose.tmpl.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,27 @@ services:
173173
bbb-net:
174174
ipv4_address: 10.7.7.18
175175

176+
bbb-export-annotations:
177+
build:
178+
context: mod/bbb-export-annotations
179+
additional_contexts:
180+
bigbluebutton: ./repos/bigbluebutton
181+
image: alangecker/bbb-docker-bbb-export-annotations:v2.7.0
182+
restart: unless-stopped
183+
depends_on:
184+
- redis
185+
- etherpad
186+
- bbb-pads
187+
networks:
188+
# need connections to:
189+
# https://github.com/bigbluebutton/bigbluebutton/blob/v2.7.0/bbb-export-annotations/config/settings.json
190+
# "bbbWebAPI": "http://127.0.0.1:8090", -> bbb-web
191+
# "bbbPadsAPI": "http://127.0.0.1:9002", -> bbb-pads
192+
bbb-net:
193+
ipv4_address: 10.7.7.19
194+
volumes:
195+
- bigbluebutton:/var/bigbluebutton
196+
176197
redis:
177198
image: redis:7.2-alpine
178199
restart: unless-stopped

docs/network-config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Services as configured.
2424
| coturn | network_mode: host | |
2525
| greenlight | | | ports: 10.7.7.1:5000:80
2626
| prometheus | bbb-net | 10.7.7.33 |
27+
| bbb-export-annotations | bbb-net | 10.7.7.19 |
2728

2829
```yml
2930
networks:
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM node:18-bullseye-slim AS builder
2+
3+
COPY --from=bigbluebutton /bbb-export-annotations /bbb-export-annotations
4+
RUN cd /bbb-export-annotations && npm ci && npm install
5+
6+
# --------------------
7+
8+
FROM node:18-bullseye-slim
9+
10+
#depends on;
11+
#Depends: nodejs,npm,bbb-apps-akka,bbb-web,cairosvg,ghostscript,imagemagick, nodejs (>= 18), nodejs (<< 20)
12+
#see repo https://ubuntu.bigbluebutton.org/focal-270/ bigbluebutton-focal main
13+
#apt info bbb-export-annotations
14+
#missing dependency: poppler-utils for pdftocairo bin -> covert background / original presentation to png
15+
RUN apt update && apt install -y \
16+
nodejs npm cairosvg ghostscript imagemagick nodejs poppler-utils
17+
# && useradd --uid 2004 --create-home --user-group bbb-export
18+
19+
COPY --from=builder /bbb-export-annotations /bbb-export-annotations
20+
#we need acces to volume bigbluebutton!
21+
USER root
22+
COPY ./config/settings.json /bbb-export-annotations/config/settings.json
23+
COPY entrypoint.sh /entrypoint.sh
24+
ENTRYPOINT /entrypoint.sh
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"log": {
3+
"level": "info",
4+
"msgName": "PresAnnStatusMsg"
5+
},
6+
"shared": {
7+
"presDir": "/var/bigbluebutton",
8+
"presAnnDropboxDir": "/tmp/pres-ann-dropbox",
9+
"cairosvg": "/usr/bin/cairosvg",
10+
"ghostscript": "/usr/bin/gs",
11+
"imagemagick": "/usr/bin/convert",
12+
"pdftocairo": "/usr/bin/pdftocairo"
13+
},
14+
"collector": {
15+
"pngWidthRasterizedSlides": 2560
16+
},
17+
"process": {
18+
"whiteboardTextEncoding": "utf-8",
19+
"maxImageWidth": 1440,
20+
"maxImageHeight": 1080,
21+
"textScaleFactor": 2,
22+
"pointsPerInch": 72,
23+
"pixelsPerInch": 96
24+
},
25+
"notifier": {
26+
"pod_id": "DEFAULT_PRESENTATION_POD",
27+
"is_downloadable": "false",
28+
"msgName": "NewPresFileAvailableMsg"
29+
},
30+
"bbbWebAPI": "http://bbb-web:8090",
31+
"bbbPadsAPI": "http://bbb-pads:9002",
32+
"redis": {
33+
"host": "redis",
34+
"port": 6379,
35+
"password": null,
36+
"channels": {
37+
"queue": "exportJobs",
38+
"publish": "to-akka-apps-redis-channel"
39+
}
40+
}
41+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
set -e
3+
4+
cd /bbb-export-annotations
5+
export NODE_ENV=production
6+
npm start

0 commit comments

Comments
 (0)