Skip to content

Commit 3051e5c

Browse files
Hyeongju Johannes Leetkatila
authored andcommitted
openssl-qat-engine: use ubuntu 24.04 and drop all custom builds
Signed-off-by: Hyeongju Johannes Lee <[email protected]>
1 parent ea44ecb commit 3051e5c

File tree

1 file changed

+2
-87
lines changed

1 file changed

+2
-87
lines changed

demo/openssl-qat-engine/Dockerfile

Lines changed: 2 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,4 @@
1-
FROM ubuntu:22.04 as builder
2-
3-
ARG QATLIB_VERSION="24.02.0"
4-
ARG QAT_ENGINE_VERSION="v1.5.0"
5-
ARG ASYNC_NGINX_VERSION="v0.5.1"
6-
ARG IPSEC_MB_VERSION="v1.5"
7-
ARG IPP_CRYPTO_VERSION="ippcp_2021.11.0"
1+
FROM ubuntu:24.04
82

93
RUN apt update && \
10-
env DEBIAN_FRONTEND=noninteractive apt install -y \
11-
libudev-dev \
12-
make \
13-
gcc \
14-
g++ \
15-
nasm \
16-
pkg-config \
17-
libssl-dev \
18-
zlib1g-dev \
19-
wget \
20-
git \
21-
nasm \
22-
autoconf \
23-
cmake \
24-
libtool && \
25-
git clone --depth 1 -b $ASYNC_NGINX_VERSION https://github.com/intel/asynch_mode_nginx.git && \
26-
git clone --depth 1 -b $QAT_ENGINE_VERSION https://github.com/intel/QAT_Engine && \
27-
git clone --depth 1 -b $IPP_CRYPTO_VERSION https://github.com/intel/ipp-crypto && \
28-
git clone --depth 1 -b $IPSEC_MB_VERSION https://github.com/intel/intel-ipsec-mb && \
29-
git clone --depth 1 -b $QATLIB_VERSION https://github.com/intel/qatlib
30-
31-
RUN cd /qatlib && \
32-
./autogen.sh && \
33-
./configure \
34-
--prefix=/usr \
35-
--enable-systemd=no && \
36-
make -j && \
37-
make install samples-install
38-
39-
RUN cd /ipp-crypto/sources/ippcp/crypto_mb && \
40-
cmake . -B"../build" \
41-
-DOPENSSL_INCLUDE_DIR=/usr/include/openssl \
42-
-DOPENSSL_LIBRARIES=/usr/lib64 \
43-
-DOPENSSL_ROOT_DIR=/usr/bin/openssl && \
44-
cd ../build && \
45-
make crypto_mb && make install
46-
47-
RUN cd /intel-ipsec-mb && \
48-
make && make install LIB_INSTALL_DIR=/usr/lib64
49-
50-
RUN cd /QAT_Engine && \
51-
./autogen.sh && \
52-
./configure \
53-
--enable-qat_sw && \
54-
make && make install
55-
56-
RUN cd /asynch_mode_nginx && \
57-
./configure \
58-
--prefix=/var/www \
59-
--conf-path=/usr/share/nginx/conf/nginx.conf \
60-
--sbin-path=/usr/bin/nginx \
61-
--pid-path=/run/nginx.pid \
62-
--lock-path=/run/lock/nginx.lock \
63-
--modules-path=/usr/lib64/nginx \
64-
--without-http_rewrite_module \
65-
--with-http_ssl_module \
66-
--add-dynamic-module=modules/nginx_qat_module/ \
67-
--with-cc-opt="-DNGX_SECURE_MEM -I/include -Wno-error=deprecated-declarations" \
68-
--with-ld-opt="-L/src" && \
69-
make && make install
70-
71-
FROM ubuntu:22.04
72-
73-
COPY --from=builder /usr/bin/*_sample* /usr/bin/
74-
COPY --from=builder /usr/lib/libqat.so.4.2.0 /usr/lib/
75-
COPY --from=builder /usr/lib/libusdm.so.0.1.0 /usr/lib/
76-
COPY --from=builder /usr/lib64/libIPSec_MB.so.1 /usr/lib/x86_64-linux-gnu/
77-
COPY --from=builder /usr/local/lib/libcrypto_mb.so.11.12 /usr/lib/x86_64-linux-gnu/
78-
COPY --from=builder /usr/lib/x86_64-linux-gnu/engines-3/qatengine.so /usr/lib/x86_64-linux-gnu/engines-3/qatengine.so
79-
COPY --from=builder /var/www/ /var/www/
80-
COPY --from=builder /usr/lib64/nginx/* /usr/lib64/nginx/
81-
COPY --from=builder /usr/bin/nginx /usr/bin
82-
COPY --from=builder /usr/share/qat/calgary32 /usr/share/qat/
83-
COPY --from=builder /usr/share/nginx/conf/* /usr/share/nginx/conf/
84-
COPY --from=builder /qatlib/LICENSE /usr/share/package-licenses/qatlib/LICENSE
85-
COPY --from=builder /QAT_Engine/LICENSE /usr/share/package-licenses/QAT_Engine/LICENSE
86-
COPY --from=builder /ipp-crypto/LICENSE /usr/share/package-licenses/ipp-crypto/LICENSE
87-
COPY --from=builder /asynch_mode_nginx/LICENSE /usr/share/package-licenses/asynch_mode_nginx/LICENSE
88-
COPY --from=builder /intel-ipsec-mb/LICENSE /usr/share/package-licenses/intel-ipsec-mb/LICENSE
89-
RUN ldconfig && apt update && env DEBIAN_FRONTEND=noninteractive apt install -y openssl haproxy
4+
apt install --no-install-recommends -y qatengine qatlib-examples qatzip openssl

0 commit comments

Comments
 (0)