bc-dev-debian9 2.06 KB
Newer Older
1 2 3 4
FROM debian:stretch

MAINTAINER Ghislain MARY <ghislain.mary@belledonne-communications.com>

5 6 7 8 9 10 11 12 13

# Configure locale
RUN apt-get update && \
    apt-get install -y locales && \
    apt-get clean && \
    echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
    locale-gen
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'

14 15 16 17 18 19 20 21 22 23
ENV SHELL=/bin/bash
#ENV PS1='\[\e[33m\]\u@bc-dev-debian9>\[\e[0m\] '

# Install common general tools
RUN apt-get update && \
    apt-get install -y nano sudo vim && \
    apt-get clean

# Install development tools
RUN apt-get update && \
24
    apt-get install -y alien at autoconf bison ccache clang cmake doxygen elfutils g++ gdb git graphviz intltool libtool lsb-release make nasm ninja-build openssh-client patch python-pip python-pystache python-six yasm && \
25 26 27
    apt-get clean && \
    pip install sphinx javasphinx sphinx_csharp

28
# Install linphone & flexisip dependencies development packages
29
RUN apt-get update && \
30
    apt-get install -y libasound2-dev libavcodec-dev libavutil-dev libbsd-dev libegl1-mesa-dev libglew-dev libgsm1-dev libjansson-dev libmariadb-dev-compat libmbedtls-dev libopus-dev libpq-dev libprotobuf-dev libpulse-dev libsnmp-dev libspeex-dev libspeexdsp-dev libsqlite3-dev libsrtp2-dev libssl-dev libswscale-dev libturbojpeg0-dev libv4l-dev libvpx-dev libxerces-c-dev libxml2-dev libxv-dev protobuf-compiler xsdcxx && \
31 32
    apt-get clean

33 34 35 36 37 38
# Build qt5.10
RUN git clone https://gitlab.linphone.org/BC/public/linphone-desktop.git && \
    ./linphone-desktop/tools/build_qt_rpm && \
    find "./linphone-desktop/rpm-linphone-qt-5.10/rpmbuild/RPMS/x86_64/" -iname "*.rpm" -exec fakeroot alien -d {} + && \
    find "." -maxdepth 1 -iname "*.deb" -exec dpkg -i {} + && \
    rm -rf ./linphone-desktop
Ghislain MARY's avatar
Ghislain MARY committed
39

40 41 42 43 44
# Configure user bc
RUN useradd -ms /bin/bash bc && \
    echo 'bc:cotcot' | chpasswd && \
    echo 'bc ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

45 46
ENV Qt5_DIR=/opt/com.belledonne-communications/linphone/lib/cmake
ENV PATH=$PATH:/opt/com.belledonne-communications/linphone/bin
Ghislain MARY's avatar
Ghislain MARY committed
47

48 49
USER bc
WORKDIR /home/bc
50
COPY --chown=bc rpmmacros /home/bc/.rpmmacros
51
CMD bash