From ac33f5a0267129fa2024d1a29e913121e08f07ad Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Sun, 25 Aug 2024 20:46:09 +0200 Subject: [PATCH] Add bullseye dockerfile. Signed-off-by: Pol Henarejos --- tests/docker/bullseye/Dockerfile | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 tests/docker/bullseye/Dockerfile diff --git a/tests/docker/bullseye/Dockerfile b/tests/docker/bullseye/Dockerfile new file mode 100644 index 0000000..60a1c0d --- /dev/null +++ b/tests/docker/bullseye/Dockerfile @@ -0,0 +1,43 @@ +FROM debian:bullseye + +ARG DEBIAN_FRONTEND=noninteractive + +RUN apt update && apt upgrade -y +RUN apt install -y apt-utils +RUN apt autoremove -y +RUN rm -rf /var/cache/apt/archives/* +RUN apt install -y libccid \ + libpcsclite-dev \ + git \ + autoconf \ + pkg-config \ + libtool \ + help2man \ + automake \ + gcc \ + make \ + build-essential \ + opensc \ + python3 \ + python3-pip \ + swig \ + cmake \ + vsmartcard-vpcd \ + libgcrypt-dev \ + libssl-dev \ + check \ + gengetopt \ + && rm -rf /var/lib/apt/lists/* +RUN pip3 install pytest pycvc cryptography pyscard +RUN git clone https://github.com/Yubico/yubico-piv-tool +WORKDIR /yubico-piv-tool +RUN git checkout tags/yubico-piv-tool-2.5.1 +ADD tests/docker/jammy/yubico-piv-tool.patch /yubico-piv-tool/yubico-piv-tool.patch +RUN git apply yubico-piv-tool.patch +RUN mkdir build +WORKDIR /yubico-piv-tool/build +RUN cmake .. -DENABLE_HARDWARE_TESTS=1 +RUN make -j`nproc` +RUN make install +WORKDIR / +RUN ldconfig