Debian Codegraph @

docker/Dockerfile_ubuntu_deps

raw
1 ARG AV_VERSION
2 ARG CUDA_VERSION
3 ARG UBUNTU_VERSION
4 FROM alicevision/alicevision:${AV_VERSION}-ubuntu${UBUNTU_VERSION}-cuda${CUDA_VERSION}
5 LABEL maintainer="AliceVision Team [email protected]"
6
7 # Execute with nvidia docker (https://github.com/nvidia/nvidia-docker/wiki/Installation-(version-2.0))
8 # docker run -it --runtime=nvidia meshroom
9
10 ENV MESHROOM_DEV=/opt/Meshroom \
11 MESHROOM_BUILD=/tmp/Meshroom_build \
12 QT_DIR=/opt/Qt/6.8.3/gcc_64 \
13 [email protected] \
14 QT_CI_P=azerty1.
15
16 # Install libs needed by Qt
17 RUN apt-get update && \
18 DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
19 flex \
20 fontconfig \
21 libfreetype6 \
22 libglib2.0-0 \
23 libice6 \
24 libx11-6 \
25 libxcb1 \
26 libxext6 \
27 libxi6 \
28 libxrender1 \
29 libsm6
30
31 RUN apt-get update && \
32 DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
33 libxt-dev \
34 libosmesa-dev \
35 libgl-dev \
36 libegl-dev \
37 libglu-dev \
38 libxkbcommon-x11-0 \
39 libz-dev \
40 systemd \
41 ssh
42
43 RUN apt-get update && \
44 DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
45 libxcb1-dev \
46 libxcb-icccm4 \
47 libxcb-render-util0 \
48 libxcb-shape0 \
49 libxcb-keysyms1 \
50 libxcb-image0 \
51 libxkbcommon-dev
52
53 RUN apt-get install -y --no-install-recommends \
54 software-properties-common
55
56 # Install Python3
57 # RUN apt install python3-pip -y && pip3 install --upgrade pip
58
59 # Install Qt (to build plugins)
60 WORKDIR /tmp/qt
61 COPY dl/qt.run /tmp/qt
62 RUN chmod +x qt.run
63 RUN ./qt.run --root /opt/Qt --verbose --email ${QT_CI_LOGIN} --password ${QT_CI_P} --accept-obligations \
64 --accept-licenses --default-answer --platform minimal --auto-answer installationErrorWithCancel=Ignore \
65 --no-force-installations --no-default-installations --confirm-command \
66 install qt.qt6.683.linux_gcc_64 qt.qt6.683.addons.qtcharts qt.qt6.683.addons.qt3d
67 RUN rm qt.run
68
69 # Strip sections containing ".note.ABI.tag" from .so: https://github.com/Microsoft/WSL/issues/3023
70 RUN find ${QT_DIR}/lib/ -name '*.so' | xargs strip --remove-section=.note.ABI-tag
71
72 COPY ./*requirements.txt ./setup.py ${MESHROOM_DEV}/
73
74 # Install Meshroom requirements and freeze bundle
75 WORKDIR "${MESHROOM_DEV}"
76 RUN python -m pip install -r dev_requirements.txt -r requirements.txt