1
1
FROM ubuntu:22.04 as builder
2
2
3
- ARG QATLIB_VERSION="23.11 .0"
4
- ARG QAT_ENGINE_VERSION="v1.4 .0"
5
- ARG ASYNC_NGINX_VERSION="v0 .5.1"
6
- ARG IPSEC_MB_VERSION="v1 .5"
7
- ARG IPP_CRYPTO_VERSION="ippcp_2021.9 .0"
3
+ ARG QATLIB_VERSION="24.02 .0"
4
+ ARG QAT_ENGINE_VERSION="1.5 .0"
5
+ ARG ASYNC_NGINX_VERSION="0 .5.1"
6
+ ARG IPSEC_MB_VERSION="1 .5"
7
+ ARG IPP_CRYPTO_VERSION="ippcp_2021.11 .0"
8
8
9
9
RUN apt update && \
10
10
env DEBIAN_FRONTEND=noninteractive apt install -y \
@@ -17,43 +17,47 @@ RUN apt update && \
17
17
libssl-dev \
18
18
zlib1g-dev \
19
19
wget \
20
- git \
21
20
nasm \
22
21
autoconf \
23
22
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
23
+ libtool
30
24
31
- RUN cd /qatlib && \
25
+ ADD --checksum=sha256:ffef9a3a2bd6024b188977411944ec6267da34d40a0c6c1d42c4f59165991176 https://github.com/intel/qatlib/archive/refs/tags/${QATLIB_VERSION}.tar.gz /
26
+ RUN tar --transform s/-${QATLIB_VERSION}// -x -f ${QATLIB_VERSION}.tar.gz && \
27
+ cd /qatlib && \
32
28
./autogen.sh && \
33
29
./configure \
34
30
--prefix=/usr \
35
31
--enable-systemd=no && \
36
32
make -j && \
37
33
make install samples-install
38
34
39
- RUN cd /ipp-crypto/sources/ippcp/crypto_mb && \
35
+ ADD --checksum=sha256:3a695d4040ddb47d0f4b5444d2a6535725e3da0e4bf7118f951f66da0ef7ad82 https://github.com/intel/ipp-crypto/archive/refs/tags/${IPP_CRYPTO_VERSION}.tar.gz /
36
+ RUN tar --transform s/-${IPP_CRYPTO_VERSION}// -x -f ${IPP_CRYPTO_VERSION}.tar.gz && \
37
+ cd /ipp-crypto/sources/ippcp/crypto_mb && \
40
38
cmake . -B"../build" \
41
39
-DOPENSSL_INCLUDE_DIR=/usr/include/openssl \
42
40
-DOPENSSL_LIBRARIES=/usr/lib64 \
43
41
-DOPENSSL_ROOT_DIR=/usr/bin/openssl && \
44
42
cd ../build && \
45
43
make crypto_mb && make install
46
44
47
- RUN cd /intel-ipsec-mb && \
45
+ ADD --checksum=sha256:8d3f0a561b539303d81fda82584663daea65af85e07c40b393a4e8cfe839e057 https://github.com/intel/intel-ipsec-mb/archive/refs/tags/v${IPSEC_MB_VERSION}.tar.gz /
46
+ RUN tar --transform s/-${IPSEC_MB_VERSION}// -x -f v${IPSEC_MB_VERSION}.tar.gz && \
47
+ cd /intel-ipsec-mb && \
48
48
make && make install LIB_INSTALL_DIR=/usr/lib64
49
49
50
- RUN cd /QAT_Engine && \
50
+ ADD --checksum=sha256:6ab57615d9e08b1eb61374e767d553b6c1103bd44e6f6719d3fe9e2b413614c9 https://github.com/intel/QAT_Engine/archive/refs/tags/v${QAT_ENGINE_VERSION}.tar.gz /
51
+ RUN tar --transform s/-${QAT_ENGINE_VERSION}// -x -f v${QAT_ENGINE_VERSION}.tar.gz && \
52
+ cd /QAT_Engine && \
51
53
./autogen.sh && \
52
54
./configure \
53
55
--enable-qat_sw && \
54
56
make && make install
55
57
56
- RUN cd /asynch_mode_nginx && \
58
+ ADD --checksum=sha256:21ba7921deaee8f9a2ba9b10bc4c61103f277483cbafff8c0f863d9336ec4afb https://github.com/intel/asynch_mode_nginx/archive/refs/tags/v${ASYNC_NGINX_VERSION}.tar.gz /
59
+ RUN tar --transform s/-${ASYNC_NGINX_VERSION}// -x -f v${ASYNC_NGINX_VERSION}.tar.gz && \
60
+ cd /asynch_mode_nginx && \
57
61
./configure \
58
62
--prefix=/var/www \
59
63
--conf-path=/usr/share/nginx/conf/nginx.conf \
@@ -71,10 +75,10 @@ RUN cd /asynch_mode_nginx && \
71
75
FROM ubuntu:22.04
72
76
73
77
COPY --from=builder /usr/bin/*_sample* /usr/bin/
74
- COPY --from=builder /usr/lib/libqat.so.4.1 .0 /usr/lib/
78
+ COPY --from=builder /usr/lib/libqat.so.4.2 .0 /usr/lib/
75
79
COPY --from=builder /usr/lib/libusdm.so.0.1.0 /usr/lib/
76
80
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.9 /usr/lib/x86_64-linux-gnu/
81
+ COPY --from=builder /usr/local/lib/libcrypto_mb.so.11.12 /usr/lib/x86_64-linux-gnu/
78
82
COPY --from=builder /usr/lib/x86_64-linux-gnu/engines-3/qatengine.so /usr/lib/x86_64-linux-gnu/engines-3/qatengine.so
79
83
COPY --from=builder /var/www/ /var/www/
80
84
COPY --from=builder /usr/lib64/nginx/* /usr/lib64/nginx/
0 commit comments