reintroduce a ubuntu 22.04 dockerfile to test old setups (e.g. old WSL)

This commit is contained in:
Philippe Teuwen
2026-03-01 13:27:53 +01:00
parent 55df8edbba
commit c682ad3503
4 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
FROM ubuntu:22.04
ENV LANG=C.UTF-8
ENV DEBIAN_FRONTEND=noninteractive
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 opencl-dev && \
apt-get clean
ARG SKIPQT=false
RUN if [ "${SKIPQT}" = "false" ]; then \
apt-get install -y qt6-base-dev && \
apt-get clean; \
fi
# uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# 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"]

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

View File

@@ -0,0 +1,2 @@
DOCKER_IMAGE=pm3-ubuntu-22.04:1.0
#SKIPQT=1

View File

@@ -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/ubuntu-22.04/run_tests.sh;
sudo apt update && sudo apt upgrade -y
tools/release_tests.sh