2017-10-27 21:01:25 +02:00
FROM ubuntu:16.04
MAINTAINER ffdixon@bigbluebutton.org
2020-04-10 11:29:44 +02:00
# 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
2020-04-10 11:29:44 +02:00
ENV DOCKERIZE_VERSION v0.6.1
2019-12-09 04:34:03 +01:00
2020-04-09 02:11:32 +02:00
# just to speed up development, TODO: remove
COPY sources.list /etc/apt/sources.list
2017-10-27 21:01:25 +02:00
2020-04-10 11:29:44 +02: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
2020-04-10 11:29:44 +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
2020-04-10 11:29:44 +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
2020-04-10 11:29:44 +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-04-10 11:29:44 +02:00
&& sh -c 'echo "deb https://ubuntu.bigbluebutton.org/xenial-220 bigbluebutton-xenial main" > /etc/apt/sources.list.d/bigbluebutton.list' \
&& apt-get update
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-04-11 11:34:17 +02:00
RUN apt-get install -y bbb-web bbb-freeswitch-core \
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-09 22:33:27 +02:00
# disable IPv6 support
RUN rm -rf /opt/freeswitch/conf/sip_profiles/*-ipv6*
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
2020-04-10 11:29:44 +02:00
# -- 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-04-10 11:29:44 +02:00
RUN systemctl enable red5 freeswitch 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
2020-04-10 11:29:44 +02:00
COPY entrypoint.sh /entrypoint.sh
2017-10-27 21:01:25 +02:00
2020-04-10 11:29:44 +02:00
ENTRYPOINT [ "/entrypoint.sh" ]
2017-10-27 21:01:25 +02:00
CMD [ ]
2019-12-09 04:34:03 +01:00