2020-08-15 03:26:33 +02:00
|
|
|
|
2024-01-07 23:48:34 +01:00
|
|
|
FROM ruby:3.0-slim-bullseye
|
2020-08-15 03:26:33 +02:00
|
|
|
|
|
|
|
# install apt dependencies
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
wget \
|
|
|
|
subversion \
|
|
|
|
rsync \
|
|
|
|
build-essential \
|
|
|
|
libsystemd-dev \
|
|
|
|
python3 \
|
2022-03-22 23:24:17 +01:00
|
|
|
python3-attr \
|
|
|
|
python3-cairo \
|
|
|
|
python3-gi \
|
|
|
|
python3-gi-cairo \
|
2020-08-15 03:26:33 +02:00
|
|
|
python3-lxml \
|
|
|
|
python3-icu \
|
2022-03-22 23:24:17 +01:00
|
|
|
python3-pyinotify \
|
2023-03-21 12:59:59 +01:00
|
|
|
python3-sortedcollections \
|
|
|
|
python3-packaging \
|
2022-03-22 23:24:17 +01:00
|
|
|
gir1.2-pangocairo-1.0 \
|
2023-03-21 12:59:59 +01:00
|
|
|
gir1.2-poppler-0.18 \
|
|
|
|
gir1.2-gtk-3.0 \
|
|
|
|
gir1.2-gdkpixbuf-2.0 \
|
|
|
|
fonts-croscore \
|
2020-08-15 03:26:33 +02:00
|
|
|
ffmpeg \
|
|
|
|
poppler-utils \
|
2020-12-23 23:58:24 +01:00
|
|
|
imagemagick \
|
2021-03-17 03:35:53 +01:00
|
|
|
supervisor \
|
2023-03-23 19:14:11 +01:00
|
|
|
unzip \
|
2021-03-17 03:35:53 +01:00
|
|
|
locales \
|
|
|
|
locales-all
|
2022-04-17 12:38:25 +02:00
|
|
|
# TODO: missing packages
|
2021-03-17 03:35:53 +01:00
|
|
|
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LANGUAGE en_US.UTF-8
|
2020-08-15 03:26:33 +02:00
|
|
|
|
|
|
|
# compile and install mkclean
|
|
|
|
RUN cd /tmp \
|
|
|
|
&& wget https://netcologne.dl.sourceforge.net/project/matroska/mkclean/mkclean-0.8.10.tar.bz2 \
|
|
|
|
&& tar -xf /tmp/mkclean-0.8.10.tar.bz2 \
|
|
|
|
&& cd /tmp/mkclean-0.8.10 \
|
|
|
|
&& sed -i 's/\r//g' ./mkclean/configure.compiled \
|
|
|
|
&& ./mkclean/configure.compiled \
|
|
|
|
&& make -C mkclean \
|
|
|
|
&& cp ./release/gcc_linux_x64/mkclean /usr/bin/mkclean \
|
2020-12-23 23:58:24 +01:00
|
|
|
&& rm -r /tmp/mkclean-*
|
2020-08-15 03:26:33 +02:00
|
|
|
|
|
|
|
# add dockerize
|
|
|
|
ENV DOCKERIZE_VERSION v0.6.1
|
2021-10-06 13:43:53 +02:00
|
|
|
RUN wget -q https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
2020-08-15 03:26:33 +02:00
|
|
|
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
|
|
|
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
|
|
|
|
|
2022-05-07 14:26:04 +02:00
|
|
|
# add yq for bbb-record
|
|
|
|
RUN wget -q https://github.com/mikefarah/yq/releases/download/3.4.1/yq_linux_amd64 -O /usr/bin/yq \
|
|
|
|
&& chmod +x /usr/bin/yq
|
|
|
|
|
2020-08-15 03:26:33 +02:00
|
|
|
RUN mkdir -p \
|
|
|
|
/usr/local/bigbluebutton \
|
|
|
|
/usr/local/bigbluebutton/core \
|
2023-03-21 12:59:59 +01:00
|
|
|
/etc/bigbluebutton \
|
|
|
|
/etc/bigbluebutton/recording
|
|
|
|
|
|
|
|
# dependency for bbb-presentation-video
|
|
|
|
RUN wget -q -O /tmp/python3-perfect-freehand.deb https://github.com/bigbluebutton/perfect-freehand-python/releases/download/1.2.0/python3-perfect-freehand_1.2.0_all.deb && \
|
|
|
|
dpkg -i /tmp/python3-perfect-freehand.deb && \
|
|
|
|
rm /tmp/python3-perfect-freehand.deb
|
2020-08-15 03:26:33 +02:00
|
|
|
|
2022-04-03 23:18:15 +02:00
|
|
|
ARG TAG_RECORDINGS
|
2020-08-15 03:26:33 +02:00
|
|
|
|
2023-11-29 22:17:49 +01:00
|
|
|
COPY --from=record-core / /usr/local/bigbluebutton/core
|
2020-08-15 03:26:33 +02:00
|
|
|
|
|
|
|
# add bbb-playback-presentation scripts
|
2023-11-29 22:17:49 +01:00
|
|
|
COPY --from=presentation /scripts /usr/local/bigbluebutton/core/scripts/
|
2020-08-15 03:26:33 +02:00
|
|
|
|
|
|
|
# install ruby dependencies
|
|
|
|
RUN cd /usr/local/bigbluebutton/core \
|
|
|
|
&& gem install builder \
|
2021-02-11 14:34:55 +01:00
|
|
|
&& gem install bundler --no-document \
|
2023-03-21 12:59:59 +01:00
|
|
|
&& bundle config set --local deployment true \
|
|
|
|
&& bundle install \
|
|
|
|
&& bundle clean \
|
|
|
|
&& rm -r vendor/bundle/ruby/*/cache \
|
|
|
|
&& find vendor/bundle -name '*.o' -delete
|
2020-08-15 03:26:33 +02:00
|
|
|
|
2020-12-23 23:58:24 +01:00
|
|
|
# log to file instead of journald
|
|
|
|
RUN sed -i 's|Journald::Logger\.new.*|Logger.new("/var/log/bigbluebutton/recording.log")|g' /usr/local/bigbluebutton/core/lib/recordandplayback.rb && \
|
|
|
|
sed -i 's|Journald::Logger\.new.*|Logger.new("/var/log/bigbluebutton/recording.log")|g' /usr/local/bigbluebutton/core/scripts/rap-caption-inbox.rb && \
|
2021-11-27 17:49:42 +01:00
|
|
|
sed -i 's|Logger\.new.*|Logger.new("/var/log/bigbluebutton/recording.log")|g' /usr/local/bigbluebutton/core/scripts/rap-process-worker.rb && \
|
|
|
|
sed -i 's|Logger\.new.*|Logger.new("/var/log/bigbluebutton/recording.log")|g' /usr/local/bigbluebutton/core/scripts/archive/archive.rb && \
|
|
|
|
sed -i 's|Logger\.new.*|Logger.new("/var/log/bigbluebutton/recording.log")|g' /usr/local/bigbluebutton/core/scripts/publish/presentation.rb && \
|
|
|
|
sed -i 's|Logger\.new.*|Logger.new("/var/log/bigbluebutton/recording.log")|g' /usr/local/bigbluebutton/core/scripts/utils/captions.rb && \
|
|
|
|
sed -i 's|Logger\.new.*|Logger.new("/var/log/bigbluebutton/recording.log")|g' /usr/local/bigbluebutton/core/scripts/process/presentation.rb
|
2020-12-23 23:58:24 +01:00
|
|
|
|
2020-08-15 03:26:33 +02:00
|
|
|
# add bbb-record with some adjustments so bbb-record works in this environment
|
2023-11-29 22:17:49 +01:00
|
|
|
COPY --from=bbb-conf /bin/bbb-record /usr/bin/bbb-record
|
2020-08-15 03:26:33 +02:00
|
|
|
RUN cd /usr/bin \
|
|
|
|
&& chmod +x /usr/bin/bbb-record \
|
|
|
|
&& sed -i 's/^BBB_WEB.*/BBB_WEB=""/' /usr/bin/bbb-record \
|
|
|
|
&& sed -i 's/systemctl.*//' /usr/bin/bbb-record \
|
2022-04-17 12:38:25 +02:00
|
|
|
&& echo "BIGBLUEBUTTON_RELEASE=$TAG_RECORDINGS" > /etc/bigbluebutton/bigbluebutton-release
|
2020-08-15 03:26:33 +02:00
|
|
|
|
|
|
|
# create user
|
2020-12-16 15:30:49 +01:00
|
|
|
# the ID should match the one creating the files in `core`
|
2020-08-15 03:26:33 +02:00
|
|
|
RUN groupadd -g 998 bigbluebutton && useradd -m -u 998 -g bigbluebutton bigbluebutton
|
2020-12-23 23:58:24 +01:00
|
|
|
|
2020-12-16 15:38:09 +01:00
|
|
|
# change owner
|
|
|
|
# https://github.com/alangecker/bigbluebutton-docker/issues/63
|
2020-12-23 23:58:24 +01:00
|
|
|
RUN chown -R 998:998 /usr/local/bigbluebutton
|
2020-08-15 03:26:33 +02:00
|
|
|
|
2023-03-21 12:59:59 +01:00
|
|
|
ARG TAG_BBB_PRESENTATION_VIDEO
|
|
|
|
RUN cd /tmp/ && \
|
|
|
|
wget -q -O bbb-presentation-video.zip "https://github.com/bigbluebutton/bbb-presentation-video/releases/download/${TAG_BBB_PRESENTATION_VIDEO}/ubuntu-20.04.zip" && \
|
|
|
|
unzip -o bbb-presentation-video.zip -d bbb-presentation-video && \
|
|
|
|
dpkg -i bbb-presentation-video/bbb-presentation-video*.deb && \
|
|
|
|
rm -rf /tmp/*
|
|
|
|
|
2021-11-27 17:49:42 +01:00
|
|
|
COPY bbb-web.properties /etc/bigbluebutton/bbb-web.properties.tmpl
|
2023-03-21 12:59:59 +01:00
|
|
|
COPY recording.yml /etc/bigbluebutton/recording/recording.yml.tmpl
|
2020-12-23 23:58:24 +01:00
|
|
|
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
2020-12-16 15:38:09 +01:00
|
|
|
|
2022-03-22 23:24:17 +01:00
|
|
|
ENTRYPOINT /entrypoint.sh
|