mirror of
https://github.com/bigbluebutton/docker.git
synced 2025-06-01 07:55:36 +02:00
etherpad: add plugins (enables closed captions)
This commit is contained in:
parent
e0b82391a2
commit
53a348fded
@ -57,16 +57,12 @@ services:
|
|||||||
- "host.docker.internal:10.7.7.1"
|
- "host.docker.internal:10.7.7.1"
|
||||||
|
|
||||||
etherpad:
|
etherpad:
|
||||||
image: etherpad/etherpad:1.8.4
|
build: mod/etherpad
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
environment:
|
environment:
|
||||||
ETHERPAD_API_KEY: ${ETHERPAD_API_KEY}
|
ETHERPAD_API_KEY: ${ETHERPAD_API_KEY}
|
||||||
volumes:
|
|
||||||
- ./mod/pad/settings.json:/opt/etherpad-lite/settings.json
|
|
||||||
- ./mod/pad/entrypoint.sh:/entrypoint.sh
|
|
||||||
entrypoint: /entrypoint.sh
|
|
||||||
networks:
|
networks:
|
||||||
bbb-net:
|
bbb-net:
|
||||||
ipv4_address: 10.7.7.4
|
ipv4_address: 10.7.7.4
|
||||||
|
21
mod/etherpad/Dockerfile
Normal file
21
mod/etherpad/Dockerfile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
FROM etherpad/etherpad:1.8.4
|
||||||
|
|
||||||
|
USER root
|
||||||
|
|
||||||
|
# install etherpad plugins
|
||||||
|
# - ep_delete_after_delay_lite
|
||||||
|
# - ep_redis_publisher
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y git \
|
||||||
|
&& npm install ep_delete_after_delay_lite git+https://git@github.com/pedrobmarin/ep_redis_publisher.git
|
||||||
|
|
||||||
|
# apply "Including more data at pad update event"
|
||||||
|
# https://github.com/mconf/etherpad-lite/commit/5bc37fc92714e82165386dc0a5dd467609169a87
|
||||||
|
# this is a necessary patch for the closed captions
|
||||||
|
RUN sed -i "s|hooks\.callAll(\"padUpdate\".*)|hooks\.callAll(\"padUpdate\", {'pad':this, 'author': author, 'revs': newRev, 'changeset': aChangeset});|" /opt/etherpad-lite/src/node/db/Pad.js
|
||||||
|
|
||||||
|
COPY settings.json /opt/etherpad-lite/settings.json
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
USER etherpad
|
||||||
|
ENTRYPOINT ["/entrypoint.sh"]
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo $ETHERPAD_API_KEY > /tmp/apikey
|
echo $ETHERPAD_API_KEY > /tmp/apikey
|
||||||
export NODE_ENV=production
|
export NODE_ENV=production
|
||||||
|
|
||||||
node /opt/etherpad-lite/node_modules/ep_etherpad-lite/node/server.js --apikey /tmp/apikey
|
node /opt/etherpad-lite/node_modules/ep_etherpad-lite/node/server.js --apikey /tmp/apikey
|
Loading…
x
Reference in New Issue
Block a user