| 1 |
FROM centos |
| 2 |
MAINTAINER Jehan Monnier <[email protected]> |
| 3 |
|
| 4 |
# Prepare dependencies |
| 5 |
COPY Belledonne.repo /etc/yum.repos.d/Belledonne.repo |
| 6 |
RUN yum -y install epel-release gdb |
| 7 |
RUN yum update -y |
| 8 |
RUN yum -y install git gcc gcc-c++ make cmake3 mbedtls-devel rpm-build soci-devel soci-sqlite3-devel |
| 9 |
|
| 10 |
RUN mkdir -p /etc/opt/belledonne-communications/lime |
| 11 |
#RUN rm -rf /root/rpmbuild/RPMS/x86_64/* |
| 12 |
|
| 13 |
RUN git clone https://gitlab.linphone.org/BC/public/external/decaf.git -b bc --depth 1 |
| 14 |
RUN cd decaf && mkdir WORK && cd WORK && cmake3 ../ -DENABLE_STATIC=yes -DCMAKE_POSITION_INDEPENDENT_CODE=yes -DENABLE_SHARED=no -DCMAKE_PREFIX_PATH=/opt/belledonne-communications/lime \ |
| 15 |
-DCMAKE_INSTALL_PREFIX=/opt/belledonne-communications/lime && make install |
| 16 |
|
| 17 |
RUN git clone https://gitlab.linphone.org/BC/public/bctoolbox.git --depth 1 |
| 18 |
RUN cd bctoolbox && mkdir WORK && cd WORK && cmake3 ../ -DENABLE_DECAF=yes -DENABLE_TESTS_COMPONENT=no -DENABLE_TESTS=no -DBC_PACKAGE_NAME_PREFIX=bclime- -DCPACK_PACKAGE_NAME=bclime-bctoolbox -DCMAKE_PREFIX_PATH=/opt/belledonne-communications/lime \ |
| 19 |
-DCMAKE_INSTALL_PREFIX=/opt/belledonne-communications/lime && make package_source && rpmbuild -ta *.tar.gz && rpm -Uhv /root/rpmbuild/RPMS/x86_64/bclime-bctoolbox*.rpm --replacefiles --replacepkgs |
| 20 |
|
| 21 |
RUN git clone https://gitlab.linphone.org/BC/public/lime.git --depth 1 |
| 22 |
RUN cd lime && mkdir WORK && cd WORK && cmake3 ../ -DBC_PACKAGE_NAME_PREFIX=bclime- -DCPACK_PACKAGE_NAME=bclime-lime -DENABLE_UNIT_TESTS=no -DCMAKE_PREFIX_PATH=/opt/belledonne-communications/lime \ |
| 23 |
-DCMAKE_INSTALL_PREFIX=/opt/belledonne-communications/lime && make package_source && rpmbuild -ta *.tar.gz && rpm -Uhv /root/rpmbuild/RPMS/x86_64/bclime-lime*.rpm --replacefiles --replacepkgs |
| 24 |
|
| 25 |
#cleanup |
| 26 |
|