Commit 6a76a6cd authored by Ghislain MARY's avatar Ghislain MARY

Build qt 5.10 in Centos 7, Debian 8 and Debian 9 docker images.

parent 64b83d80
......@@ -29,17 +29,22 @@ RUN yum install -y mesa-dri-drivers && \
yum clean all && \
dbus-uuidgen > /var/lib/dbus/machine-id
# Build qt5.10.1
#RUN git clone git://git.linphone.org/linphone-desktop.git && ./linphone-desktop/tools/build_qt_rpm && rpm -i ./linphone-desktop/rpm-linphone-qt-5.10.1/rpmbuild/RPMS/x86_64/*.rpm && mv ./linphone-desktop/rpm-linphone-qt-5.10.1/rpmbuild/RPMS/x86_64/*.rpm / && rm -rf ./linphone-desktop
# Build qt5.10
RUN git clone https://gitlab.linphone.org/BC/public/linphone-desktop.git && \
./linphone-desktop/tools/build_qt_rpm && \
rpm -i ./linphone-desktop/rpm-linphone-qt-5.10/rpmbuild/RPMS/x86_64/*.rpm && \
mv ./linphone-desktop/rpm-linphone-qt-5.10/rpmbuild/RPMS/x86_64/*.rpm / && \
rm -rf ./linphone-desktop
# Configure user bc
RUN useradd -ms /bin/bash bc && \
echo 'bc:cotcot' | chpasswd && \
echo 'bc ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
ENV Qt5_DIR=/opt/com.belledonne-communications/linphone/lib/cmake
ENV PATH=$PATH:/opt/com.belledonne-communications/linphone/bin
USER bc
WORKDIR /home/bc
ENV PS1='\[\e[34m\]\u@bc-dev-centos7>\[\e[0m\] '
#ENV Qt5_DIR='/opt/com.belledonne-communications/linphone/lib/cmake'
CMD bash
......@@ -33,13 +33,22 @@ RUN apt-get update && \
apt-get install -y libasound2-dev libavcodec-dev libavutil-dev libbsd-dev libegl1-mesa-dev libglew-dev libgsm1-dev libjansson-dev libmysqlclient-dev libopus-dev libpolarssl-dev libpq-dev libprotobuf-dev libpulse-dev libsnmp-dev libspeex-dev libspeexdsp-dev libsqlite3-dev libsrtp0-dev libssl-dev libswscale-dev libv4l-dev libvpx-dev libxerces-c-dev libxml2-dev libxv-dev protobuf-compiler xsdcxx && \
apt-get clean
# 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
# Configure user bc
RUN useradd -ms /bin/bash bc && \
echo 'bc:cotcot' | chpasswd && \
echo 'bc ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
ENV Qt5_DIR=/opt/com.belledonne-communications/linphone/lib/cmake
ENV PATH=$PATH:/opt/com.belledonne-communications/linphone/bin
USER bc
WORKDIR /home/bc
COPY --chown=bc rpmmacros /home/bc/.rpmmacros
CMD bash
......@@ -30,24 +30,22 @@ RUN apt-get update && \
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 && \
apt-get clean
# Install qt5
COPY qt-linux-installer-noninteractive.qs .
RUN curl --fail --silent --show-error --location http://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run > qt-installer.run && \
chmod u+x qt-installer.run && \
./qt-installer.run --platform minimal --script qt-linux-installer-noninteractive.qs && \
rm qt-installer.run && \
rm qt-linux-installer-noninteractive.qs
# 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
# Configure user bc
RUN useradd -ms /bin/bash bc && \
echo 'bc:cotcot' | chpasswd && \
echo 'bc ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
ENV Qt5_DIR=/opt/Qt/5.11.0/gcc_64/lib/cmake
ENV PATH=$PATH:/opt/Qt/5.11.0/gcc_64/bin
ENV Qt5_DIR=/opt/com.belledonne-communications/linphone/lib/cmake
ENV PATH=$PATH:/opt/com.belledonne-communications/linphone/bin
USER bc
WORKDIR /home/bc
COPY --chown=bc rpmmacros /home/bc/.rpmmacros
CMD bash
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment