Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions templates/ubuntu20/common/base.dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -189,20 +189,13 @@ ARG DEPS="tzdata \
{% if 'runtime' == distribution %}
ARG LGPL_DEPS="python3.9-venv python3-pip"
ARG INSTALL_PACKAGES="-c=python -c=core"
{% elif 'dev' == distribution or 'dev_no_samples' == distribution %}
{% elif 'dev' == distribution %}
ARG LGPL_DEPS="g++ \
gcc \
libc6-dev \
python3.9-venv \
python3-pip"
ARG INSTALL_PACKAGES="-c=python -c=core -c=dev"
{% else %}
ARG LGPL_DEPS="g++ \
gcc \
libc6-dev \
python3.9-venv \
python3-pip"
ARG INSTALL_PACKAGES="-c=python"
{% endif %}

# hadolint ignore=DL3008
Expand Down
9 changes: 0 additions & 9 deletions templates/ubuntu20/env/dev_no_samples_env.dockerfile.j2

This file was deleted.

2 changes: 1 addition & 1 deletion templates/ubuntu20/install/copy.dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ RUN find "${TEMP_DIR}" \( -name "*.tgz" -o -name "*.tar.gz" \) -exec tar -xzf {}
ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \
rm -rf "${TEMP_DIR}" && \
chown -R openvino /opt/intel/openvino_"$OV_BUILD"
{% if no_samples is defined or 'dev_no_samples' == distribution %}
{% if no_samples is defined %}
RUN rm -rf "${INTEL_OPENVINO_DIR}/samples"
{% endif %}
2 changes: 1 addition & 1 deletion templates/ubuntu20/install/install.dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ RUN chmod +x l_openvino*.sh && \
mv /opt/intel/openvino/installer /opt/intel/openvino_installer && rmdir /opt/intel/openvino && \
OV_BUILD="$(find /opt/intel -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d+.\d+')" && \
ln --symbolic /opt/intel/openvino_"$OV_BUILD" /opt/intel/openvino && rm -rf ${TEMP_DIR}
{% if no_samples is defined or 'dev_no_samples' == distribution %}
{% if no_samples is defined %}
RUN rm -rf ${INTEL_OPENVINO_DIR}/samples
{% endif %}
7 changes: 1 addition & 6 deletions templates/ubuntu22/common/base.dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,11 @@ ARG DEPS="tzdata \
{% if 'runtime' == distribution %}
ARG LGPL_DEPS=""
ARG INSTALL_PACKAGES="-c=python -c=core"
{% elif 'dev' == distribution or 'dev_no_samples' == distribution %}
{% elif 'dev' == distribution %}
ARG LGPL_DEPS="g++ \
gcc \
libc6-dev"
ARG INSTALL_PACKAGES="-c=python -c=core -c=dev"
{% else %}
ARG LGPL_DEPS="g++ \
gcc \
libc6-dev"
ARG INSTALL_PACKAGES="-c=python"
{% endif %}

# hadolint ignore=DL3008
Expand Down
7 changes: 0 additions & 7 deletions templates/ubuntu22/env/dev_no_samples_env.dockerfile.j2

This file was deleted.

2 changes: 1 addition & 1 deletion templates/ubuntu22/install/copy.dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ RUN find "${TEMP_DIR}" \( -name "*.tgz" -o -name "*.tar.gz" \) -exec tar -xzf {}
ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \
rm -rf "${TEMP_DIR}" && \
chown -R openvino /opt/intel/openvino_"$OV_BUILD"
{% if no_samples is defined or 'dev_no_samples' == distribution %}
{% if no_samples is defined %}
RUN rm -rf "${INTEL_OPENVINO_DIR}/samples"
{% endif %}
2 changes: 1 addition & 1 deletion templates/ubuntu22/install/install.dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ RUN chmod +x l_openvino*.sh && \
mv /opt/intel/openvino/installer /opt/intel/openvino_installer && rmdir /opt/intel/openvino && \
OV_BUILD="$(find /opt/intel -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d+.\d+')" && \
ln --symbolic /opt/intel/openvino_"$OV_BUILD" /opt/intel/openvino && rm -rf ${TEMP_DIR}
{% if no_samples is defined or 'dev_no_samples' == distribution %}
{% if no_samples is defined %}
RUN rm -rf ${INTEL_OPENVINO_DIR}/samples
{% endif %}
7 changes: 1 addition & 6 deletions templates/ubuntu24/common/base.dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,11 @@ ARG DEPS="tzdata \
{% if 'runtime' == distribution %}
ARG LGPL_DEPS=""
ARG INSTALL_PACKAGES="-c=python -c=core"
{% elif 'dev' == distribution or 'dev_no_samples' == distribution %}
{% elif 'dev' == distribution %}
ARG LGPL_DEPS="g++ \
gcc \
libc6-dev"
ARG INSTALL_PACKAGES="-c=python -c=core -c=dev"
{% else %}
ARG LGPL_DEPS="g++ \
gcc \
libc6-dev"
ARG INSTALL_PACKAGES="-c=python"
{% endif %}

