mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 17:57:16 +02:00
67 lines
2.3 KiB
Text
67 lines
2.3 KiB
Text
ARG AV_VERSION
|
|
ARG CUDA_VERSION
|
|
ARG CENTOS_VERSION=7
|
|
FROM alicevision/alicevision:${AV_VERSION}-centos${CENTOS_VERSION}-cuda${CUDA_VERSION}
|
|
LABEL maintainer="AliceVision Team alicevision-team@googlegroups.com"
|
|
|
|
# Execute with nvidia docker (https://github.com/nvidia/nvidia-docker/wiki/Installation-(version-2.0))
|
|
# docker run -it --runtime=nvidia meshroom
|
|
|
|
ENV MESHROOM_DEV=/opt/Meshroom \
|
|
MESHROOM_BUILD=/tmp/Meshroom_build \
|
|
MESHROOM_BUNDLE=/opt/Meshroom_bundle \
|
|
QT_DIR=/opt/Qt/5.15.2/gcc_64 \
|
|
QT_CI_LOGIN=alicevisionjunk@gmail.com \
|
|
QT_CI_P=azerty1.
|
|
|
|
WORKDIR ${MESHROOM_BUNDLE}
|
|
RUN mv "${AV_BUNDLE}" "${MESHROOM_BUNDLE}/aliceVision" && \
|
|
rm -rf ${MESHROOM_BUNDLE}/aliceVision/share/doc \
|
|
${MESHROOM_BUNDLE}/aliceVision/share/eigen3 \
|
|
${MESHROOM_BUNDLE}/aliceVision/share/fonts \
|
|
${MESHROOM_BUNDLE}/aliceVision/share/lemon \
|
|
${MESHROOM_BUNDLE}/aliceVision/share/libraw \
|
|
${MESHROOM_BUNDLE}/aliceVision/share/man \
|
|
${MESHROOM_BUNDLE}/aliceVision/share/pkgconfig
|
|
|
|
# Install libs needed by Qt
|
|
RUN yum install -y \
|
|
flex \
|
|
fontconfig \
|
|
freetype \
|
|
glib2 \
|
|
libICE \
|
|
libX11 \
|
|
libxcb \
|
|
libXext \
|
|
libXi \
|
|
libXrender \
|
|
libSM \
|
|
libXt-devel \
|
|
libGLU-devel \
|
|
mesa-libOSMesa-devel \
|
|
mesa-libGL-devel \
|
|
mesa-libGLU-devel \
|
|
xcb-util-keysyms \
|
|
xcb-util-image \
|
|
xcb-util-wm \
|
|
xcb-util-renderutil \
|
|
libxkbcommon-x11
|
|
|
|
# Install Python3
|
|
RUN yum install -y centos-release-scl && yum install -y rh-python36 && source scl_source enable rh-python36 && pip install --upgrade pip
|
|
|
|
COPY ./*requirements.txt ${MESHROOM_DEV}/
|
|
|
|
# Install Meshroom requirements and freeze bundle
|
|
WORKDIR "${MESHROOM_DEV}"
|
|
RUN source scl_source enable rh-python36 && pip install -r dev_requirements.txt -r requirements.txt
|
|
|
|
# Install Qt (to build plugins)
|
|
WORKDIR /tmp/qt
|
|
COPY dl/qt.run /tmp/qt
|
|
RUN chmod +x qt.run
|
|
RUN ./qt.run --verbose --email ${QT_CI_LOGIN} --password ${QT_CI_P} --accept-obligations --accept-licenses \
|
|
--default-answer --platform minimal --no-force-installations --no-default-installations --confirm-command \
|
|
install qt.qt5.5152.gcc_64 qt.qt5.5152.qtcharts qt.qt5.5152.qtcharts.gcc_64
|
|
RUN rm qt.run
|