Skip to content

Commit d239b5d

Browse files
committed
provide a docker compose setup for plugin and room hub
1 parent d2e233c commit d239b5d

File tree

4 files changed

+65
-1
lines changed

4 files changed

+65
-1
lines changed

Caddyfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
room-connector.example.com {
2+
3+
# BBB PLugin
4+
root * /srv
5+
file_server
6+
7+
# Room Hub
8+
route /room-hub* {
9+
uri strip_prefix /room-hub
10+
reverse_proxy room_hub:8080
11+
}
12+
13+
}

docker-compose.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
services:
2+
room-connector-plugin:
3+
image: room-conntector-plugin:latest
4+
container_name: room_connector_plugin
5+
volumes:
6+
- ./plugins:/plugins
7+
8+
room_hub:
9+
image: ghcr.io/bigbluebutton/bigbluebutton-room-media-connector:develop
10+
container_name: room_hub
11+
restart: unless-stopped
12+
networks:
13+
- room_hub_network
14+
15+
caddy:
16+
image: caddy:latest
17+
container_name: caddy
18+
volumes:
19+
- ./plugins:/srv:ro
20+
- ./caddy:/etc/caddy:ro
21+
ports:
22+
- "80:80"
23+
- "443:443"
24+
networks:
25+
- room_hub_network
26+
27+
networks:
28+
room_hub_network:
29+
driver: bridge

html-plugin/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Stage 1: Build the JavaScript bundle
2+
FROM node:18 AS build
3+
4+
WORKDIR /app
5+
6+
COPY package*.json ./
7+
8+
RUN npm install
9+
10+
COPY . .
11+
12+
RUN npm run build-bundle
13+
14+
# Stage 2: Copy bundle to the host
15+
FROM alpine:latest
16+
WORKDIR /output
17+
18+
COPY --from=build /app/dist /output
19+
COPY --from=build /app/manifest.json /output
20+
21+
# Copy the bundle to the hosts file system
22+
CMD ["sh", "-c", "cp -r /output/* /plugins/plugins/room-connector-plugin"]

html-plugin/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"requiredSdkVersion": "~0.0.68",
2+
"requiredSdkVersion": "~0.1.2",
33
"name": "RoomMediaPlugin",
44
"javascriptEntrypointUrl": "RoomMediaPlugin.js",
55
"localesBaseUrl": "https://cdn.dominio.com/pluginabc/"

0 commit comments

Comments
 (0)