# hadolint ignore=DL3008
Expand Down
7 changes: 0 additions & 7 deletions templates/ubuntu24/env/dev_no_samples_env.dockerfile.j2

This file was deleted.

21 changes: 9 additions & 12 deletions templates/ubuntu24/hw/gpu.dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@ RUN apt-get update && \
apt-get clean ; \
rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*

# GFX driver version 24.48.31907.7
# GFX driver version 26.14.37833.4
# hadolint ignore=DL3003
RUN mkdir /tmp/gpu_deps && cd /tmp/gpu_deps && \
curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/v2.2.3/intel-igc-core-2_2.2.3+18220_amd64.deb && \
curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/v2.2.3/intel-igc-opencl-2_2.2.3+18220_amd64.deb && \
curl -L -O https://github.com/intel/compute-runtime/releases/download/24.48.31907.7/intel-level-zero-gpu-dbgsym_1.6.31907.7_amd64.ddeb && \
curl -L -O https://github.com/intel/compute-runtime/releases/download/24.48.31907.7/intel-level-zero-gpu_1.6.31907.7_amd64.deb && \
curl -L -O https://github.com/intel/compute-runtime/releases/download/24.48.31907.7/intel-opencl-icd-dbgsym_24.48.31907.7_amd64.ddeb && \
curl -L -O https://github.com/intel/compute-runtime/releases/download/24.48.31907.7/intel-opencl-icd_24.48.31907.7_amd64.deb && \
curl -L -O https://github.com/intel/compute-runtime/releases/download/24.48.31907.7/libigdgmm12_22.5.4_amd64.deb && \
curl -L -O https://github.com/intel/compute-runtime/releases/download/24.48.31907.7/ww48.sum && \
sha256sum -c ww48.sum && \
dpkg -i ./*.deb && rm -Rf /tmp/gpu_deps
RUN mkdir /tmp/gpu_deps && cd /tmp/gpu_deps \
&& curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/v2.32.7/intel-igc-core-2_2.32.7+21184_amd64.deb \
&& curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/v2.32.7/intel-igc-opencl-2_2.32.7+21184_amd64.deb \
&& curl -L -O https://github.com/intel/compute-runtime/releases/download/26.14.37833.4/intel-ocloc_26.14.37833.4-0_amd64.deb \
&& curl -L -O https://github.com/intel/compute-runtime/releases/download/26.14.37833.4/intel-opencl-icd_26.14.37833.4-0_amd64.deb \
&& curl -L -O https://github.com/intel/compute-runtime/releases/download/26.14.37833.4/libigdgmm12_22.9.0_amd64.deb \
&& curl -L -O https://github.com/intel/compute-runtime/releases/download/26.14.37833.4/libze-intel-gpu1_26.14.37833.4-0_amd64.deb \
&& dpkg -i ./*.deb && rm -Rf /tmp/gpu_deps
2 changes: 1 addition & 1 deletion templates/ubuntu24/hw/npu.dockerfile.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# for NPU

ARG INTEL_NPU_DRIVER_URL=https://github.com/intel/linux-npu-driver/releases/download/v1.32.1/linux-npu-driver-v1.32.1.20260422-24767473183-ubuntu2404.tar.gz
ARG INTEL_NPU_DRIVER_URL=https://github.com/intel/linux-npu-driver/releases/download/v1.35.0/linux-npu-driver-v1.35.0.20260722-29947505341-ubuntu2404.tar.gz
ARG INTEL_LEVEL_ZERO_URL=https://snapshot.ppa.launchpadcontent.net/kobuk-team/intel-graphics/ubuntu/20260324T100000Z/pool/main/l/level-zero-loader/libze1_1.27.0-1~24.04~ppa2_amd64.deb

# hadolint ignore=DL3003
Expand Down
2 changes: 1 addition & 1 deletion templates/ubuntu24/install/copy.dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ RUN find "${TEMP_DIR}" \( -name "*.tgz" -o -name "*.tar.gz" \) -exec tar -xzf {}
ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \
rm -rf "${TEMP_DIR}" && \
chown -R openvino /opt/intel/openvino_"$OV_BUILD"
{% if no_samples is defined or 'dev_no_samples' == distribution %}
{% if no_samples is defined %}
RUN rm -rf "${INTEL_OPENVINO_DIR}/samples"
{% endif %}
2 changes: 1 addition & 1 deletion templates/ubuntu24/install/install.dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ RUN chmod +x l_openvino*.sh && \
mv /opt/intel/openvino/installer /opt/intel/openvino_installer && rmdir /opt/intel/openvino && \
OV_BUILD="$(find /opt/intel -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d+.\d+')" && \
ln --symbolic /opt/intel/openvino_"$OV_BUILD" /opt/intel/openvino && rm -rf ${TEMP_DIR}
{% if no_samples is defined or 'dev_no_samples' == distribution %}
{% if no_samples is defined %}
RUN rm -rf ${INTEL_OPENVINO_DIR}/samples
{% endif %}
131 changes: 131 additions & 0 deletions templates/ubuntu26/dockerfile.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# Copyright (C) 2019-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
FROM docker.io/library/ubuntu:26.04

LABEL description="This is the {{ distribution }} image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 26.04 LTS"
LABEL vendor="Intel Corporation"

SHELL ["/bin/bash", "-xo", "pipefail", "-c"]

# setup render group and openvino user
RUN groupadd -f render \
&& useradd -ms /bin/bash -G users,render openvino

ARG DEBIAN_FRONTEND=noninteractive

# install apt packages
{% if distribution == 'dev' %}
ARG LGPL_DEPS="g++ gcc libc6-dev cmake make"
{% else %}
ARG LGPL_DEPS=""
{% endif %}

{% if distribution == 'dev' %}
ARG INSTALL_PACKAGES="-c=python -c=core -c=dev"
{% else %}
ARG INSTALL_PACKAGES="-c=python -c=core"
{% endif %}
ENV INTEL_OPENVINO_DIR=/opt/intel/openvino
WORKDIR $INTEL_OPENVINO_DIR

# copy openvino
ARG package_url={{ package_url }}
{% if source == "local" %}
COPY $package_url /openvino.tgz
{% endif %}

# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl tzdata ca-certificates python3-venv python3-pip git $LGPL_DEPS \
{%- if device_gpu %}
&& apt-get install -y --no-install-recommends opencl-headers ocl-icd-opencl-dev ocl-icd-libopencl1 libze1 \
{% for url in resources.gpu_package_urls -%}
&& curl -L -O "{{ url }}" \
{% endfor -%}
&& apt-get install -y --no-install-recommends ./*.deb \
&& rm -rf * \
{%- endif %}
{%- if False and device_npu %}
&& curl -L "{{ resources.npu_archive_url }}" | tar -xzf - \
&& apt-get install -y --no-install-recommends libze1 ./*.deb \
&& rm -rf * \
{%- endif %}
{%- if source == "local" %}
&& tar -xzf /openvino.tgz --strip-components=1 --no-same-owner \
&& rm /openvino.tgz \
{%- elif source == "url" %}
&& curl -L "${package_url}" | tar -xzf - --strip-components=1 --no-same-owner \
{%- endif %}
&& chown -R openvino . \
&& rm -rf .distribution \
&& mkdir .distribution \
&& touch .distribution/docker \
&& ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} \
&& rm -rf /var/lib/apt/lists/*


# install onetbb
ARG TBB_PACKAGE=https://github.com/oneapi-src/oneTBB/releases/download/v2021.9.0/oneapi-tbb-2021.9.0-lin.tgz
RUN curl -L $TBB_PACKAGE | tar -xzf - \
--wildcards --strip-components=4 -C $INTEL_OPENVINO_DIR/runtime/lib/intel64/ \
"oneapi-tbb-2021.9.0/lib/intel64/gcc4.8/libtbb.so*"


ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake
ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3
ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake
ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake
ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake
ENV OV_TOKENIZER_PREBUILD_EXTENSION_PATH=/opt/intel/openvino/runtime/lib/intel64/libopenvino_tokenizers.so
ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig
ENV LIBVA_DRIVER_NAME=iHD
ENV GST_VAAPI_ALL_DRIVERS=1
ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri

WORKDIR ${INTEL_OPENVINO_DIR}/licensing
COPY templates/ubuntu26/third-party-programs-docker-dev.txt .
COPY templates/ubuntu26/third-party-programs-docker-runtime.txt .
RUN echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in " \
"https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt

# setup python
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH=$VIRTUAL_ENV/bin:$PATH

# hadolint ignore=DL3013
RUN python3 -m pip install --no-cache-dir --upgrade pip
# dev package
WORKDIR ${INTEL_OPENVINO_DIR}
{% if OPENVINO_WHEELS_URL %}
RUN python -m pip install --no-cache-dir --pre \
"openvino=={{ OPENVINO_WHEELS_VERSION }}" \
"openvino-tokenizers=={{ OPENVINO_WHEELS_VERSION }}" \
"openvino-genai=={{ OPENVINO_WHEELS_VERSION }}" \
--trusted-host=* --find-links "{{ OPENVINO_WHEELS_URL }}"
{% else %}
RUN python -m pip install --no-cache-dir \
"openvino=={{ OPENVINO_WHEELS_VERSION }}" \
"openvino-tokenizers=={{ OPENVINO_WHEELS_VERSION }}" \
"openvino-genai=={{ OPENVINO_WHEELS_VERSION }}"
{% endif %}

{% if distribution == "dev" %}
# build samples into ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin
WORKDIR ${INTEL_OPENVINO_DIR}/samples/cpp
RUN ./build_samples.sh -b /tmp/build -i ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin && \
rm -Rf /tmp/build
{% endif %}

# Post-installation cleanup and setting up OpenVINO environment variables
RUN echo '#!/bin/sh' >> /usr/bin/entrypoint \
&& echo 'umask 0000; exec "$@"' >> /usr/bin/entrypoint \
&& chmod +x /usr/bin/entrypoint
USER openvino
WORKDIR ${INTEL_OPENVINO_DIR}

CMD [ "/bin/bash" ]
ENTRYPOINT [ "/usr/bin/entrypoint" ]
11 changes: 11 additions & 0 deletions templates/ubuntu26/resources.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"npu_archive_url": "",
"gpu_package_urls": [
"https://github.com/intel/intel-graphics-compiler/releases/download/v2.40.13/intel-igc-core-2_2.40.13+22418_amd64.deb",
"https://github.com/intel/intel-graphics-compiler/releases/download/v2.40.13/intel-igc-opencl-2_2.40.13+22418_amd64.deb",
"https://github.com/intel/compute-runtime/releases/download/26.31.39395.13/intel-ocloc_26.31.39395.13-0_amd64.deb",
"https://github.com/intel/compute-runtime/releases/download/26.31.39395.13/intel-opencl-icd_26.31.39395.13-0_amd64.deb",
"https://github.com/intel/compute-runtime/releases/download/26.31.39395.13/libigdgmm12_22.10.0_amd64.deb",
"https://github.com/intel/compute-runtime/releases/download/26.31.39395.13/libze-intel-gpu1_26.31.39395.13-0_amd64.deb"
]
}
Loading
Loading