mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00

accel-config v3.4.3 dropped libkmod, libudev dependencies, update initcontainer to v3.4.3 and drop local customizations / workarounds. Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
59 lines
2.2 KiB
Docker
59 lines
2.2 KiB
Docker
# Copyright 2021 Intel Corporation. All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
FROM debian:unstable-slim AS builder
|
|
|
|
RUN echo "deb-src http://deb.debian.org/debian unstable main" >> \
|
|
/etc/apt/sources.list.d/deb-src.list && \
|
|
apt update && apt install -y --no-install-recommends \
|
|
gcc make patch autoconf automake libtool pkg-config \
|
|
libjson-c-dev uuid-dev curl ca-certificates && \
|
|
mkdir -p /usr/local/share/package-sources && \
|
|
cd /usr/local/share/package-sources && \
|
|
apt --download-only source uuid libjson-c5 && cd /
|
|
|
|
ARG ACCEL_CONFIG_VERSION="3.4.3"
|
|
ARG ACCEL_CONFIG_DOWNLOAD_URL="https://github.com/intel/idxd-config/archive/accel-config-v$ACCEL_CONFIG_VERSION.tar.gz"
|
|
ARG ACCEL_CONFIG_SHA256="d74727fad0e6757b4746e1ea8413f845df2642197ac9596d4bac1bc3e94ca7ab"
|
|
|
|
RUN curl -fsSL "$ACCEL_CONFIG_DOWNLOAD_URL" -o accel-config.tar.gz && \
|
|
echo "$ACCEL_CONFIG_SHA256 accel-config.tar.gz" | sha256sum -c - && \
|
|
tar -xzf accel-config.tar.gz
|
|
|
|
RUN cd idxd-config-accel-config-v$ACCEL_CONFIG_VERSION && \
|
|
./git-version-gen && \
|
|
autoreconf -i && \
|
|
./configure -q --libdir=/usr/lib64 --disable-test --disable-docs && \
|
|
make && \
|
|
make install
|
|
|
|
FROM debian:unstable-slim
|
|
|
|
RUN apt update && apt install -y uuid libjson-c5 jq
|
|
|
|
COPY --from=builder /usr/lib64/libaccel-config.so.1.0.0 /lib/x86_64-linux-gnu/
|
|
RUN ldconfig
|
|
|
|
COPY --from=builder /usr/bin/accel-config /usr/bin/
|
|
|
|
COPY --from=builder /usr/local/share/package-sources/ \
|
|
/usr/local/share/package-sources/
|
|
COPY --from=builder /accel-config.tar.gz /usr/local/share/package-sources/
|
|
|
|
ADD demo/idxd-init.sh /idxd-init/
|
|
ADD demo/dsa.conf /idxd-init/
|
|
|
|
WORKDIR /idxd-init
|
|
ENTRYPOINT bash idxd-init.sh
|