docker/mod/core/Dockerfile

76 lines
3.3 KiB
Docker
Raw Normal View History

2017-10-27 21:01:25 +02:00
FROM ubuntu:16.04
MAINTAINER ffdixon@bigbluebutton.org
# TODO:
# - separate bbb-apps into an own container
# - separate bbb-web
# - remove systemd
2017-10-27 21:01:25 +02:00
ENV DEBIAN_FRONTEND noninteractive
2019-12-09 04:34:03 +01:00
ENV container docker
ENV DOCKERIZE_VERSION v0.6.1
2019-12-09 04:34:03 +01:00
RUN apt-get update && apt-get install -y software-properties-common language-pack-en wget
2019-01-27 21:45:12 +01:00
RUN update-locale LANG=en_US.UTF-8
2019-12-09 04:34:03 +01:00
RUN LC_CTYPE=C.UTF-8 add-apt-repository ppa:rmescandon/yq
2020-04-09 15:43:58 +02:00
RUN apt-get install -y --no-install-recommends apt-utils
2017-10-27 21:01:25 +02:00
# install dockerize
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
2020-04-09 15:43:58 +02:00
# install dev helpers
2020-04-11 11:34:17 +02:00
# RUN apt-get install -y tcpdump telnet htop vim
2017-10-27 21:01:25 +02:00
# -- Install Dependencies
2020-04-11 11:34:17 +02:00
RUN apt-get install -y systemd apt-transport-https equivs libreoffice haveged ttf-liberation net-tools
2020-04-09 02:11:32 +02:00
2020-04-09 15:43:58 +02:00
# bbb repo & packages
2020-04-09 02:11:32 +02:00
RUN LC_CTYPE=C.UTF-8 add-apt-repository ppa:bigbluebutton/support
2020-04-09 15:43:58 +02:00
RUN sh -c 'wget https://ubuntu.bigbluebutton.org/repo/bigbluebutton.asc -O- | apt-key add -' \
2020-05-14 15:21:21 +02:00
&& sh -c 'echo "deb https://packages-eu.bigbluebutton.org/xenial-22 bigbluebutton-xenial main" > /etc/apt/sources.list.d/bigbluebutton.list'
2020-04-09 15:43:58 +02:00
# create dummy packages to satisfy dependencies
RUN equivs-control redis-server.control \
&& sed -i 's/<package name; defaults to equivs-dummy>/redis-server/g' redis-server.control \
&& equivs-build redis-server.control \
&& dpkg -i /*.deb \
&& rm /*.deb
2020-04-09 02:11:32 +02:00
2020-04-11 11:34:17 +02:00
# -- create dummy service to avoid start up errors
2020-04-09 19:33:13 +02:00
COPY dummy.service /etc/systemd/system/redis-server.service
2020-04-09 02:11:32 +02:00
2020-05-14 15:21:21 +02:00
RUN apt-get update && apt-get install -y bbb-web \
2020-04-11 11:34:17 +02:00
bbb-fsesl-akka bbb-apps-akka bbb-transcode-akka bbb-apps \
2020-04-09 15:43:58 +02:00
bbb-apps-video bbb-apps-screenshare bbb-apps-video-broadcast
2020-04-09 02:11:32 +02:00
2020-04-11 11:34:17 +02:00
# -- avoid blocking java
# https://github.com/bigbluebutton/bigbluebutton/issues/8959
RUN sed -i 's|securerandom.source=file:/dev/random|securerandom.source=file:/dev/urandom|g' /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/java.security
# -- Disable unneeded services
2020-04-09 22:33:27 +02:00
RUN find /etc/systemd/ | grep wants | xargs -r -n 1 basename | grep service | grep -v networking | grep -v tty | xargs -r -n 1 -I __ systemctl disable __
2020-04-11 11:34:17 +02:00
RUN systemctl disable systemd-journal-flush systemd-update-utmp.service
2020-05-14 15:21:21 +02:00
RUN systemctl enable red5 bbb-apps-akka bbb-transcode-akka bbb-fsesl-akka bbb-web # bbb-rap-caption-inbox
2020-04-09 02:11:32 +02:00
2020-04-11 11:34:17 +02:00
# -- fix directory permissions
RUN chown bigbluebutton:bigbluebutton /var/bigbluebutton
COPY entrypoint.sh /entrypoint.sh
2017-10-27 21:01:25 +02:00
# -- copy configuration files
COPY red5.properties /usr/share/red5/conf/red5.properties
COPY bigbluebutton.properties /usr/share/red5/webapps/bigbluebutton/WEB-INF/bigbluebutton.properties
COPY bigbluebutton-sip.properties /usr/share/red5/webapps/sip/WEB-INF/bigbluebutton-sip.properties
COPY bigbluebutton.yml /usr/local/bigbluebutton/core/scripts/bigbluebutton.yml
COPY web/bigbluebutton.properties /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties.tmpl
COPY bbb-apps-akka/application.conf /usr/share/bbb-apps-akka/conf/application.conf.tmpl
COPY bbb-fsesl-akka/application.conf /etc/bbb-fsesl-akka/application.conf
2020-04-29 16:35:03 +02:00
COPY web-run.sh /usr/share/bbb-web/run-prod.sh
ENTRYPOINT ["/entrypoint.sh"]
2017-10-27 21:01:25 +02:00
CMD []
2019-12-09 04:34:03 +01:00