mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-03-29 08:29:52 +00:00
reintroduce a ubuntu 22.04 dockerfile to test old setups (e.g. old WSL)
This commit is contained in:
38
docker/ubuntu-22.04/Dockerfile
Normal file
38
docker/ubuntu-22.04/Dockerfile
Normal 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"]
|
||||
20
docker/ubuntu-22.04/README.md
Normal file
20
docker/ubuntu-22.04/README.md
Normal 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
|
||||
```
|
||||
2
docker/ubuntu-22.04/docker_conf.inc
Normal file
2
docker/ubuntu-22.04/docker_conf.inc
Normal file
@@ -0,0 +1,2 @@
|
||||
DOCKER_IMAGE=pm3-ubuntu-22.04:1.0
|
||||
#SKIPQT=1
|
||||
8
docker/ubuntu-22.04/run_tests.sh
Executable file
8
docker/ubuntu-22.04/run_tests.sh
Executable 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
|
||||
Reference in New Issue
Block a user