2020-08-15 03:26:33 +02:00
|
|
|
|
2021-02-24 21:50:27 +01:00
|
|
|
FROM ruby:2.5-slim-buster
|
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 \
|
|
|
|
python3-pyinotify \
|
|
|
|
python3-lxml \
|
|
|
|
python3-icu \
|
|
|
|
ffmpeg \
|
|
|
|
poppler-utils \
|
2020-12-23 23:58:24 +01:00
|
|
|
imagemagick \
|
2021-03-17 03:35:53 +01:00
|
|
|
supervisor \
|
|
|
|
locales \
|
|
|
|
locales-all
|
|
|
|
|
|
|
|
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
|
|
|
|
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
|
|
|
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
|
|
|
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
|
|
|
|
|
|
|
|
RUN mkdir -p \
|
|
|
|
/usr/local/bigbluebutton \
|
|
|
|
/usr/local/bigbluebutton/core \
|
2020-12-23 23:58:24 +01:00
|
|
|
/etc/bigbluebutton
|
2020-08-15 03:26:33 +02:00
|
|
|
|
2021-03-27 18:48:05 +01:00
|
|
|
ENV TAG v2.3-beta-1
|
2020-08-15 03:26:33 +02:00
|
|
|
|
|
|
|
# add bbb-record-core (lib, scripts and Gemfile)
|
|
|
|
RUN cd /usr/local/bigbluebutton/core \
|
|
|
|
&& svn checkout https://github.com/bigbluebutton/bigbluebutton/tags/$TAG/record-and-playback/core/lib \
|
|
|
|
&& svn checkout https://github.com/bigbluebutton/bigbluebutton/tags/$TAG/record-and-playback/core/scripts \
|
|
|
|
&& rm -rf /usr/local/bigbluebutton/core/*/.svn \
|
|
|
|
&& wget https://raw.githubusercontent.com/bigbluebutton/bigbluebutton/$TAG/record-and-playback/core/Gemfile.lock \
|
2020-12-23 23:58:24 +01:00
|
|
|
&& wget https://raw.githubusercontent.com/bigbluebutton/bigbluebutton/$TAG/record-and-playback/core/Gemfile \
|
|
|
|
&& wget https://raw.githubusercontent.com/bigbluebutton/bigbluebutton/$TAG/record-and-playback/core/Rakefile
|
2020-08-15 03:26:33 +02:00
|
|
|
|
|
|
|
# add bbb-playback-presentation scripts
|
|
|
|
RUN cd /tmp \
|
|
|
|
&& svn checkout https://github.com/bigbluebutton/bigbluebutton/tags/$TAG/record-and-playback/presentation/scripts \
|
|
|
|
&& rsync -av /tmp/scripts/ /usr/local/bigbluebutton/core/scripts/ \
|
|
|
|
&& rm -rf /tmp/scripts
|
|
|
|
|
|
|
|
# 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 \
|
2020-08-15 03:26:33 +02:00
|
|
|
&& /usr/local/bin/bundle
|
|
|
|
|
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 && \
|
|
|
|
sed -i 's|Logger\.new.*|Logger.new("/var/log/bigbluebutton/recording.log")|g' /usr/local/bigbluebutton/core/scripts/rap-process-worker.rb
|
|
|
|
|
2020-08-15 03:26:33 +02:00
|
|
|
# add bbb-record with some adjustments so bbb-record works in this environment
|
|
|
|
RUN cd /usr/bin \
|
|
|
|
&& wget https://raw.githubusercontent.com/bigbluebutton/bigbluebutton/$TAG/bigbluebutton-config/bin/bbb-record \
|
|
|
|
&& 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 \
|
2020-12-23 23:58:24 +01:00
|
|
|
&& echo "BIGBLUEBUTTON_RELEASE=$TAG" > /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
|
|
|
|
|
|
|
COPY bigbluebutton.yml /usr/local/bigbluebutton/core/scripts/bigbluebutton.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
|
|
|
|
2020-12-23 23:58:24 +01:00
|
|
|
ENTRYPOINT /entrypoint.sh
|