File tree Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change 1- FROM ubuntu:24.04
1+ FROM ubuntu:24.04 AS builder
2+
3+ ARG QAT_ENGINE_VERSION="v1.6.2"
24
35RUN apt update && \
4- apt install --no-install-recommends -y qatengine qatlib-examples qatzip openssl
6+ env DEBIAN_FRONTEND=noninteractive apt install -y \
7+ git \
8+ autoconf \
9+ g++ \
10+ pkg-config \
11+ libssl-dev \
12+ libtool \
13+ make \
14+ libusdm-dev
15+
16+ RUN git clone --depth 1 -b $QAT_ENGINE_VERSION https://github.com/intel/QAT_Engine
17+
18+ RUN cd /QAT_Engine && \
19+ sed -i '/fprintf(stderr, "QAT_HW device not available & QAT_SW not enabled. Using OpenSSL_SW!\\ n");/ s/$/ return ret;/' e_qat.c && \
20+ ./autogen.sh && \
21+ ./configure \
22+ --disable-qat_sw --with-qat_engine_id=qathwtest && \
23+ make && make test && make install
24+
25+ FROM ubuntu:24.04
26+
27+ COPY --from=builder /QAT_Engine/testapp /usr/bin/
28+ COPY --from=builder /usr/lib/x86_64-linux-gnu/engines-3/qatengine.so /usr/lib/x86_64-linux-gnu/engines-3/qathwtest.so
29+ COPY --from=builder /QAT_Engine/LICENSE /usr/share/package-licenses/QAT_Engine/LICENSE
30+ RUN apt update && env DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y qatengine qatlib-examples
You can’t perform that action at this time.
0 commit comments