|
12 | 12 | # See the License for the specific language governing permissions and |
13 | 13 | # limitations under the License. |
14 | 14 |
|
15 | | -FROM ubuntu:22.04 AS builder |
| 15 | +FROM debian:unstable-slim AS builder |
16 | 16 |
|
17 | | -RUN apt-get update && apt-get install -y --no-install-recommends \ |
18 | | - gcc g++ nasm make cmake patch autoconf automake libtool pkg-config git curl ca-certificates \ |
19 | | - libjson-c-dev uuid-dev zlib1g-dev libssl-dev |
| 17 | +ARG ACCEL_CONFIG_VERSION="4.1.4-1" |
20 | 18 |
|
21 | | -ARG ACCEL_CONFIG_VERSION="4.1" |
22 | | -ARG ACCEL_CONFIG_DOWNLOAD_URL="https://github.com/intel/idxd-config/archive/accel-config-v$ACCEL_CONFIG_VERSION.tar.gz" |
23 | | -ARG ACCEL_CONFIG_SHA256="26bed5f5fdef226ae90aebf296f1fa355c7a134aa321a468fbc5be894ff0b91b" |
| 19 | +RUN apt-get update && apt-get install -y --no-install-recommends libaccel-config-dev=${ACCEL_CONFIG_VERSION} \ |
| 20 | + gcc g++ nasm make cmake autoconf automake libtool pkg-config git ca-certificates uuid-dev |
24 | 21 |
|
25 | | -RUN curl -fsSL "$ACCEL_CONFIG_DOWNLOAD_URL" -o accel-config.tar.gz && echo "$ACCEL_CONFIG_SHA256 accel-config.tar.gz" | sha256sum -c - && tar -xzf accel-config.tar.gz |
26 | | - |
27 | | -COPY idxd-reset.patch / |
28 | | -COPY test_runner_disable_shared_queues.patch / |
29 | | - |
30 | | -RUN cd idxd-config-accel-config-v$ACCEL_CONFIG_VERSION && \ |
31 | | - patch -p1 < ../idxd-reset.patch && \ |
32 | | - patch -p1 < ../test_runner_disable_shared_queues.patch && \ |
33 | | - ./git-version-gen && \ |
34 | | - autoreconf -i && \ |
35 | | - ./configure -q --libdir=/usr/lib64 --enable-test=yes --disable-docs && \ |
36 | | - make install |
37 | | - |
38 | | -RUN cd / && git clone --recurse-submodules --branch v1.1.0 --depth 1 https://github.com/intel/DML.git && \ |
| 22 | +RUN cd / && git clone --recurse-submodules --branch v1.1.1 --depth 1 https://github.com/intel/DML.git && \ |
39 | 23 | mkdir DML/build && cd DML/build && \ |
40 | 24 | cmake .. && \ |
41 | 25 | make install && \ |
42 | 26 | mv -v /usr/local/bin/tests /usr/local/bin/dml_tests && \ |
43 | 27 | mv -v /usr/local/bin/tests_mt /usr/local/bin/dml_tests_mt |
44 | 28 |
|
45 | | -RUN cd / && git clone --recursive --depth 1 --branch v1.3.0 https://github.com/intel/qpl.git && \ |
| 29 | +RUN cd / && git clone --recursive --depth 1 --branch v1.3.1 https://github.com/intel/qpl.git && \ |
46 | 30 | mkdir qpl/build && cd qpl/build && \ |
47 | 31 | cmake -DLOG_HW_INIT=ON .. && \ |
48 | 32 | make install |
49 | 33 |
|
50 | | -FROM ubuntu:22.04 |
| 34 | +FROM debian:unstable-slim |
51 | 35 |
|
52 | | -RUN apt-get update && apt-get install -y --no-install-recommends libjson-c5 libssl3 && rm -rf /var/lib/apt/lists/\* |
53 | | - |
54 | | -COPY --from=builder /usr/lib64/libaccel-config.so.1.0.0 "/lib/x86_64-linux-gnu/" |
55 | | -RUN ldconfig |
56 | | - |
57 | | -COPY --from=builder /usr/bin/accel-config /usr/bin/ |
58 | | -COPY --from=builder /usr/libexec/accel-config/test /test |
59 | | -COPY --from=builder /idxd-reset.patch /usr/local/share/package-sources/ |
60 | | -COPY --from=builder /test_runner_disable_shared_queues.patch /usr/local/share/package-sources/ |
| 36 | +ARG ACCEL_CONFIG_VERSION="4.1.4-1" |
| 37 | +RUN apt-get update && apt-get install -y --no-install-recommends accel-config-test=${ACCEL_CONFIG_VERSION} && rm -rf /var/lib/apt/lists/\* |
61 | 38 |
|
| 39 | +RUN sed -i -e '442,450d' /usr/libexec/accel-config/test/iaa_user_test_runner.sh |
62 | 40 | COPY --from=builder /usr/local /usr/local |
63 | 41 | COPY --from=builder /qpl/build/examples /usr/local/bin/ |
64 | 42 |
|
65 | 43 | COPY dml-test.sh /usr/local/bin/ |
66 | 44 | COPY qpl-test.sh /usr/local/bin/ |
67 | | - |
68 | | -ENTRYPOINT cd /test && /bin/bash -e ./dsa_user_test_runner.sh |
0 commit comments