From 05fb168e0bd11b8b3068b27f4df3d8efafe55237 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 25 Mar 2025 23:19:52 +0100 Subject: [PATCH] docker: add Fedora 42 --- docker/fedora-42/Dockerfile | 27 +++++++++++++++++++++++++++ docker/fedora-42/README.md | 20 ++++++++++++++++++++ docker/fedora-42/docker_conf.inc | 1 + docker/fedora-42/run_tests.sh | 8 ++++++++ 4 files changed, 56 insertions(+) create mode 100644 docker/fedora-42/Dockerfile create mode 100644 docker/fedora-42/README.md create mode 100644 docker/fedora-42/docker_conf.inc create mode 100755 docker/fedora-42/run_tests.sh diff --git a/docker/fedora-42/Dockerfile b/docker/fedora-42/Dockerfile new file mode 100644 index 000000000..181ac02a3 --- /dev/null +++ b/docker/fedora-42/Dockerfile @@ -0,0 +1,27 @@ +FROM fedora:42 + +ENV LANG=C +# qt5-qtbase-devel skipped +RUN dnf install -y passwd sudo git make gcc gcc-c++ arm-none-eabi-gcc-cs arm-none-eabi-newlib readline-devel bzip2-devel lz4-devel bluez-libs-devel python3-devel openssl-devel gd-devel libatomic findutils + +RUN yum -y update +RUN yum -y install cmake python-pip +RUN python3 -m pip install ansicolors sslcrypto + +RUN yum -y install mesa-libOpenCL ocl-icd-devel + +# Create rrg user +RUN useradd -ms /bin/bash rrg +RUN passwd -d rrg +ARG UART_GID +# dialout group may already exist on another numeric ID than on host +RUN if [ -n "${UART_GID}" ]; then \ + groupadd -g ${UART_GID} mydialout || true; \ + usermod -aG ${UART_GID} rrg; \ + fi +RUN printf 'rrg ALL=(ALL) ALL\n' | tee -a /etc/sudoers + +USER rrg +WORKDIR "/home/rrg" + +CMD ["/bin/bash"] diff --git a/docker/fedora-42/README.md b/docker/fedora-42/README.md new file mode 100644 index 000000000..25e0264e3 --- /dev/null +++ b/docker/fedora-42/README.md @@ -0,0 +1,20 @@ +# Notes on run_tests.sh script +This script runs a bunch of different builds with make and cmake together +with the different combos of RDV4, GENERIC, BTADDON combos. + +If all tests OK, the script will finish with PASS. + +# Notes to run tests +The script is to be run in proxmark root folder inside the docker env. + +``` +docker/fedora-42/run_tests.sh; +``` + +Or if you want to run single test, + +``` +sudo yum -y update +make clean; make -j +tools/pm3_tests.sh --long +``` diff --git a/docker/fedora-42/docker_conf.inc b/docker/fedora-42/docker_conf.inc new file mode 100644 index 000000000..002e2ec26 --- /dev/null +++ b/docker/fedora-42/docker_conf.inc @@ -0,0 +1 @@ +DOCKER_IMAGE=pm3-fedora-42:1.0 diff --git a/docker/fedora-42/run_tests.sh b/docker/fedora-42/run_tests.sh new file mode 100755 index 000000000..87f35a9b4 --- /dev/null +++ b/docker/fedora-42/run_tests.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +# Iceman 2022 +# +# This script is to be run from proxmark root folder inside the docker env +# docker/fedora-42/run_tests.sh; + +sudo yum -y update +tools/release_tests.sh