Skip to content

Commit 00f9ae5

Browse files
committed
Add ubuntu 18.04 dockerfile for Q3 release
Includes libva/libva-utils/gmm/media-driver/MediaSDK Change-Id: I02a707eb9b3ae7e5c11efccbe57ca5d289b4119e
1 parent 3377dd5 commit 00f9ae5

File tree

4 files changed

+129
-1
lines changed

4 files changed

+129
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export LIBVA_DRIVER_NAME=iHD
7878

7979
## Docker Image
8080

81-
To simplify media stack installation you can use docker images. They are located in [hub.docker/intelmediadriver](https://hub.docker.com/r/intelmediadriver/media-driver/tags/). Latest image is based on Ubuntu 18.04 and downloaded by below command.
81+
To simplify media stack installation you can use docker images. To generate your own docker image, read Tools/dockers/README.md. Alternatively you can use generated images located in [hub.docker/intelmediadriver](https://hub.docker.com/r/intelmediadriver/media-driver/tags/). Latest image is based on Ubuntu 18.04 and downloaded by below command.
8282
```
8383
$ docker pull intelmediadriver/media-driver
8484
```

Tools/dockers/README.MD

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Intel(R) Media Driver Docker Image
2+
3+
4+
## Introduction
5+
6+
Docker files in the child folders are intended to provide latest validated media stack for operating systems disclosed in a folder names. Thus, you can see that media stack ingredients are checked out by specific revision, not by the latest head.
7+
8+
9+
## Prerequisites
10+
11+
Install docker environment in your machine.
12+
13+
14+
## Docker Image Tag
15+
16+
Latest tag is based on Ubuntu/18.04/Dockerfile. Ubuntu 16.04/Fedora28 images are in plan which are located under dockers/<OS>/<version>. You can submit issue to request other docker images you need.
17+
18+
Starting from 18.3 release branch, Release-<branch_name>_<base_image> tag are also avilable for download.
19+
20+
You can find detail tags from [hub.docker/intelmediadriver](https://hub.docker.com/r/intelmediadriver/media-driver/tags/).
21+
22+
23+
## Build Dockerfile
24+
25+
To customize the docker image, you can build it like below after changing Dockerfile.
26+
```
27+
$ cd Tools/dockers/<OS>/<version>
28+
$ docker build -t test:v1 .
29+
```

Tools/dockers/ubuntu/18.04/Dockerfile

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
FROM ubuntu:18.04
2+
3+
ENV DEBIAN_FRONTEND noninteractive
4+
ENV LIBVA_VERSION 2.3.0
5+
ENV LIBVAUTILS_VERSION 2.3.0
6+
ENV MEDIADRIVER_VERSION intel-media-18.3.0
7+
ENV GMMLIB_VERSION intel-gmmlib-18.3.0
8+
ENV MSDK_VERSION intel-mediasdk-18.3.0
9+
10+
11+
RUN apt-get update && \
12+
apt-get install -y \
13+
autoconf \
14+
git \
15+
curl \
16+
libdrm-dev \
17+
libgl1-mesa-glx \
18+
libgl1-mesa-dev \
19+
libtool \
20+
libx11-dev \
21+
openbox \
22+
unzip \
23+
xorg \
24+
xorg-dev \
25+
&& apt-get clean all
26+
27+
RUN mkdir /opt/src && \
28+
cd /opt/src && \
29+
curl -sSLO https://cmake.org/files/v3.8/cmake-3.8.2-Linux-x86_64.sh && \
30+
sh cmake-3.8.2-Linux-x86_64.sh --prefix=/usr/local --exclude-subdir && \
31+
rm cmake-3.8.2-Linux-x86_64.sh
32+
33+
RUN cd /opt/src && \
34+
curl -sSLO https://www.samba.org/ftp/ccache/ccache-3.2.8.tar.bz2 && \
35+
tar xf ccache-3.2.8.tar.bz2 && \
36+
cd ccache-3.2.8 && \
37+
./configure --prefix=/usr && \
38+
make && \
39+
make install
40+
41+
RUN mkdir -p /usr/lib/ccache && \
42+
cd /usr/lib/ccache && \
43+
ln -sf /usr/bin/ccache gcc && \
44+
ln -sf /usr/bin/ccache g++ && \
45+
ln -sf /usr/bin/ccache cc && \
46+
ln -sf /usr/bin/ccache c++ && \
47+
ln -sf /usr/bin/ccache clang && \
48+
ln -sf /usr/bin/ccache clang++ && \
49+
ln -sf /usr/bin/ccache clang-4.0 && \
50+
ln -sf /usr/bin/ccache clang++-4.0
51+
52+
RUN cd /opt/src && \
53+
curl -o libva.zip -sSL https://github.com/intel/libva/archive/${LIBVA_VERSION}.zip && \
54+
unzip libva.zip && \
55+
cd libva-${LIBVA_VERSION} && \
56+
./autogen.sh --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu && \
57+
make -j8 && \
58+
make install
59+
60+
RUN cd /opt/src && \
61+
curl -o gmmlib.zip -sSL https://github.com/intel/gmmlib/archive/${GMMLIB_VERSION}.zip && \
62+
unzip gmmlib.zip && \
63+
mkdir build_gmmlib && \
64+
cd build_gmmlib && \
65+
cmake ../gmmlib-${GMMLIB_VERSION} && \
66+
make -j8 && \
67+
make install
68+
69+
RUN cd /opt/src && \
70+
curl -o media-driver.zip -sSL https://github.com/intel/media-driver/archive/${MEDIADRIVER_VERSION}.zip && \
71+
unzip media-driver.zip && \
72+
mkdir build_media && \
73+
cd build_media && \
74+
cmake ../media-driver-${MEDIADRIVER_VERSION} && \
75+
make -j8 && \
76+
make install
77+
78+
RUN cd /opt/src && \
79+
curl -o libva-utils.zip -sSL https://github.com/intel/libva-utils/archive/${LIBVAUTILS_VERSION}.zip && \
80+
unzip libva-utils.zip && \
81+
cd libva-utils-${LIBVAUTILS_VERSION} && \
82+
./autogen.sh && \
83+
./configure --prefix=/usr && \
84+
make -j8 && \
85+
make install && \
86+
make check
87+
88+
RUN cd /opt/src && \
89+
curl -o msdk.zip -sSL https://github.com/Intel-Media-SDK/MediaSDK/archive/${MSDK_VERSION}.zip && \
90+
unzip msdk.zip && \
91+
mkdir build_msdk && \
92+
cd build_msdk && \
93+
cmake ../MediaSDK-${MSDK_VERSION} && \
94+
make -j8 && \
95+
make install
96+
97+
ADD ubuntu_export.sh /opt/src/ubuntu_export.sh
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri
2+
export LIBVA_DRIVER_NAME=iHD

0 commit comments

Comments
 (0)