@@ -30,94 +30,50 @@ RUN set -xe && \
30
30
apt-get install -y --no-install-recommends software-properties-common wget && \
31
31
add-apt-repository -y ppa:deadsnakes/ppa && \
32
32
apt-get update -y && \
33
- apt-get install -y \
34
- autoconf \
35
- automake \
36
- build-essential \
37
- gir1.2-gtk-3.0 \
38
- git \
39
- openssh-client \
40
- build-essential \
41
- cmake \
42
- python${PYTHON_VERSION} \
43
- python${PYTHON_VERSION}-dev \
44
- qtbase5-dev \
45
- graphviz \
46
- make \
47
- mercurial \
48
- mime-support \
49
- net-tools \
50
- openssh-server \
51
- pdsh \
52
- pkg-config \
53
- proj-bin \
54
- protobuf-compiler \
55
- subversion \
56
- texinfo \
57
- unzip \
58
- v4l-utils \
59
- x264 \
60
- xvfb \
61
- xz-utils \
62
- yasm \
63
- zip \
64
- zlib1g-dev \
33
+ apt-get install -y --no-install-recommends \
34
+ ca-certificates \
35
+ curl \
36
+ dkms \
37
+ fonts-nanum \
38
+ fonts-nanum-coding \
39
+ fonts-nanum-extra \
40
+ g++ \
41
+ gfortran \
42
+ htop \
43
+ iputils-ping \
65
44
libasound2-dev \
66
- libass-dev \
67
- libatlas-base-dev \
68
45
libavcodec-dev \
69
- libavformat-dev \
70
- libavresample-dev \
71
46
libboost-dev \
72
47
libboost-filesystem-dev \
73
48
libboost-system-dev \
74
- libcairo2-dev \
75
- libdc1394-22-dev \
76
- libeigen3-dev \
77
- libfaac-dev \
78
- libfreetype6-dev \
49
+ libcairo2-dev libgirepository1.0-dev pkg-config gir1.2-gtk-3.0 \
79
50
libgdal-dev python3-gdal \
80
- libgeos++-dev \
81
- libgeos-dev \
82
- libgirepository1.0-dev \
83
- libgoogle-glog-dev \
84
- libgflags-dev \
85
- libgphoto2-dev \
86
- libgstreamer-plugins-base1.0-dev \
87
- libgstreamer1.0-dev \
88
- libgtk-3-dev \
89
- libhdf5-dev \
90
- liblapack-dev \
91
- libmp3lame-dev \
92
51
libnuma-dev \
93
- libopenblas-dev \
94
- libopencore-amrnb-dev \
95
- libopencore-amrwb-dev \
96
- libportmidi-dev \
97
- libproj-dev \
98
- libprotobuf-dev \
99
- libsdl-image1.2-dev \
100
- libsdl-mixer1.2-dev \
101
- libsdl-ttf2.0-dev \
102
- libsdl2-dev \
52
+ libopenblas-dev liblapack-dev \
103
53
libsm6 \
104
54
libswscale-dev \
105
- libtheora-dev \
106
- libtool \
107
55
libv4l-dev \
108
- libva-dev \
109
- libvdpau-dev \
110
- libvorbis-dev \
111
- libx264-dev \
112
- libxcb-shm0-dev \
113
- libxcb-xfixes0-dev \
114
56
libxext6 \
115
57
libxine2-dev \
116
58
libxml2-dev \
117
59
libxrender-dev \
118
60
libxslt1-dev \
119
- libxvidcore-dev \
120
- libzmq3-dev \
61
+ make \
62
+ mime-support \
63
+ net-tools \
64
+ openssh-server \
65
+ pdsh \
66
+ proj-bin libproj-dev libgeos-dev libgeos++-dev graphviz \
67
+ subversion \
68
+ unzip \
69
+ xvfb \
70
+ xz-utils \
71
+ yasm \
72
+ zip \
73
+ openssh-client \
74
+ build-essential \
75
+ gcc \
76
+ git \
121
77
libavformat-dev \
122
78
libcurl3-dev \
123
79
libfreetype6-dev \
@@ -126,15 +82,26 @@ RUN set -xe && \
126
82
libjpeg-dev \
127
83
libmpdec2 \
128
84
libpng-dev \
129
- libsdl-dev \
130
- libsmpeg-dev \
85
+ libsdl-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev \
86
+ libsmpeg-dev libportmidi-dev libavformat-dev libswscale-dev \
131
87
libssl-dev \
132
- libtbb-dev \
133
88
libtiff-dev \
134
- libxcb1-dev \
135
- && \
89
+ libzmq3-dev \
90
+ pkg-config \
91
+ python${PYTHON_VERSION} \
92
+ python${PYTHON_VERSION}-dev \
93
+ vim \
94
+ wget \
95
+ zlib1g-dev \
96
+ wget build-essential automake autoconf git libtool libvorbis-dev \
97
+ libass-dev libfreetype6-dev libsdl2-dev libva-dev libvdpau-dev \
98
+ libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev \
99
+ mercurial libnuma-dev texinfo zlib1g-dev \
100
+ qtbase5-dev && \
136
101
mkdir -p /usr/local/ffmpeg_sources && \
137
102
ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h && \
103
+ mkdir -p /etc/OpenCL/vendors && \
104
+ echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icdn && \
138
105
apt-get clean && \
139
106
rm -rf /var/lib/apt/lists/
140
107
@@ -149,37 +116,18 @@ RUN ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/lib
149
116
echo "/usr/local/cuda/lib64/stubs" > /etc/ld.so.conf.d/z-cuda-stubs.conf && \
150
117
ldconfig
151
118
152
- RUN rm /usr/bin/python /usr/bin/python3 && \
119
+ RUN wget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0-Linux-x86_64.sh \
120
+ -q -O /tmp/cmake-install.sh && \
121
+ chmod u+x /tmp/cmake-install.sh && \
122
+ mkdir /usr/bin/cmake && \
123
+ /tmp/cmake-install.sh --skip-license --prefix=/usr/bin/cmake && \
124
+ rm /tmp/cmake-install.sh
125
+
126
+ RUN rm /usr/bin/python3 && \
153
127
ln -s /usr/bin/python3.8 /usr/bin/python3 && \
154
128
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 && \
155
129
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
156
130
157
- # OFED
158
- WORKDIR /tmp
159
- RUN wget -q -O - https://www.mellanox.com/downloads/ofed/MLNX_OFED-5.1-2.3.7.1/MLNX_OFED_LINUX-${MLNX_OFED_VERSION}-ubuntu18.04-x86_64.tgz | tar xzf - && \
160
- cd /tmp/MLNX_OFED_LINUX-${MLNX_OFED_VERSION}-ubuntu18.04-x86_64 && \
161
- ./mlnxofedinstall --user-space-only --without-fw-update --all -q && \
162
- cd /tmp && \
163
- rm -rf /tmp/MLNX_OFED_LINUX-${MLNX_OFED_VERSION}-ubuntu18.04-x86_64*
164
-
165
- # nvidia-peer
166
- WORKDIR /tmp
167
- RUN git clone https://github.com/Mellanox/nv_peer_memory.git /tmp/nv_peer_memory && \
168
- cd /tmp/nv_peer_memory && \
169
- ./build_module.sh && \
170
- cd /tmp && \
171
- tar xzf /tmp/nvidia-peer-memory_1.1.orig.tar.gz && \
172
- cd /tmp/nvidia-peer-memory-1.1 && \
173
- dpkg-buildpackage -us -uc && \
174
- dpkg -i /tmp/nvidia-peer-memory_1.1-0_all.deb
175
-
176
- #RUN wget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0-Linux-x86_64.sh \
177
- # -q -O /tmp/cmake-install.sh && \
178
- # chmod u+x /tmp/cmake-install.sh && \
179
- # mkdir /usr/bin/cmake && \
180
- # /tmp/cmake-install.sh --skip-license --prefix=/usr/bin/cmake && \
181
- # chmod +x /usr/bin/cmake && \
182
- # rm /tmp/cmake-install.sh
183
131
184
132
# Instaling NASM
185
133
WORKDIR /usr/local/ffmpeg_sources
0 commit comments