Skip to content

Commit 4da1633

Browse files
QAT: add testapp of qatengine
Signed-off-by: Hyeongju Johannes Lee <[email protected]>
1 parent d2279d1 commit 4da1633

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

demo/openssl-qat-engine/Dockerfile

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
1-
FROM ubuntu:24.04
1+
FROM ubuntu:24.04 AS builder
2+
3+
ARG QAT_ENGINE_VERSION="v1.6.2"
24

35
RUN 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 && \
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/bin/*_sample* /usr/bin/
29+
COPY --from=builder /usr/lib/x86_64-linux-gnu/engines-3/qatengine.so /usr/lib/x86_64-linux-gnu/engines-3/qatengine.so
30+
COPY --from=builder /QAT_Engine/LICENSE /usr/share/package-licenses/QAT_Engine/LICENSE
31+
RUN ldconfig && apt update && env DEBIAN_FRONTEND=noninteractive apt install -y openssl libcrypto-mb-dev libqat4 libusdm-dev

0 commit comments

Comments
 (0)