intel-device-plugins-for-ku.../demo/openssl-qat-engine/Dockerfile
Hyeongju Johannes Lee 7af23f1f70 QAT: add testapp of qatengine
Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2024-10-30 03:57:05 -07:00

35 lines
1.1 KiB
Docker

FROM ubuntu:24.04 AS builder
ARG QAT_ENGINE_VERSION="v1.6.2"
RUN apt update && \
env DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y \
git \
ca-certificates \
autoconf \
automake \
g++ \
pkg-config \
libssl-dev \
libtool \
libqat-dev \
make \
libusdm-dev
RUN git clone --depth 1 -b $QAT_ENGINE_VERSION https://github.com/intel/QAT_Engine
RUN cd /QAT_Engine && \
sed -i '/fprintf(stderr, "QAT_HW device not available & QAT_SW not enabled. Using OpenSSL_SW!\\n");/ s/$/ return ret;/' e_qat.c && \
./autogen.sh && \
./configure \
--disable-qat_sw \
--with-qat_engine_id=qathwtest && \
make && make test && make install
FROM ubuntu:24.04
COPY --from=builder /QAT_Engine/testapp /usr/bin/
COPY --from=builder /usr/lib/x86_64-linux-gnu/engines-3/qatengine.so /usr/lib/x86_64-linux-gnu/engines-3/qathwtest.so
COPY --from=builder /QAT_Engine/LICENSE /usr/share/package-licenses/QAT_Engine/LICENSE
RUN apt update && env DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y qatengine qatlib-examples