Last active
October 10, 2017 13:57
-
-
Save thomas-mc-work/d19ec869512eac9d1ca9c7079f36c6df to your computer and use it in GitHub Desktop.
Containerized compilation of linphone4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:9 | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN \ | |
apt-get update \ | |
&& apt-get dist-upgrade -y | |
RUN apt-get install -y cmake curl build-essential \ | |
# for mediastreamer2 required | |
libspeexdsp-dev libavcodec-dev \ | |
# for mediastreamer2 optional | |
libsrtp0-dev libgsm0710-dev libopus-dev libspeex-dev libalsa-ocaml-dev libpulse-dev libv4l-dev libx11-dev \ | |
libgl1-mesa-dev libvpx-dev libmatroska-dev libturbojpeg0-dev \ | |
# for belle-sip | |
openjdk-8-jre antlr \ | |
# for linphone | |
libxml2-dev zlib1g-dev libsqlite3-dev gettext libintl-perl | |
# mbedtls https://github.com/ARMmbed/mbedtls | |
RUN \ | |
curl -Lo mbedtls.tar.gz https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.6.0.tar.gz \ | |
&& tar xf mbedtls.tar.gz \ | |
&& rm mbedtls.tar.gz | |
RUN \ | |
cd mbedtls-mbedtls-2.6.0 \ | |
&& cmake . \ | |
&& make \ | |
&& make install | |
# bcunit | |
RUN \ | |
curl -Lo bcunit.tar.gz https://github.com/BelledonneCommunications/bcunit/archive/3.0.2.tar.gz \ | |
&& tar xf bcunit.tar.gz \ | |
&& rm bcunit.tar.gz | |
RUN \ | |
cd bcunit-3.0.2 \ | |
&& cmake . \ | |
&& make \ | |
&& make install | |
# bctoolbox https://github.com/BelledonneCommunications/bctoolbox | |
RUN \ | |
curl -Lo bctoolbox.tar.gz https://www.linphone.org/releases/sources/bctoolbox/bctoolbox-0.6.0.tar.gz \ | |
&& tar xf bctoolbox.tar.gz \ | |
&& rm bctoolbox.tar.gz | |
RUN \ | |
cd bctoolbox-0.6.0 \ | |
&& cmake . \ | |
&& make \ | |
&& make install | |
# belr | |
RUN \ | |
curl -Lo belr.tar.gz https://www.linphone.org/releases/sources/belr/belr-0.1.3.tar.gz \ | |
&& tar xf belr.tar.gz \ | |
&& rm belr.tar.gz | |
RUN \ | |
cd belr-0.1.3-0 \ | |
&& cmake . \ | |
&& make \ | |
&& make install | |
# belcard | |
RUN \ | |
curl -Lo belcard.tar.gz https://www.linphone.org/releases/sources/belcard/belcard-1.0.2.tar.gz \ | |
&& tar xf belcard.tar.gz \ | |
&& rm belcard.tar.gz | |
RUN \ | |
cd belcard-1.0.2-0 \ | |
&& cmake . \ | |
&& make \ | |
&& make install | |
# bzrtp | |
RUN \ | |
curl -Lo bzrtp.tar.gz https://www.linphone.org/releases/sources/bzrtp/bzrtp-1.0.6.tar.gz \ | |
&& tar xf bzrtp.tar.gz \ | |
&& rm bzrtp.tar.gz | |
RUN \ | |
cd bzrtp-1.0.6 \ | |
&& cmake . \ | |
&& make \ | |
&& make install | |
# mediastreamer2 | |
RUN \ | |
curl -Lo mediastreamer2.tar.gz https://www.linphone.org/releases/sources/mediastreamer/mediastreamer-2.16.1.tar.gz \ | |
&& tar xf mediastreamer2.tar.gz \ | |
&& rm mediastreamer2.tar.gz | |
RUN \ | |
cd mediastreamer-2.16.1 \ | |
&& cmake . \ | |
&& make \ | |
&& make install | |
# belle-sip | |
RUN \ | |
curl -Lo belle-sip.tar.gz https://www.linphone.org/releases/sources/belle-sip/belle-sip-1.6.3.tar.gz \ | |
&& tar xf belle-sip.tar.gz \ | |
&& rm belle-sip.tar.gz | |
RUN \ | |
cd belle-sip-1.6.3-0 \ | |
&& cmake . \ | |
&& make \ | |
&& make install | |
# linphone | |
RUN \ | |
curl -Lo linphone.tar.gz https://www.linphone.org/releases/sources/linphoneqt/linphoneqt-4.1.1.tar.gz \ | |
&& tar xf linphone.tar.gz \ | |
&& rm linphone.tar.gz | |
RUN \ | |
cd linphone-master \ | |
&& cmake . \ | |
&& make | |
VOLUME /linphone-master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment