fix dockers Fedora 42 & 43

This commit is contained in:
Philippe Teuwen 2025-06-15 18:17:56 +02:00
parent 3515370185
commit 4547d4ba7c
10 changed files with 146 additions and 0 deletions

View file

@ -5,4 +5,9 @@
# docker/fedora-42/run_tests.sh;
sudo yum -y update
python3 -m venv /tmp/venv
source /tmp/venv/bin/activate
python3 -m pip install --use-pep517 pyaes
python3 -m pip install ansicolors sslcrypto
tools/release_tests.sh
deactivate

View file

@ -5,4 +5,9 @@
# docker/fedora-43/run_tests.sh;
sudo yum -y update
python3 -m venv /tmp/venv
source /tmp/venv/bin/activate
python3 -m pip install --use-pep517 pyaes
python3 -m pip install ansicolors sslcrypto
tools/release_tests.sh
deactivate

View file

@ -0,0 +1,34 @@
FROM ubuntu:24.10
ENV LANG=C
ENV DEBIAN_FRONTEND=noninteractive
# qtbase5-dev skipped
RUN apt-get update && \
apt-get upgrade -y && \
apt-get dist-upgrade -y && \
apt-get install -y --no-install-recommends git ca-certificates build-essential cmake pkg-config libreadline-dev gcc-arm-none-eabi libnewlib-dev libbz2-dev liblz4-dev libbluetooth-dev libpython3-dev libssl-dev libgd-dev sudo && \
apt-get clean
RUN apt-get install -y --no-install-recommends python3-minimal python3-pip python3-venv && \
apt-get clean
RUN apt-get install -y opencl-dev && \
apt-get clean
# Create rrg user => there is already a ubuntu user = 1000 that we need to move away
RUN usermod -u 999 ubuntu
RUN groupmod -g 999 ubuntu
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"]

View file

@ -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/ubuntu-24.10/run_tests.sh;
```
Or if you want to run single test,
```
sudo apt update
make clean; make -j
tools/pm3_tests.sh --long
```

View file

@ -0,0 +1 @@
DOCKER_IMAGE=pm3-ubuntu-24.10:1.0

View file

@ -0,0 +1,13 @@
#!/usr/bin/env bash
# Iceman 2022
#
# This script is to be run from proxmark root folder inside the docker env
# docker/ubuntu-24.10/run_tests.sh;
sudo apt update && sudo apt upgrade -y
python3 -m venv /tmp/venv
source /tmp/venv/bin/activate
python3 -m pip install --use-pep517 pyaes
python3 -m pip install ansicolors sslcrypto
tools/release_tests.sh
deactivate

View file

@ -0,0 +1,34 @@
FROM ubuntu:25.04
ENV LANG=C
ENV DEBIAN_FRONTEND=noninteractive
# qtbase5-dev skipped
RUN apt-get update && \
apt-get upgrade -y && \
apt-get dist-upgrade -y && \
apt-get install -y --no-install-recommends git ca-certificates build-essential cmake pkg-config libreadline-dev gcc-arm-none-eabi libnewlib-dev libbz2-dev liblz4-dev libbluetooth-dev libpython3-dev libssl-dev libgd-dev sudo && \
apt-get clean
RUN apt-get install -y --no-install-recommends python3-minimal python3-pip python3-venv && \
apt-get clean
RUN apt-get install -y opencl-dev && \
apt-get clean
# Create rrg user => there is already a ubuntu user = 1000 that we need to move away
RUN usermod -u 999 ubuntu
RUN groupmod -g 999 ubuntu
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"]

View file

@ -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/ubuntu-25.04/run_tests.sh;
```
Or if you want to run single test,
```
sudo apt update
make clean; make -j
tools/pm3_tests.sh --long
```

View file

@ -0,0 +1 @@
DOCKER_IMAGE=pm3-ubuntu-25.04:1.0

View file

@ -0,0 +1,13 @@
#!/usr/bin/env bash
# Iceman 2022
#
# This script is to be run from proxmark root folder inside the docker env
# docker/ubuntu-25.04/run_tests.sh;
sudo apt update && sudo apt upgrade -y
python3 -m venv /tmp/venv
source /tmp/venv/bin/activate
python3 -m pip install --use-pep517 pyaes
python3 -m pip install ansicolors sslcrypto
tools/release_tests.sh
deactivate