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
|
|
|
|
# - checkfor removeable dependencies and dummy services
|
|
|
|
|
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
|
2020-04-10 11:29:44 +02:00
|
|
|
RUN apt-get update
|
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
|
|
|
|
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
|
|
|
|
RUN apt-get install -y systemd apt-transport-https equivs libreoffice
|
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 \
|
|
|
|
&& equivs-control nginx.control \
|
|
|
|
&& sed -i 's/<package name; defaults to equivs-dummy>/nginx/g' nginx.control \
|
|
|
|
&& equivs-build nginx.control \
|
2020-04-09 18:15:06 +02:00
|
|
|
&& equivs-control bbb-webrtc-sfu.control \
|
|
|
|
&& sed -i 's/<package name; defaults to equivs-dummy>/bbb-webrtc-sfu/g' bbb-webrtc-sfu.control \
|
|
|
|
&& equivs-build bbb-webrtc-sfu.control \
|
2020-04-09 15:43:58 +02:00
|
|
|
&& dpkg -i /*.deb \
|
|
|
|
&& rm /*.deb
|
2020-04-09 02:11:32 +02:00
|
|
|
|
2020-04-09 15:43:58 +02:00
|
|
|
# -- create nginx service (in order to enable it - to avoid the "nginx.service is not active" error)
|
|
|
|
RUN rm -f /etc/systemd/system/nginx.service
|
2020-04-09 19:33:13 +02:00
|
|
|
COPY dummy.service /etc/systemd/system/nginx.service
|
|
|
|
COPY dummy.service /etc/systemd/system/redis.service
|
|
|
|
COPY dummy.service /etc/systemd/system/redis-server.service
|
|
|
|
COPY dummy.service /etc/systemd/system/bbb-webrtc-sfu.service
|
2020-04-09 02:11:32 +02:00
|
|
|
|
2020-04-09 15:43:58 +02:00
|
|
|
RUN touch /etc/init.d/nginx && chmod +x /etc/init.d/nginx
|
2020-04-10 11:29:44 +02:00
|
|
|
RUN apt-get update && apt-get install -y bbb-web bbb-freeswitch-core \
|
2020-04-09 15:43:58 +02:00
|
|
|
bbb-fsesl-akka bbb-apps-akka bbb-transcode-akka bbb-apps bbb-apps-sip \
|
|
|
|
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-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-10 11:29:44 +02:00
|
|
|
RUN systemctl disable systemd-journal-flush
|
|
|
|
RUN systemctl disable systemd-update-utmp.service
|
|
|
|
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-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
|
|
|
|